Home Forums WPF controls Xceed DataGrid for WPF Using MergedDictionaries

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

    I have 3 files:
    CellEditorDictionary.xaml
    CellDataTemplateDictionary.xaml
    MyUserControl.xaml

    I’ve placed a grid on the UserControl in MyUserControl and added the other two files as MergedDictionaries. I then add the following column to the grid:

    <xcdg:Column FieldName=”Category”
    Title=”Category”
    VisiblePosition=”0″
    CellEditor=”{DynamicResource categoryEditor}”
    CellContentTemplate=”{DynamicResource categoryDataTemplate}”/>

    No data is ever displayed in this column, nor is the editor displayed on editing. If I move the editor and datatemplate into the UserControl’s internal ResourceDictionary, everything works great.

    Is it not possible to use resources in MergedDictionaries?

    Thanks,
    Travis

    Imported from legacy forums. Posted by Travis (had 2081 views)

    User (Old forums)
    Member
    Post count: 23064

    The MergedDictionaries work fine if the things are changed to StaticResource. I’m not sure why I had them dynamic. At any rate, I’m happy now 🙂

    Imported from legacy forums. Posted by Travis (had 3314 views)

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