MaterialDesignInXamlToolkit
MaterialDesignInXamlToolkit copied to clipboard
MaterialDataGridComboBoxColumn display nothing
Bug explanation
A very little program created with code from MaterialDesignToolKit shows no combobox
MaterialDesignPoc.zip
Version
4.9
Thanks to
https://thomaslevesque.fr/2011/03/21/wpf-comment-faire-un-binding-dans-les-cas-o-on-nhrite-pas-du-datacontext/
MaterialDesignPoc.zip
I added BindingProxy class. A nearly equivalent class seems to exist in MaterialDesign. I wonder what is missing in the first program.
@jebissey I took a look at your first program, and I was able to fix the issue by moving the code below out of MainWindowView.xaml
and into App.xaml
instead:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:CustomColorTheme BaseTheme="Light" PrimaryColor="ForestGreen" SecondaryColor="DarkGreen" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.DataGrid.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
I think @Keboo looked into a similar issue at some point, but I don't recall if he came to a conclusion as to why it does not work "at the window level".