3
IsEnabledがfalseのときにイメージの不透明度を.50にしたいとします。私は複数の例を見てきましたが、私はそれを動作させる方法を理解することができません。WPF XAML IsEnabled状態でイメージの不透明度を変更する
ここに私のカスタムコントロールの完全なXAMLがあります。どんな助力も深く感謝します。
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="test.StopButtonControl"
x:Name="UserControl"
d:DesignWidth="85" d:DesignHeight="85">
<Grid x:Name="LayoutRoot">
<Image x:Name="StopButtonUI" Source="Images/stop.png" Stretch="Fill" MouseUp="StopButtonClick"/>
</Grid>
</UserControl>
ありがとう、今私は理解し、私は他のプロパティを試してみます。 – Nick