Hello,
In the past using Winforms, I was able to inherit from the ig datagrid and customize it, making some things we needed internally easier to implement. My new project is similar, but it's using WPF. I only have one question and I should be able to do the rest on my own. I want to inherit from the XamDataGrid, but when I do, nothing is rendered.
Here is a sample class that inherits and renders nothing in design-Time or runtime. I realize that this might not be a supported method of using the grid, but I am sure I can do what I need if I can get this one thing settled.[DesignTimeVisible(true)] public class MyWPFGrid : XamDataGrid { static MyWPFGrid() { DefaultStyleKeyProperty.OverrideMetadata(typeof(LifeExtensionWPFGrid), new FrameworkPropertyMetadata(typeof (LifeExtensionWPFGrid))); } }}
Thanks for the help!
-Jeff
Nevermind, I figured out the issue was all me :( When I created the custom control, I left in the static constructor with the DefaultStyleKeyProperty.OverrideMetadata line in there....
I am still not getting the smartpart helper on my inherited grid though. I'm looking into that now. If you have any clues as to why that is, please let me know. But at least I the grid is working...