5 writes to _resizeData
PresentationFramework (5)
System\Windows\Controls\GridSplitter.cs (5)
493_resizeData = new ResizeData(); 504_resizeData = null; 691_resizeData = null; 743_resizeData = null; 961_resizeData = null;
96 references to _resizeData
PresentationFramework (96)
System\Windows\Controls\GridSplitter.cs (96)
473if (_resizeData.Adorner != null) 475AdornerLayer layer = VisualTreeHelper.GetParent(_resizeData.Adorner) as AdornerLayer; 476layer.Remove(_resizeData.Adorner); 494_resizeData.Grid = grid; 495_resizeData.ShowsPreview = ShowsPreview; 496_resizeData.ResizeDirection = GetEffectiveResizeDirection(); 497_resizeData.ResizeBehavior = GetEffectiveResizeBehavior(_resizeData.ResizeDirection); 498_resizeData.SplitterLength = Math.Min(ActualWidth, ActualHeight); 518int gridSpan = (int)GetValue(_resizeData.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnSpanProperty : Grid.RowSpanProperty); 522splitterIndex = (int)GetValue(_resizeData.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnProperty : Grid.RowProperty); 525switch (_resizeData.ResizeBehavior) 545int count = (_resizeData.ResizeDirection == GridResizeDirection.Columns) ? _resizeData.Grid.ColumnDefinitions.Count : _resizeData.Grid.RowDefinitions.Count; 549_resizeData.SplitterIndex = splitterIndex; 551_resizeData.Definition1Index = index1; 552_resizeData.Definition1 = GetGridDefinition(_resizeData.Grid, index1, _resizeData.ResizeDirection); 553_resizeData.OriginalDefinition1Length = _resizeData.Definition1.UserSizeValueCache; //save Size if user cancels 554_resizeData.OriginalDefinition1ActualLength = GetActualLength(_resizeData.Definition1); 556_resizeData.Definition2Index = index2; 557_resizeData.Definition2 = GetGridDefinition(_resizeData.Grid, index2, _resizeData.ResizeDirection); 558_resizeData.OriginalDefinition2Length = _resizeData.Definition2.UserSizeValueCache; //save Size if user cancels 559_resizeData.OriginalDefinition2ActualLength = GetActualLength(_resizeData.Definition2); 562bool isStar1 = IsStar(_resizeData.Definition1); 563bool isStar2 = IsStar(_resizeData.Definition2); 567_resizeData.SplitBehavior = SplitBehavior.Split; 572_resizeData.SplitBehavior = !isStar1 ? SplitBehavior.Resize1 : SplitBehavior.Resize2; 584if (_resizeData.ShowsPreview) 587AdornerLayer adornerlayer = AdornerLayer.GetAdornerLayer(_resizeData.Grid); 595_resizeData.Adorner = new PreviewAdorner(this, PreviewStyle); 596adornerlayer.Add(_resizeData.Adorner); 599GetDeltaConstraints(out _resizeData.MinChange, out _resizeData.MaxChange); 614if (_resizeData != null) 629Debug.Assert(_resizeData == null, "_resizeData is not null, DragCompleted was not called"); 643if (_resizeData != null) 653if (_resizeData.ShowsPreview) 656if (_resizeData.ResizeDirection == GridResizeDirection.Columns) 658_resizeData.Adorner.OffsetX = Math.Min(Math.Max(horizontalChange, _resizeData.MinChange), _resizeData.MaxChange); 662_resizeData.Adorner.OffsetY = Math.Min(Math.Max(verticalChange, _resizeData.MinChange), _resizeData.MaxChange); 682if (_resizeData != null) 684if (_resizeData.ShowsPreview) 687MoveSplitter(_resizeData.Adorner.OffsetX, _resizeData.Adorner.OffsetY); 705if (_resizeData != null) 733if (_resizeData.ShowsPreview) 739SetDefinitionLength(_resizeData.Definition1, _resizeData.OriginalDefinition1Length); 740SetDefinitionLength(_resizeData.Definition2, _resizeData.OriginalDefinition2Length); 785double definition1Len = GetActualLength(_resizeData.Definition1); 786double definition1Min = _resizeData.Definition1.UserMinSizeValueCache; 787double definition1Max = _resizeData.Definition1.UserMaxSizeValueCache; 789double definition2Len = GetActualLength(_resizeData.Definition2); 790double definition2Min = _resizeData.Definition2.UserMinSizeValueCache; 791double definition2Max = _resizeData.Definition2.UserMaxSizeValueCache; 794if (_resizeData.SplitterIndex == _resizeData.Definition1Index) 796definition1Min = Math.Max(definition1Min, _resizeData.SplitterLength); 798else if (_resizeData.SplitterIndex == _resizeData.Definition2Index) 800definition2Min = Math.Max(definition2Min, _resizeData.SplitterLength); 803if (_resizeData.SplitBehavior == SplitBehavior.Split) 809else if (_resizeData.SplitBehavior == SplitBehavior.Resize1) 825if (_resizeData.SplitBehavior == SplitBehavior.Split) 827IEnumerable definitions = _resizeData.ResizeDirection == GridResizeDirection.Columns ? (IEnumerable)_resizeData.Grid.ColumnDefinitions : (IEnumerable)_resizeData.Grid.RowDefinitions; 834if (i == _resizeData.Definition1Index) 838else if (i == _resizeData.Definition2Index) 850else if (_resizeData.SplitBehavior == SplitBehavior.Resize1) 852SetDefinitionLength(_resizeData.Definition1, new GridLength(definition1Pixels)); 856SetDefinitionLength(_resizeData.Definition2, new GridLength(definition2Pixels)); 863Debug.Assert(_resizeData != null, "_resizeData should not be null when calling MoveSplitter"); 874if (_resizeData.ResizeDirection == GridResizeDirection.Columns) 891DefinitionBase definition1 = _resizeData.Definition1; 892DefinitionBase definition2 = _resizeData.Definition2; 900if (_resizeData.SplitBehavior == SplitBehavior.Split && 901!LayoutDoubleUtil.AreClose(actualLength1 + actualLength2, _resizeData.OriginalDefinition1ActualLength + _resizeData.OriginalDefinition2ActualLength)) 911if (FlowDirection != _resizeData.Grid.FlowDirection) 940if (_resizeData != null) 948if (_resizeData == null)