Skip to content

Commit

Permalink
Fix samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Apr 28, 2020
1 parent 3ccf830 commit e681b38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ModernWpf.SampleApp/ControlPages/ExpanderPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="expander" Storyboard.TargetProperty="(DockPanel.Dock)">
<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Dock.Bottom}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="expander" Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)">
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="expander" Storyboard.TargetProperty="VerticalAlignment">
<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static VerticalAlignment.Bottom}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
Expand Down
2 changes: 1 addition & 1 deletion ModernWpf.SampleApp/ControlPages/ExpanderPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private void ExpandDirection_SelectionChanged(object sender, SelectionChangedEve

private void UpdateVisualState()
{
VisualStateManager.GoToState(this, expander.ExpandDirection.ToString(), false);
VisualStateManager.GoToElementState((FrameworkElement)Content, expander.ExpandDirection.ToString(), false);
}
}
}
2 changes: 1 addition & 1 deletion ModernWpf.SampleApp/ControlPages/SplitViewPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void paneBackgroundCombobox_SelectionChanged(object sender, SelectionCha
{
var colorString = (e.AddedItems[0] as ComboBoxItem).Content.ToString();

VisualStateManager.GoToState(this, colorString, false);
VisualStateManager.GoToElementState((FrameworkElement)Content, colorString, false);
}
}

Expand Down

0 comments on commit e681b38

Please sign in to comment.