This question is locked. New answers and comments are not allowed.
How do I make the background in the context menu semi-transparent background with opacity of 0.50?
_ContextMenu.Margin = new Thickness(0,200,0,0);
_ContextMenu.BorderBrush = new SolidColorBrush(Colors.Green);
_ContextMenu.BorderThickness = new Thickness(10, 10, 10, 10);
_ContextMenu.IsFadeEnabled = true;
_ContextMenu.Background = new SolidColorBrush(Colors.Transparent);
using this code I get a completely transparent background but I want an opaque background of 50% black.
setting the _ContextMenu.Opacity = 0.50; does not seem to change anything.
Do I need to add a border somehow?
Thanks,
Victor
_ContextMenu.Margin = new Thickness(0,200,0,0);
_ContextMenu.BorderBrush = new SolidColorBrush(Colors.Green);
_ContextMenu.BorderThickness = new Thickness(10, 10, 10, 10);
_ContextMenu.IsFadeEnabled = true;
_ContextMenu.Background = new SolidColorBrush(Colors.Transparent);
using this code I get a completely transparent background but I want an opaque background of 50% black.
setting the _ContextMenu.Opacity = 0.50; does not seem to change anything.
Do I need to add a border somehow?
Thanks,
Victor