3
すべてのFlipViewアイテムで背景画像を変更したい。 このコードを試していますが、エラーが発生しましたOnly IBehavior types are supported in a BehaviorCollection.
Xamlビヘイビアでイメージソースプロパティを設定する方法は?
イメージソースが正しく設定されていますか?
<Grid>
<i:Interaction.Behaviors>
<core:DataTriggerBehavior
Binding="{Binding SelectedIndex, ElementName=TourFlipView}"
ComparisonCondition="Equal"
Value="1" />
<core:ChangePropertyAction
TargetObject="{Binding ElementName=TourFlipViewBackgroundImage}"
PropertyName="Source"
Value="ms-appx:///Assets/Images/2.png" />
</i:Interaction.Behaviors>
<Image
x:Name="TourFlipViewBackgroundImage"
Source="ms-appx:///Assets/Images/1.png" />
<FlipView
x:Name="TourFlipView">
...
<FlipView/>
</Grid>
はい!ありがとうございました! –