mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-05-07 13:37:47 +00:00
File scoped namespaces
This commit is contained in:
parent
c14377f976
commit
65aba44af6
152 changed files with 11962 additions and 12115 deletions
|
|
@ -7,25 +7,24 @@ using Microsoft.UI.Xaml.Controls;
|
|||
using Microsoft.UI.Xaml.Markup;
|
||||
#endif
|
||||
|
||||
namespace MapControl.UiTools
|
||||
namespace MapControl.UiTools;
|
||||
|
||||
[ContentProperty(Name = nameof(Items))]
|
||||
public partial class MenuButton
|
||||
{
|
||||
[ContentProperty(Name = nameof(Items))]
|
||||
public partial class MenuButton
|
||||
public MenuButton()
|
||||
{
|
||||
public MenuButton()
|
||||
{
|
||||
Flyout = new MenuFlyout();
|
||||
Loaded += async (_, _) => await Initialize();
|
||||
}
|
||||
|
||||
public string Icon
|
||||
{
|
||||
get => (Content as FontIcon)?.Glyph;
|
||||
set => Content = new FontIcon { Glyph = value };
|
||||
}
|
||||
|
||||
public MenuFlyout Menu => (MenuFlyout)Flyout;
|
||||
|
||||
public IList<MenuFlyoutItemBase> Items => Menu.Items;
|
||||
Flyout = new MenuFlyout();
|
||||
Loaded += async (_, _) => await Initialize();
|
||||
}
|
||||
|
||||
public string Icon
|
||||
{
|
||||
get => (Content as FontIcon)?.Glyph;
|
||||
set => Content = new FontIcon { Glyph = value };
|
||||
}
|
||||
|
||||
public MenuFlyout Menu => (MenuFlyout)Flyout;
|
||||
|
||||
public IList<MenuFlyoutItemBase> Items => Menu.Items;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue