Is there any place to put a colored background in a wpf popup?

I just need to know if there is a way to put the background color in a WPF popup using XAML.

+3
source share
1 answer

There is no default appearance in WPF Popup. This is just a place for content that needs to pop up.

It’s just that your popup has an element that has a background property, and set it to the desired color, as in this example, from the Popup documentation class .

<Popup Name="myPopup">
    <TextBlock Name="myPopupText" 
               Background="LightBlue" 
               Foreground="Blue">
        Popup Text
  </TextBlock>
</Popup>
+6
source

All Articles