-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: TargetPropertyPath is not releasing its WeakReference properly
- Loading branch information
1 parent
9c6b8d2
commit 35d6a93
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...o.UI.Tests/Windows_UI_Xaml_Markup/XamlReaderTests/When_StateTrigger_PropertyPath.xamltest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<UserControl | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
> | ||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
<VisualStateManager.VisualStateGroups> | ||
<VisualStateGroup> | ||
<VisualState> | ||
<VisualState.StateTriggers> | ||
<!--VisualState to be triggered when window width is >=720 effective pixels.--> | ||
<StateTrigger IsActive="True"/> | ||
</VisualState.StateTriggers> | ||
<VisualState.Setters> | ||
<Setter Target="myPanel.Orientation" Value="Horizontal"/> | ||
</VisualState.Setters> | ||
</VisualState> | ||
</VisualStateGroup> | ||
</VisualStateManager.VisualStateGroups> | ||
<StackPanel x:Name="myPanel" Orientation="Vertical"> | ||
<TextBlock Text="This is a block of text. It is text block 1. " | ||
Style="{ThemeResource BodyTextBlockStyle}"/> | ||
<TextBlock Text="This is a block of text. It is text block 2. " | ||
Style="{ThemeResource BodyTextBlockStyle}"/> | ||
<TextBlock Text="This is a block of text. It is text block 3. " | ||
Style="{ThemeResource BodyTextBlockStyle}"/> | ||
</StackPanel> | ||
</Grid> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters