Skip to content

Commit

Permalink
Merge branch 'master' into devsecops
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-ivanov committed Nov 20, 2023
2 parents 587d284 + a0a3cd4 commit c109d84
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 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
6 changes: 3 additions & 3 deletions ModernWpf/ControlsResources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
<Thickness x:Key="NumberBoxIconMargin">10,0,0,0</Thickness>
<Thickness x:Key="RadioButtonsTopHeaderMargin">0,0,0,4</Thickness>
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
<Thickness x:Key="ToggleSwitchTopHeaderMargin">0,0,0,0</Thickness>
<sys:Double x:Key="ToggleSwitchPreContentMargin">6</sys:Double>
<sys:Double x:Key="ToggleSwitchPostContentMargin">6</sys:Double>
<Thickness x:Key="ToggleSwitchTopHeaderMargin">0,0,0,4</Thickness>
<sys:Double x:Key="ToggleSwitchPreContentMargin">10</sys:Double>
<sys:Double x:Key="ToggleSwitchPostContentMargin">10</sys:Double>
<sys:Double x:Key="ToggleSwitchThemeMinWidth">154</sys:Double>

<sys:Double x:Key="MenuFlyoutSeparatorHeight">1</sys:Double>
Expand Down
6 changes: 3 additions & 3 deletions test/ModernWpfTestApp/CommonStylesPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ private void ToggleSwitchDensityTest_Click(object sender, RoutedEventArgs e)
var contentPresenter = (ContentPresenter)root.FindName("HeaderContentPresenter");
simpleVerify.IsTrue(contentPresenter != null, "HeaderContentPresenter can't be found");

string expectedHeaderMargin = "0,0,0,0";
string expectToggleSwitchPreContentMargin = "6";
string expectToggleSwitchPostContentMargin = "6";
string expectedHeaderMargin = "0,0,0,4";
string expectToggleSwitchPreContentMargin = "10";
string expectToggleSwitchPostContentMargin = "10";

if (contentPresenter != null)
{
Expand Down

0 comments on commit c109d84

Please sign in to comment.