C# WPF Control with transparent background

  1. //Set background color
  2. mycontrol.Background = Brushes.Green;
  3. //Not transparent
  4. mycontrol.Opacity=1;
  5. //Half transparent
  6. mycontrol.Opacity=0.5;

No comments:

Post a Comment