5 writes to _resizeData
PresentationFramework (5)
System\Windows\Controls\GridSplitter.cs (5)
499
_resizeData
= new ResizeData();
510
_resizeData
= null;
697
_resizeData
= null;
749
_resizeData
= null;
967
_resizeData
= null;
96 references to _resizeData
PresentationFramework (96)
System\Windows\Controls\GridSplitter.cs (96)
479
if (
_resizeData
.Adorner != null)
481
AdornerLayer layer = VisualTreeHelper.GetParent(
_resizeData
.Adorner) as AdornerLayer;
482
layer.Remove(
_resizeData
.Adorner);
500
_resizeData
.Grid = grid;
501
_resizeData
.ShowsPreview = ShowsPreview;
502
_resizeData
.ResizeDirection = GetEffectiveResizeDirection();
503
_resizeData
.ResizeBehavior = GetEffectiveResizeBehavior(
_resizeData
.ResizeDirection);
504
_resizeData
.SplitterLength = Math.Min(ActualWidth, ActualHeight);
524
int gridSpan = (int)GetValue(
_resizeData
.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnSpanProperty : Grid.RowSpanProperty);
528
splitterIndex = (int)GetValue(
_resizeData
.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnProperty : Grid.RowProperty);
531
switch (
_resizeData
.ResizeBehavior)
551
int count = (
_resizeData
.ResizeDirection == GridResizeDirection.Columns) ?
_resizeData
.Grid.ColumnDefinitions.Count :
_resizeData
.Grid.RowDefinitions.Count;
555
_resizeData
.SplitterIndex = splitterIndex;
557
_resizeData
.Definition1Index = index1;
558
_resizeData
.Definition1 = GetGridDefinition(
_resizeData
.Grid, index1,
_resizeData
.ResizeDirection);
559
_resizeData
.OriginalDefinition1Length =
_resizeData
.Definition1.UserSizeValueCache; //save Size if user cancels
560
_resizeData
.OriginalDefinition1ActualLength = GetActualLength(
_resizeData
.Definition1);
562
_resizeData
.Definition2Index = index2;
563
_resizeData
.Definition2 = GetGridDefinition(
_resizeData
.Grid, index2,
_resizeData
.ResizeDirection);
564
_resizeData
.OriginalDefinition2Length =
_resizeData
.Definition2.UserSizeValueCache; //save Size if user cancels
565
_resizeData
.OriginalDefinition2ActualLength = GetActualLength(
_resizeData
.Definition2);
568
bool isStar1 = IsStar(
_resizeData
.Definition1);
569
bool isStar2 = IsStar(
_resizeData
.Definition2);
573
_resizeData
.SplitBehavior = SplitBehavior.Split;
578
_resizeData
.SplitBehavior = !isStar1 ? SplitBehavior.Resize1 : SplitBehavior.Resize2;
590
if (
_resizeData
.ShowsPreview)
593
AdornerLayer adornerlayer = AdornerLayer.GetAdornerLayer(
_resizeData
.Grid);
601
_resizeData
.Adorner = new PreviewAdorner(this, PreviewStyle);
602
adornerlayer.Add(
_resizeData
.Adorner);
605
GetDeltaConstraints(out
_resizeData
.MinChange, out
_resizeData
.MaxChange);
620
if (
_resizeData
!= null)
635
Debug.Assert(
_resizeData
== null, "_resizeData is not null, DragCompleted was not called");
649
if (
_resizeData
!= null)
659
if (
_resizeData
.ShowsPreview)
662
if (
_resizeData
.ResizeDirection == GridResizeDirection.Columns)
664
_resizeData
.Adorner.OffsetX = Math.Min(Math.Max(horizontalChange,
_resizeData
.MinChange),
_resizeData
.MaxChange);
668
_resizeData
.Adorner.OffsetY = Math.Min(Math.Max(verticalChange,
_resizeData
.MinChange),
_resizeData
.MaxChange);
688
if (
_resizeData
!= null)
690
if (
_resizeData
.ShowsPreview)
693
MoveSplitter(
_resizeData
.Adorner.OffsetX,
_resizeData
.Adorner.OffsetY);
711
if (
_resizeData
!= null)
739
if (
_resizeData
.ShowsPreview)
745
SetDefinitionLength(
_resizeData
.Definition1,
_resizeData
.OriginalDefinition1Length);
746
SetDefinitionLength(
_resizeData
.Definition2,
_resizeData
.OriginalDefinition2Length);
791
double definition1Len = GetActualLength(
_resizeData
.Definition1);
792
double definition1Min =
_resizeData
.Definition1.UserMinSizeValueCache;
793
double definition1Max =
_resizeData
.Definition1.UserMaxSizeValueCache;
795
double definition2Len = GetActualLength(
_resizeData
.Definition2);
796
double definition2Min =
_resizeData
.Definition2.UserMinSizeValueCache;
797
double definition2Max =
_resizeData
.Definition2.UserMaxSizeValueCache;
800
if (
_resizeData
.SplitterIndex ==
_resizeData
.Definition1Index)
802
definition1Min = Math.Max(definition1Min,
_resizeData
.SplitterLength);
804
else if (
_resizeData
.SplitterIndex ==
_resizeData
.Definition2Index)
806
definition2Min = Math.Max(definition2Min,
_resizeData
.SplitterLength);
809
if (
_resizeData
.SplitBehavior == SplitBehavior.Split)
815
else if (
_resizeData
.SplitBehavior == SplitBehavior.Resize1)
831
if (
_resizeData
.SplitBehavior == SplitBehavior.Split)
833
IEnumerable definitions =
_resizeData
.ResizeDirection == GridResizeDirection.Columns ? (IEnumerable)
_resizeData
.Grid.ColumnDefinitions : (IEnumerable)
_resizeData
.Grid.RowDefinitions;
840
if (i ==
_resizeData
.Definition1Index)
844
else if (i ==
_resizeData
.Definition2Index)
856
else if (
_resizeData
.SplitBehavior == SplitBehavior.Resize1)
858
SetDefinitionLength(
_resizeData
.Definition1, new GridLength(definition1Pixels));
862
SetDefinitionLength(
_resizeData
.Definition2, new GridLength(definition2Pixels));
869
Debug.Assert(
_resizeData
!= null, "_resizeData should not be null when calling MoveSplitter");
880
if (
_resizeData
.ResizeDirection == GridResizeDirection.Columns)
897
DefinitionBase definition1 =
_resizeData
.Definition1;
898
DefinitionBase definition2 =
_resizeData
.Definition2;
906
if (
_resizeData
.SplitBehavior == SplitBehavior.Split &&
907
!LayoutDoubleUtil.AreClose(actualLength1 + actualLength2,
_resizeData
.OriginalDefinition1ActualLength +
_resizeData
.OriginalDefinition2ActualLength))
917
if (FlowDirection !=
_resizeData
.Grid.FlowDirection)
946
if (
_resizeData
!= null)
954
if (
_resizeData
== null)