Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Extending XamDataPresenter
posted

I want all of my grids to act the same, be the same color and have the same edit/delete buttons.  How do I extend XamDataPresenter into it's own extended class to use throughout my application.  Is there an example of this?

Thanks,

Linda Rawson

  • 69686
    Suggested Answer
    posted

    Hello Linda,

     

    You could create your custom class that inherits the XamDataPresenter and add your extended functionaities. You could also create styles/templates/brushes and put them in a resource dictionary, so that each instance of the XamDataGrid uses them.