Quantcast
Channel: BlogoSfera » displayed
Viewing all articles
Browse latest Browse all 20

ControlTemplate Opacity not displayed like I want it to

$
0
0

I have a Style defined for my DataGridCell <Style x:Key="MYDGCellStyle" TargetType="{x:Type DataGridCell}"> <Setter Property="OverridesDefaultStyle" Value="True" /> <Setter Property="Template" Value="{DynamicResource MYDGCellControlTemplate}" /> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsReadOnly}" Value="True"> <Setter Property="Background"> <Setter.Value> <SolidColorBrush Color="Gray" Opacity="0.3" /> </Setter.Value> </Setter> </DataTrigger> </Style.Triggers> </Style> <ControlTemplate x:Key="MYDGCellControlTemplate" TargetType="{x:Type DataGridCell}"> <Grid x:Name="CellGrid"> <Border Background="{TemplateBinding Background}"> <ContentPresenter VerticalAlignment="Center" Margin="4,0,6,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> […]

The post ControlTemplate Opacity not displayed like I want it to appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 20

Trending Articles