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
3806
reuse GroupColumn in different xamgrids
posted

I have multiple XamGrids in my project using the few group columns (and its columns hierarchy under it) exactly same. 

Is there a way i can create key for reuseable group column XAML and use it in different XamGrids. This way I will not have to write duplicate XAML for these Group Columns.

Parents
No Data
Reply
  • 30945
    Verified Answer
    Offline posted

    Hello Gajender,

     

    Thank you for post. I have been looking into the question that you are having and what I can suggest is creating a custom behavior. I have create a sample application for you, that shows how you can define a collection of columns and using a behavior to clone those columns in multiple XamGrids. The behavior have Columns and ColumnLayouts properties that are from type ObservableCollection<ColumnBase> and ObservableCollection<ColumnLayout>. You can define a collection of columns in the resources and set the Columns property of the behavior to that collection, as StaticResource. The behavior will clone all columns and will add them to each XamGrid, that has the behavior set.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir, MCPD

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

    ReusableLayout.zip
Children