Skip to content

Public the Menu Parameters set API #6557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,14 @@ public static bool MenuDropAlignment
}
return _menuDropAlignment;
}
set
{
lock (_cacheValid)
{
_cacheValid[(int)CacheSlot.MenuDropAlignment] = true;
_menuDropAlignment = value;
}
}
}

/// <summary>
Expand Down Expand Up @@ -1046,6 +1054,14 @@ public static bool MenuFade

return _menuFade;
}
set
{
lock (_cacheValid)
{
_cacheValid[(int)CacheSlot.MenuFade] = true;
_menuFade = value;
}
}
}

/// <summary>
Expand Down Expand Up @@ -1075,6 +1091,14 @@ public static int MenuShowDelay

return _menuShowDelay;
}
set
{
lock (_cacheValid)
{
_cacheValid[(int)CacheSlot.MenuShowDelay] = true;
_menuShowDelay = value;
}
}
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1563,15 +1563,15 @@ public static partial class SystemParameters
public static System.Windows.ResourceKey MenuCheckmarkHeightKey { get { throw null; } }
public static double MenuCheckmarkWidth { get { throw null; } }
public static System.Windows.ResourceKey MenuCheckmarkWidthKey { get { throw null; } }
public static bool MenuDropAlignment { get { throw null; } }
public static bool MenuDropAlignment { get { throw null; } set {} }
public static System.Windows.ResourceKey MenuDropAlignmentKey { get { throw null; } }
public static bool MenuFade { get { throw null; } }
public static bool MenuFade { get { throw null; } set { } }
public static System.Windows.ResourceKey MenuFadeKey { get { throw null; } }
public static double MenuHeight { get { throw null; } }
public static System.Windows.ResourceKey MenuHeightKey { get { throw null; } }
public static System.Windows.Controls.Primitives.PopupAnimation MenuPopupAnimation { get { throw null; } }
public static System.Windows.ResourceKey MenuPopupAnimationKey { get { throw null; } }
public static int MenuShowDelay { get { throw null; } }
public static int MenuShowDelay { get { throw null; } set { } }
public static System.Windows.ResourceKey MenuShowDelayKey { get { throw null; } }
public static double MenuWidth { get { throw null; } }
public static System.Windows.ResourceKey MenuWidthKey { get { throw null; } }
Expand Down