I can’t figure out how to make the background og the groupbox fade between almost transparent in the top and almost solid white in the bottom.
I want to set the background in a style like this one:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--Groups and borders-->
<Style x:Key="MainGroupBox" TargetType="{x:Type GroupBox}">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="SnapsToDevicePixels" Value="True" />
</Style>
I hope you can help me.
PS: I am using C# with WPF 4
Hi FireFly i think you are not aware with the power of XAML its comes from xml so you can add any identified element under reconized tag. like
or