Is it possible to define a framework element like a grid as an application resource?
If yes,
1. how do I access it?
2. where do I define the callback functions for the controls on this grid?
If this doesn’t work, the backup plan that I have is to define a class extending the Grid class and instantiate this class wherever this grid needs to appear. Please let me know if there is a better solution.
It sounds like what you want is not so much a Resource but a
UserControl. You can define a SomeGridControl.xaml and then include it in any page you want.SomeGridControl.xaml
SomePage.xaml