blob: 21558b6ebc4b5eaafd3ff8de12df9c76568a1486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System.Windows;
using System.Windows.Controls;
namespace Xamarin.PropertyEditing.Windows
{
internal class HeaderedContextMenu
: ContextMenu
{
public static readonly DependencyProperty HeaderProperty = DependencyProperty.Register (
"Header", typeof (object), typeof (HeaderedContextMenu), new PropertyMetadata (default (object)));
public object Header
{
get { return (object)GetValue (HeaderProperty); }
set { SetValue (HeaderProperty, value); }
}
public static readonly DependencyProperty HeaderTemplateProperty = DependencyProperty.Register (
"HeaderTemplate", typeof (DataTemplate), typeof (HeaderedContextMenu), new PropertyMetadata (default (DataTemplate)));
public DataTemplate HeaderTemplate
{
get { return (DataTemplate)GetValue (HeaderTemplateProperty); }
set { SetValue (HeaderTemplateProperty, value); }
}
}
}
|