Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara authored Nov 19, 2023
1 parent 292a866 commit a0a3cd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 3 additions & 7 deletions ModernWpf.Controls/NavigationView/NavigationView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,9 @@
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconBox" Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconColumn" Storyboard.TargetProperty="Width">
<DiscreteObjectKeyFrame KeyTime="0">
<DiscreteObjectKeyFrame.Value>
<GridLength>16</GridLength>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="IconColumn" Storyboard.TargetProperty="Width">
<DiscreteDoubleKeyFrame KeyTime="0" Value="16" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
Expand Down
6 changes: 5 additions & 1 deletion ModernWpf.Controls/NavigationView/NavigationViewItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ void UpdateNavigationViewItemToolTip()
{
if (ShouldEnableToolTip())
{
ToolTipService.SetToolTip(this, m_suggestedToolTipContent);
// Don't SetToolTip with the same parameter because it close/re-open the ToolTip
if (toolTipContent != m_suggestedToolTipContent)
{
ToolTipService.SetToolTip(this, m_suggestedToolTipContent);
}
}
else
{
Expand Down

0 comments on commit a0a3cd4

Please sign in to comment.