Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
XamPropertyGrid: ReadOnly-Opacity of a Property
posted

Hi

I have a XamPropertyGrid-Control with an ReadOnlyTemplate. The Opacity of the ReadOnly-Property seems to be smaller than 1. How can I set it to 1? 

<ig:PropertyGridEditorDefinition
TargetType="{x:Type sys:Double}"
EditTemplate="{StaticResource SpinIntEditor}"
ReadOnlyTemplate="{StaticResource IntEditorRO}"/>

<DataTemplate x:Key="IntEditorRO">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image x:Name="errorImage" Width="16" Height="16" Margin="2" Grid.Column="0" DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ig:XamPropertyGrid}}}" Visibility="Hidden"> </Image>
<TextBox MinWidth="20" Grid.Column="1" Margin="2" Text="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
</TextBox>
</Grid>
</DataTemplate>

Regards, Stephan