mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-07-09 08:16:41 +12:00
Fix intermediate layout and size changes when a sub menu gets filled with data
This commit is contained in:
parent
a7ff101027
commit
4a645290f7
|
@ -355,8 +355,12 @@ namespace SystemTrayMenu.Business
|
||||||
if (menuData.DirectoryState != MenuDataDirectoryState.Undefined)
|
if (menuData.DirectoryState != MenuDataDirectoryState.Undefined)
|
||||||
{
|
{
|
||||||
// Sub Menu (completed)
|
// Sub Menu (completed)
|
||||||
|
// There will be some layout, size and position changes.
|
||||||
|
// Just hide the inner controls for a moment until all changes have been applied.
|
||||||
|
menu.windowFrame.Visibility = Visibility.Hidden;
|
||||||
menu.AddItemsToMenu(menuData.RowDatas, menuData.DirectoryState);
|
menu.AddItemsToMenu(menuData.RowDatas, menuData.DirectoryState);
|
||||||
AdjustMenusSizeAndLocation(menu.Level);
|
AdjustMenusSizeAndLocation(menu.Level);
|
||||||
|
menu.windowFrame.Visibility = Visibility.Visible;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue