Exemple #1
0
        private void LeftTabPin_Changed(object sender, bool isPined)
        {
            TabControlVertical item = (TabControlVertical)sender;

            this.uxMaingrid.ColumnDefinitions[0].Width = new GridLength(item.ActualWidth, GridUnitType.Auto);

            if (isPined)
            {
                this.uxMaingrid.ColumnDefinitions[1].Width = new GridLength(3);
            }
            else
            {
                this.uxMaingrid.ColumnDefinitions[1].Width = new GridLength(0);
            }
        }
        private void StronsPin_Changed(object sender, bool isPined)
        {
            TabControlVertical item = (TabControlVertical)sender;

            this.uxColumn2.Width = new GridLength(item.ActualWidth, GridUnitType.Auto);

            if (isPined)
            {
                this.uxColumn1.Width = new GridLength(3);

                this.uxTabGridSplitter.Visibility = Visibility.Visible;
            }
            else
            {
                this.uxColumn1.Width = new GridLength(0);

                this.uxTabGridSplitter.Visibility = Visibility.Collapsed;
            }
        }