の背景ブラシを変更すると、マウスオーバー時に自分のボタンの背景ブラシを変更したいと思います。私は私のボタンのスタイルを作り、マウスオーバー-visualSTATEのを変更:Silverlight:SilverlightアプリケーションでMouseOver
「名前 『背景』が名前空間に存在しないため、動作しません<VisualState x:Name="MouseOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Background)" Storyboard.TargetName="BorderBackground">
<DiscreteObjectKeyFrame KeyTime="0">
<DiscreteObjectKeyFrame.Value>
<Background>{TemplateBinding BorderBrush}</Background>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
「http://schemas.microsoft.com/クライアント/ 2007 "任意のアイデア、どのようにバックグラウンドブラシを設定することができますか?事前に
おかげで、
フランク
お返事をありがとうございます!残念ながら、それはまだ私に "名前" Background "が名前空間" http://schemas.microsoft.com/client/2007 "に存在しないことを示しています。 (バグ行は {TemplateBinding BorderBrush} 行、btwです。) {TemplateBinding BorderBrush} Control.Background>と明示的に入力すると、ネストされたプロパティはサポートされません。 –
Aaginor
この全体私はVisualStateManagerでBindingを使用することができないため、動作しません。 – Aaginor