Is there a way to put a background color in a WPF popup in XAML.
A WPF Popup
has no default visual appearance. It is merely a place holder for content that needs to popup.
Simply have your Popup
contain an item that does have a Background
property and set that to your desired color as in this example from the Popup class documentation.
<Popup Name="myPopup">
<TextBlock Name="myPopupText"
Background="LightBlue"
Foreground="Blue">
Popup Text
</TextBlock>
</Popup>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With