Home Forums WPF controls Xceed DataGrid for WPF External Resources

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21807 |

    I have a question about accessing external resource dictionaries from the WPF DataGrid control. What I have is DataTemplates that are defined in external resource dictionaries (that can be switched to provide run-time skinning) that I would like to use to populate the DataTemplate in the CellEditor.EditTemplate. Is there a way to bind this DataTemplate to an external resource rather than explicity defining this within the control tree? For example, in the standard WPF grid I can bind the CellTemplate to a DynamicResource that defines the DataTemplate for that cell (that is contained in an extenal ResourceDictionary) – is there similar funcitonality in WPF DataGrid?

    Imported from legacy forums. Posted by art.swanson (had 2064 views)

    User (Old forums)
    Member
    Post count: 23064

    nevermind – I found the references in the Solid Foundation example – CellContentTemplate=”{StaticResource currencyCellContentTemplate}”

    Excellent examples!

    Imported from legacy forums. Posted by art.swanson (had 3383 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.