mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Updated MenuButton
This commit is contained in:
parent
b921600e1b
commit
69fd0753f7
7 changed files with 26 additions and 15 deletions
|
|
@ -6,15 +6,18 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace MapControl.UiTools
|
||||
{
|
||||
public class MenuButton : Button
|
||||
{
|
||||
static MenuButton()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(MenuButton), new FrameworkPropertyMetadata(typeof(MenuButton)));
|
||||
}
|
||||
|
||||
protected MenuButton(string icon)
|
||||
{
|
||||
FontFamily = new FontFamily("Segoe MDL2 Assets");
|
||||
Content = icon;
|
||||
|
||||
Click += (s, e) => ContextMenu.IsOpen = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue