MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.04k stars 3.41k forks source link

Window Title Bar & Selected Text highlight color #1162

Closed hxhgxy closed 5 years ago

hxhgxy commented 5 years ago

Question 1: Where is Name Space for "controls: MetroWindow"? How can I customize my MainWindow title bar color and border color?

Question 2: How to customized the background color of selected text in textfield (textbox, combobox...)?

Thanks a lot!

Tiger

MairwunNx commented 5 years ago

Hello @hxhgxy,

You can customize the background color of selected text in textfield: SelectionBrush="Aqua"

hxhgxy commented 5 years ago

Thank you MairwunNx!

MairwunNx commented 5 years ago

No problem @hxhgxy!

Keboo commented 5 years ago

@hxhgxy in regard to your first question that MetroWindow comes from MahApps. There is an additional NuGet package provided by this library that adds additional styling to the MahApps controls. This is what is being used in the MahApps demo.

hxhgxy commented 5 years ago

@Keboo Thanks! But it is a DLL? I cannot view the source code and learn how to make it?

hxhgxy commented 5 years ago

nupkg

hxhgxy commented 5 years ago

I downloaded "MahApps.Metro.2.0.0-alpha0186.nupkg" and find these - looklike MetroWindow is the key codes?

nupkg nupkg2

Keboo commented 5 years ago

@hxhgxy MetroWindow comes from the MahApps library you can see the source code for MahApps on that repository.

hxhgxy commented 5 years ago

@Keboo Thank you! I downloaded the MetroWindow and ControlzEx source codes. Look forward to learn...