public NavigationPaneOptions(NavigationPane navigationPane)
        {
            this.navigationPane = navigationPane;
               CoerceValue(CanReorderProperty);
            Items = new ObservableCollection<NavigationPaneOptionsData>();
            ResetItems();
            this.InitializeComponent();

            DataContext = Items;
        }
        protected override void OnVisualParentChanged(DependencyObject oldParent)
        {
            base.OnVisualParentChanged(oldParent);

               _navigationPane = TryFindNavigationPane() as NavigationPane;
               if (MenuType != ConfiguretMenuItemType.MenuItem)
            SetValues();
        }
Esempio n. 3
0
 internal static void SetConfigmenuPlacementTarget(NavigationPane d, ContextMenu menu, UIElement target)
 {
     if (target != null)
     {
         menu.Placement = PlacementMode.Right;
         menu.PlacementTarget = target;
     }
     else
     {
         menu.Placement = PlacementMode.MousePoint;
         menu.PlacementTarget = d;
     }
 }