mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
19 lines
422 B
C#
19 lines
422 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Controls;
|
|
|
|
namespace MapControl.UiTools
|
|
{
|
|
public class MapMenuItem : MenuItem
|
|
{
|
|
public string Text
|
|
{
|
|
get => Header as string;
|
|
set => Header = value;
|
|
}
|
|
|
|
protected IEnumerable<MapMenuItem> ParentMenuItems
|
|
=> (Parent as ItemsControl)?.Items.OfType<MapMenuItem>();
|
|
}
|
|
}
|