protected void PrepareElements() { _items = new RadialMenuItemCollection(); _items.CollectionChanged += _items_CollectionChanged; ArcSegments = new ArcSegments(); ArcSegments.BasePanel = new ArcSegmentItem(); }
protected void PrepareElements() { _items = new RadialMenuItemCollection(); _items.CollectionChanged += _items_CollectionChanged; ArcSegments = new ArcSegments(); ArcSegments.SelectedElement = new ArcSegmentItem(); ArcSegments.PointerOverElement = new ArcSegmentItem(); ArcSegments.ExpandArea = new ArcSegmentItem(); if (this is RadialColorMenuItem || this is RadialNumericMenuChildrenItem) { ArcSegments.ColorElement = new ArcSegmentItem(); } ArcSegments.HitTestElement = new ArcSegmentItem(); }
public RadialMenu() { this.DefaultStyleKey = typeof(RadialMenu); _items = new RadialMenuItemCollection(); Loaded += RadialMenu_Loaded; //Unloaded += RadialMenu_Unloaded; HorizontalAlignment = HorizontalAlignment.Left; VerticalAlignment = VerticalAlignment.Top; IsHitTestVisible = false; _popup = new Windows.UI.Xaml.Controls.Primitives.Popup(); _popup.IsLightDismissEnabled = false; BindingOperations.SetBinding(_popup, Windows.UI.Xaml.Controls.Primitives.Popup.IsOpenProperty, new Binding() { Mode = BindingMode.TwoWay, Source = this, Path = new PropertyPath("IsOpen") }); _popup.Child = this; _popup.Opened += _popup_Opened; _popup.Closed += _popup_Closed; //UpdatePopupSize(); lowerThan14393 = !ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 3); }
public RadialMenu() { this.DefaultStyleKey = typeof(RadialMenu); _items = new RadialMenuItemCollection(); }