firstfloorsoftware / mui

Modern UI for WPF
Microsoft Public License
2.59k stars 755 forks source link

Templase and background #192

Open Trololo312 opened 5 years ago

Trololo312 commented 5 years ago

Hi. I do not understand how I should change the pattern. Unfortunately, I took this template, it seemed good and clear. However, there is no documentation for him and this is bad.

1)I connected this topic for controls: http://professorweb.ru/my/WPF/themes/DarkBlue_UI/theme_db.php 2) However, the topic has not changed. She remained bright. 3) I open this code page: https://github.com/firstfloorsoftware/mui/blob/master/1.0/FirstFloor.ModernUI/FirstFloor.ModernUI.App/Content/SettingsAppearanceViewModel.cs // add the default themes this.themes.Add(new Link { DisplayName = "dark", Source = AppearanceManager.DarkThemeSource }); ... // add additional themes this.themes.Add(new Link { DisplayName = "bing image", Source = new Uri("/ModernUIDemo;component/Assets/ModernUI.BingImage.xaml", UriKind.Relative) });

HOW TO MAKE YOUR STYLE ?! Or how to make a background of a different color?

Trololo312 commented 5 years ago

Everything turned out to be simple. You need to create an element of Modern UI Theme and add code like this:

this.themes.Add(new Link { DisplayName = "Mylove", Source = new Uri("MyThemsfolder/MyModernUIThems.xaml", UriKind.Relative) });

And that's it!