Skip to content

Commit

Permalink
Remove unsupported code
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Dec 22, 2023
1 parent 1cb5a65 commit 713d892
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 84 deletions.
50 changes: 14 additions & 36 deletions src/XamlPlayground/Samples/Animation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,41 +310,19 @@
</Styles>
</UserControl.Styles>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" ClipToBounds="False">
<StackPanel.Clock>
<Clock />
</StackPanel.Clock>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Spacing="20">
<TextBlock VerticalAlignment="Center">Hover to activate Keyframe Animations.</TextBlock>
<Button Name="Pause" Content="Pause">
<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="Click" SourceObject="{Binding #Pause}">
<ia:ChangePropertyAction TargetObject="{Binding #Pause.Clock}" PropertyName="PlayState" Value="{x:Static PlayState.Pause}" />
</ia:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button Name="Run" Content="Run">
<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="Click" SourceObject="{Binding #Run}">
<ia:ChangePropertyAction TargetObject="{Binding #Run.Clock}" PropertyName="PlayState" Value="{x:Static PlayState.Run}" />
</ia:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
</StackPanel>
<WrapPanel ClipToBounds="False">
<Border Classes="Test Rect1" Background="DarkRed"/>
<Border Classes="Test Rect2" Background="Magenta"/>
<Border Classes="Test Rect3"/>
<Border Classes="Test Rect4" Background="Navy"/>
<Border Classes="Test Rect5" Background="SeaGreen"/>
<Border Classes="Test Rect6" Background="Red"/>
<Border Classes="Test Shadow" CornerRadius="10" Child="{x:Null}" />
<Border Classes="Test Shadow" CornerRadius="0 30 60 0" Child="{x:Null}" />
<Border Classes="Test Rect7" Child="{x:Null}" />
<Border Classes="Test Rect8" Child="{x:Null}" />
<Border Classes="Test Rect9" Child="{x:Null}" />
<Border Classes="Test Rect10" Child="{x:Null}" />
</WrapPanel>
</StackPanel>
<WrapPanel ClipToBounds="False">
<Border Classes="Test Rect1" Background="DarkRed"/>
<Border Classes="Test Rect2" Background="Magenta"/>
<Border Classes="Test Rect3"/>
<Border Classes="Test Rect4" Background="Navy"/>
<Border Classes="Test Rect5" Background="SeaGreen"/>
<Border Classes="Test Rect6" Background="Red"/>
<Border Classes="Test Shadow" CornerRadius="10" Child="{x:Null}" />
<Border Classes="Test Shadow" CornerRadius="0 30 60 0" Child="{x:Null}" />
<Border Classes="Test Rect7" Child="{x:Null}" />
<Border Classes="Test Rect8" Child="{x:Null}" />
<Border Classes="Test Rect9" Child="{x:Null}" />
<Border Classes="Test Rect10" Child="{x:Null}" />
</WrapPanel>
</Grid>
</UserControl>
74 changes: 26 additions & 48 deletions src/XamlPlayground/Samples/Transitions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,53 +246,31 @@
</UserControl.Styles>

<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" ClipToBounds="False">
<StackPanel.Clock>
<Clock />
</StackPanel.Clock>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Spacing="20">
<TextBlock VerticalAlignment="Center">Hover to activate Transitions.</TextBlock>
<Button Name="Pause" Content="Pause">
<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="Click" SourceObject="{Binding #Pause}">
<ia:ChangePropertyAction TargetObject="{Binding #Pause.Clock}" PropertyName="PlayState" Value="{x:Static PlayState.Pause}" />
</ia:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<Button Name="Run" Content="Run">
<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="Click" SourceObject="{Binding #Run}">
<ia:ChangePropertyAction TargetObject="{Binding #Run.Clock}" PropertyName="PlayState" Value="{x:Static PlayState.Run}" />
</ia:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
</StackPanel>
<WrapPanel ClipToBounds="False">
<Border Classes="Test Rect1" Background="DarkRed"/>
<Border Classes="Test Rect2" Background="Magenta"/>
<Border Classes="Test Rect3"/>
<Border Classes="Test Rect4" Background="Navy"/>
<Border Classes="Test Rect5" Background="SeaGreen"/>
<Border Classes="Test Rect6" Background="Orange"/>
<Border Classes="Test Rect7" Background="Gold"/>
<Border Classes="Test Rect8" Background="Gray" />
<Border Classes="Test Rect9" Background="Red" />

<Border Classes="Test Shadow" CornerRadius="10" Child="{x:Null}" />
<Border Classes="Test Shadow" CornerRadius="0 30 60 0" Child="{x:Null}" />

<Border Classes="Test Rect10" />
<Border Classes="Test Rect11" />

<Border Classes="Test Rect12" Child="{x:Null}"/>
<Border Classes="Test Rect13" Child="{x:Null}"/>
<Border Classes="Test Rect14" Child="{x:Null}"/>

<Border Classes="Test Rect14" />
<Border Classes="Test Rect14" />
<Border Classes="Test Rect14" />
<Border Classes="Test Rect14" />
</WrapPanel>
</StackPanel>
<WrapPanel ClipToBounds="False">
<Border Classes="Test Rect1" Background="DarkRed"/>
<Border Classes="Test Rect2" Background="Magenta"/>
<Border Classes="Test Rect3"/>
<Border Classes="Test Rect4" Background="Navy"/>
<Border Classes="Test Rect5" Background="SeaGreen"/>
<Border Classes="Test Rect6" Background="Orange"/>
<Border Classes="Test Rect7" Background="Gold"/>
<Border Classes="Test Rect8" Background="Gray" />
<Border Classes="Test Rect9" Background="Red" />

<Border Classes="Test Shadow" CornerRadius="10" Child="{x:Null}" />
<Border Classes="Test Shadow" CornerRadius="0 30 60 0" Child="{x:Null}" />

<Border Classes="Test Rect10" />
<Border Classes="Test Rect11" />

<Border Classes="Test Rect12" Child="{x:Null}"/>
<Border Classes="Test Rect13" Child="{x:Null}"/>
<Border Classes="Test Rect14" Child="{x:Null}"/>

<Border Classes="Test Rect14" />
<Border Classes="Test Rect14" />
<Border Classes="Test Rect14" />
<Border Classes="Test Rect14" />
</WrapPanel>
</Grid>
</UserControl>

0 comments on commit 713d892

Please sign in to comment.