private void TabStrip_TabDragStarting(TabView sender, TabViewTabDragStartingEventArgs args)
        {
            var tabViewItemArgs = (args.Item as TabItem).TabItemArguments;

            args.Data.Properties.Add(TabPathIdentifier, tabViewItemArgs.Serialize());
            args.Data.RequestedOperation = DataPackageOperation.Move;
        }
Exemplo n.º 2
0
        private void TabStrip_TabDragStarting(TabView sender, TabViewTabDragStartingEventArgs args)
        {
            var tabViewItemPath = ((((args.Item as TabItem).Content as Grid).Children[0] as Frame).Tag as TabItemContent).NavigationArg;

            args.Data.Properties.Add(TabPathIdentifier, tabViewItemPath);
            args.Data.RequestedOperation = DataPackageOperation.Move;
        }
Exemplo n.º 3
0
        private void TabView_TabDragStarting(TabView sender, TabViewTabDragStartingEventArgs args)
        {
            var x = args.Tab;

            args.Data.Properties.Add("Tab", x);
            args.Data.Properties.Add("Owner", sender);
        }
Exemplo n.º 4
0
        private void Tabs_TabDragStarting(TabView sender, TabViewTabDragStartingEventArgs args)
        {
            // We can only drag one tab at a time, so grab the first one...
            var firstItem = args.Tab;

            // ... set the drag data to the tab...
            args.Data.Properties.Add(DataIdentifier, firstItem);

            // ... and indicate that we can move it
            args.Data.RequestedOperation = DataPackageOperation.Move;
        }
Exemplo n.º 5
0
        private void Tabs_TabDragStarting(TabView sender, TabViewTabDragStartingEventArgs args)
        {
            // TODO: This crashes when updating to WinUI because e.Items[0] is NULL. Why?

            // TODO: Why does e.Items[0] return the ToggleSwitch and not the item itself??

            // We can only drag one tab at a time, so grab the first one...
            var firstItem = args.Tab;

            // ... set the drag data to the tab...
            args.Data.Properties.Add(DataIdentifier, firstItem);

            // ... and indicate that we can move it
            args.Data.RequestedOperation = DataPackageOperation.Move;
        }
Exemplo n.º 6
0
 private void OnTabDragStarting(TabView sender, TabViewTabDragStartingEventArgs e)
 {
     e.Data.Properties.Add(TabKey, e.Tab);
 }
Exemplo n.º 7
0
 private void OnTabDragStarting(TabView sender, TabViewTabDragStartingEventArgs e)
 {
     e.Data.Properties.Add(TabKey, e.Item);
     e.Data.Properties.Add(TabViewKey, ViewModel);
 }
Exemplo n.º 8
0
 private void MainTabView_TabDragStarting(TabView sender, TabViewTabDragStartingEventArgs args)
 {
 }