mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Updated MenuButton
This commit is contained in:
parent
b921600e1b
commit
69fd0753f7
7 changed files with 26 additions and 15 deletions
|
|
@ -7,11 +7,9 @@ using System.Linq;
|
|||
#if WINUI
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
#elif UWP
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Media;
|
||||
#endif
|
||||
|
||||
namespace MapControl.UiTools
|
||||
|
|
@ -20,11 +18,7 @@ namespace MapControl.UiTools
|
|||
{
|
||||
protected MenuButton(string icon)
|
||||
{
|
||||
Content = new FontIcon
|
||||
{
|
||||
FontFamily = new FontFamily("Segoe Fluent Icons"),
|
||||
Glyph = icon
|
||||
};
|
||||
Content = new FontIcon { Glyph = icon };
|
||||
}
|
||||
|
||||
protected MenuFlyout CreateMenu()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue