Comments (1)
Never mind. I resolved this by adding a resource dictionary for each control to be styled into the window resources. I thought that I could do this in the App.xaml, but that doesn't work.
For instance:
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.CheckBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ComboBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ListBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.RadioButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.SplitButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Label.xaml" />
</ResourceDictionary.MergedDictionaries>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
</ResourceDictionary>
</Window.Resources>
from materialdesigninxamltoolkit.
Related Issues (20)
- Binding issues with ContextMenu and CompositeCollection HOT 17
- Combobox not centering the selected item HOT 2
- MaterialDesignChoiceChipListBoxItem Grouping radio button by name is missing HOT 1
- AutoSuggestBox style and demo app issues HOT 2
- AutoSuggestBox Dropdown List background issue with dynamic theme.
- AutoSuggestBox: Selection Doesn't Work When Only One Item is Available
- PasswordBox styles swallow vertical scroll events
- MaterialDesignThemes5.0.0 missing "themes/materialdesigntheme.defaults.xaml" file HOT 6
- DataGridColumn Regressed To The System Style HOT 1
- Gives Error while Taking in Secondary Colors Resource HOT 2
- Cant switch themes after updating to 5.0 HOT 3
- NullVisibilityConverter and InvertedNullVisibilityConverter is missing after upgrade to 5.0 HOT 2
- Window becomes inactive after DialogHost.Show() HOT 4
- 5.0 refactor for the flipper probably broke true type for the elevated card HOT 1
- Add method overload for ShowDialog extension with identifier HOT 3
- Wiki: Some button style keys are outdated HOT 3
- Wrong size and wrong 'look and feel' for ToggleButton with Style="{StaticResource MaterialDesignSwitchToggleButton}" HOT 3
- Improve Snackbar feature so that multiple messages can display simultaneously HOT 2
- DataGrid Scrollbar column header not stylized
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialdesigninxamltoolkit.