</Grid.RowDefinitions>
<commonControls:CustomImage Grid.Column="1" Grid.Row="1" HorizontalOptions="Center" VerticalOptions="Center"
- Source="{TemplateBinding Image}" BlendingColor="{TemplateBinding ImageColor}" />
+ Source="{TemplateBinding Image}" BlendingColor="{TemplateBinding ImageColor}">
+ <commonControls:CustomImage.Triggers>
+ <DataTrigger TargetType="commonControls:CustomImage" Binding="{TemplateBinding IsEnabled}" Value="False">
+ <Setter Property="BlendingColor" Value="{StaticResource FlatControlDimColor}" />
+ </DataTrigger>
+ </commonControls:CustomImage.Triggers>
+ </commonControls:CustomImage>
<Label Grid.Column="1" Grid.Row="3" HorizontalOptions="Center" VerticalOptions="Center" FontSize="19"
- Text="{TemplateBinding Text}" TextColor="{TemplateBinding TextColor}" />
+ Text="{TemplateBinding Text}" TextColor="{TemplateBinding TextColor}">
+ <Label.Triggers>
+ <DataTrigger TargetType="Label" Binding="{TemplateBinding IsEnabled}" Value="False">
+ <Setter Property="TextColor" Value="{StaticResource FlatControlDimColor}" />
+ </DataTrigger>
+ </Label.Triggers>
+ </Label>
<ContentPresenter Grid.Column="1" Grid.Row="4" />
</commonControls:CustomGrid>
<DataTrigger TargetType="commonControls:CustomGrid" Binding="{Binding IsChecked, Source={x:Reference This}}" Value="True">
<Setter Property="BackgroundColor" Value="{StaticResource FlatControlCheckOnColor}" />
</DataTrigger>
+
+ <DataTrigger TargetType="commonControls:CustomGrid" Binding="{Binding IsEnabled, Source={x:Reference This}}" Value="False">
+ <Setter Property="BackgroundColor" Value="{StaticResource FlatControlDimColor}" />
+ </DataTrigger>
</commonControls:CustomGrid.Triggers>
</commonControls:CustomGrid>
</commonControls:CustomGrid>
<Color x:Key="FlatControlBorderColor">#FFD9D9D9</Color>
<Color x:Key="FlatControlCheckOffColor">#4C666666</Color>
<Color x:Key="FlatControlCheckOnColor">#FF2EB4C8</Color>
+ <Color x:Key="FlatControlDimColor">#4D4D4D4D</Color>
<Color x:Key="FlatControlImageDimColor">#4C808080</Color>
<Color x:Key="FlatControlImageNormalColor">#FF808080</Color>
<Color x:Key="FlatControlImageOnColor">#FF2EB4C8</Color>