Last active
March 27, 2020 15:07
-
-
Save dtwk2/9f1dd8ee2d790a1692482883e272785f to your computer and use it in GitHub Desktop.
How to set the background for all usercontrols in app resources (white background: using dark mode)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--https://stackoverflow.com/questions/5183801/black-background-for-xaml-editor--> | |
<Application | |
... | |
xmlns:componentModel="clr-namespace:System.ComponentModel;assembly=PresentationFramework"> | |
... | |
<Application.Resources> | |
... | |
<Style TargetType="Control"> | |
<Style.Triggers> | |
<Trigger Property="componentModel:DesignerProperties.IsInDesignMode" | |
Value="True"> | |
<Setter Property="Background" Value="White" /> | |
</Trigger> | |
</Style.Triggers> | |
</Style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment