KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to set the default Style for every window in my WPF Windows application in my app.xaml. So far i have this in app.xaml: <Application.Resources> <ResourceDictionary> <Style x:Key="WindowStyle" TargetType="{x:Type Window}"> <Setter Property="Background" Value="Blue" /> </Style> </ResourceDictionary> </Application.Resources> I can get the window to appear with this style when running the app (but not in VS designer) by specifically telling the window to use this style via: Style="{DynamicResource WindowStyle} This works, but is not ideal. So how do I: Have all windows automatically use the style (so i don't have to specify it on every window)? Have VS designer show the style? Thanks!
Tags (comma-separated)
Save Edits
Cancel