Skip to content

Commit

Permalink
Updated away from deprecated Behaviors namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Dec 20, 2024
1 parent 7717f6f commit 348a368
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
13 changes: 6 additions & 7 deletions components/RivePlayer/samples/RivePlayerCustomSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="using:Microsoft.Xaml.Interactivity"
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
xmlns:local="using:RivePlayerExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:rive="using:CommunityToolkit.Labs.WinUI.Rive"
Expand Down Expand Up @@ -50,18 +49,18 @@
Content="Hands Up" />
<Button Content="Failure">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<ic:CallMethodAction MethodName="Fire"
<i:EventTriggerBehavior EventName="Click">
<i:CallMethodAction MethodName="Fire"
TargetObject="{x:Bind FailureTrigger}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button Content="Success">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<ic:CallMethodAction MethodName="Fire"
<i:EventTriggerBehavior EventName="Click">
<i:CallMethodAction MethodName="Fire"
TargetObject="{x:Bind SuccessTrigger}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
</StackPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="using:Microsoft.Xaml.Interactivity"
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
xmlns:local="using:TransitionHelperExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down Expand Up @@ -52,22 +51,22 @@
Content="&#xEA62;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:StartTransitionAction Source="{Binding ElementName=FirstControl}"
Target="{Binding ElementName=SecondControl}"
Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button x:Name="MinToMaxButton"
Content="&#xE741;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:StartTransitionAction Source="{Binding ElementName=FirstControl}"
Target="{Binding ElementName=ThirdControl}"
Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
</StackPanel>
Expand Down Expand Up @@ -100,31 +99,31 @@
<Button Content="&#xE845;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:ReverseTransitionAction Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button x:Name="MidToMinButton"
Content="&#xE72B;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:StartTransitionAction Source="{Binding ElementName=SecondControl}"
Target="{Binding ElementName=FirstControl}"
Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button x:Name="MidToMaxButton"
Content="&#xE74B;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:StartTransitionAction Source="{Binding ElementName=SecondControl}"
Target="{Binding ElementName=ThirdControl}"
Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
</StackPanel>
Expand Down Expand Up @@ -204,31 +203,31 @@
<Button Content="&#xE845;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:ReverseTransitionAction Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button x:Name="MaxToMinButton"
Content="&#xE742;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:StartTransitionAction Source="{Binding ElementName=ThirdControl}"
Target="{Binding ElementName=FirstControl}"
Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button x:Name="MaxToMidButton"
Content="&#xE74A;"
Style="{StaticResource NavigationBackButtonNormalStyle}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="Click">
<i:EventTriggerBehavior EventName="Click">
<labs:StartTransitionAction Source="{Binding ElementName=ThirdControl}"
Target="{Binding ElementName=SecondControl}"
Transition="{StaticResource MyTransitionHelper}" />
</ic:EventTriggerBehavior>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
</StackPanel>
Expand Down

0 comments on commit 348a368

Please sign in to comment.