5 writes to _resizeData
PresentationFramework (5)
src\Framework\System\Windows\Controls\GridSplitter.cs (5)
501
_resizeData
= new ResizeData();
512
_resizeData
= null;
699
_resizeData
= null;
751
_resizeData
= null;
969
_resizeData
= null;
96 references to _resizeData
PresentationFramework (96)
src\Framework\System\Windows\Controls\GridSplitter.cs (96)
481
if (
_resizeData
.Adorner != null)
483
AdornerLayer layer = VisualTreeHelper.GetParent(
_resizeData
.Adorner) as AdornerLayer;
484
layer.Remove(
_resizeData
.Adorner);
502
_resizeData
.Grid = grid;
503
_resizeData
.ShowsPreview = ShowsPreview;
504
_resizeData
.ResizeDirection = GetEffectiveResizeDirection();
505
_resizeData
.ResizeBehavior = GetEffectiveResizeBehavior(
_resizeData
.ResizeDirection);
506
_resizeData
.SplitterLength = Math.Min(ActualWidth, ActualHeight);
526
int gridSpan = (int)GetValue(
_resizeData
.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnSpanProperty : Grid.RowSpanProperty);
530
splitterIndex = (int)GetValue(
_resizeData
.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnProperty : Grid.RowProperty);
533
switch (
_resizeData
.ResizeBehavior)
553
int count = (
_resizeData
.ResizeDirection == GridResizeDirection.Columns) ?
_resizeData
.Grid.ColumnDefinitions.Count :
_resizeData
.Grid.RowDefinitions.Count;
557
_resizeData
.SplitterIndex = splitterIndex;
559
_resizeData
.Definition1Index = index1;
560
_resizeData
.Definition1 = GetGridDefinition(
_resizeData
.Grid, index1,
_resizeData
.ResizeDirection);
561
_resizeData
.OriginalDefinition1Length =
_resizeData
.Definition1.UserSizeValueCache; //save Size if user cancels
562
_resizeData
.OriginalDefinition1ActualLength = GetActualLength(
_resizeData
.Definition1);
564
_resizeData
.Definition2Index = index2;
565
_resizeData
.Definition2 = GetGridDefinition(
_resizeData
.Grid, index2,
_resizeData
.ResizeDirection);
566
_resizeData
.OriginalDefinition2Length =
_resizeData
.Definition2.UserSizeValueCache; //save Size if user cancels
567
_resizeData
.OriginalDefinition2ActualLength = GetActualLength(
_resizeData
.Definition2);
570
bool isStar1 = IsStar(
_resizeData
.Definition1);
571
bool isStar2 = IsStar(
_resizeData
.Definition2);
575
_resizeData
.SplitBehavior = SplitBehavior.Split;
580
_resizeData
.SplitBehavior = !isStar1 ? SplitBehavior.Resize1 : SplitBehavior.Resize2;
592
if (
_resizeData
.ShowsPreview)
595
AdornerLayer adornerlayer = AdornerLayer.GetAdornerLayer(
_resizeData
.Grid);
603
_resizeData
.Adorner = new PreviewAdorner(this, PreviewStyle);
604
adornerlayer.Add(
_resizeData
.Adorner);
607
GetDeltaConstraints(out
_resizeData
.MinChange, out
_resizeData
.MaxChange);
622
if (
_resizeData
!= null)
637
Debug.Assert(
_resizeData
== null, "_resizeData is not null, DragCompleted was not called");
651
if (
_resizeData
!= null)
661
if (
_resizeData
.ShowsPreview)
664
if (
_resizeData
.ResizeDirection == GridResizeDirection.Columns)
666
_resizeData
.Adorner.OffsetX = Math.Min(Math.Max(horizontalChange,
_resizeData
.MinChange),
_resizeData
.MaxChange);
670
_resizeData
.Adorner.OffsetY = Math.Min(Math.Max(verticalChange,
_resizeData
.MinChange),
_resizeData
.MaxChange);
690
if (
_resizeData
!= null)
692
if (
_resizeData
.ShowsPreview)
695
MoveSplitter(
_resizeData
.Adorner.OffsetX,
_resizeData
.Adorner.OffsetY);
713
if (
_resizeData
!= null)
741
if (
_resizeData
.ShowsPreview)
747
SetDefinitionLength(
_resizeData
.Definition1,
_resizeData
.OriginalDefinition1Length);
748
SetDefinitionLength(
_resizeData
.Definition2,
_resizeData
.OriginalDefinition2Length);
793
double definition1Len = GetActualLength(
_resizeData
.Definition1);
794
double definition1Min =
_resizeData
.Definition1.UserMinSizeValueCache;
795
double definition1Max =
_resizeData
.Definition1.UserMaxSizeValueCache;
797
double definition2Len = GetActualLength(
_resizeData
.Definition2);
798
double definition2Min =
_resizeData
.Definition2.UserMinSizeValueCache;
799
double definition2Max =
_resizeData
.Definition2.UserMaxSizeValueCache;
802
if (
_resizeData
.SplitterIndex ==
_resizeData
.Definition1Index)
804
definition1Min = Math.Max(definition1Min,
_resizeData
.SplitterLength);
806
else if (
_resizeData
.SplitterIndex ==
_resizeData
.Definition2Index)
808
definition2Min = Math.Max(definition2Min,
_resizeData
.SplitterLength);
811
if (
_resizeData
.SplitBehavior == SplitBehavior.Split)
817
else if (
_resizeData
.SplitBehavior == SplitBehavior.Resize1)
833
if (
_resizeData
.SplitBehavior == SplitBehavior.Split)
835
IEnumerable definitions =
_resizeData
.ResizeDirection == GridResizeDirection.Columns ? (IEnumerable)
_resizeData
.Grid.ColumnDefinitions : (IEnumerable)
_resizeData
.Grid.RowDefinitions;
842
if (i ==
_resizeData
.Definition1Index)
846
else if (i ==
_resizeData
.Definition2Index)
858
else if (
_resizeData
.SplitBehavior == SplitBehavior.Resize1)
860
SetDefinitionLength(
_resizeData
.Definition1, new GridLength(definition1Pixels));
864
SetDefinitionLength(
_resizeData
.Definition2, new GridLength(definition2Pixels));
871
Debug.Assert(
_resizeData
!= null, "_resizeData should not be null when calling MoveSplitter");
882
if (
_resizeData
.ResizeDirection == GridResizeDirection.Columns)
899
DefinitionBase definition1 =
_resizeData
.Definition1;
900
DefinitionBase definition2 =
_resizeData
.Definition2;
908
if (
_resizeData
.SplitBehavior == SplitBehavior.Split &&
909
!LayoutDoubleUtil.AreClose(actualLength1 + actualLength2,
_resizeData
.OriginalDefinition1ActualLength +
_resizeData
.OriginalDefinition2ActualLength))
919
if (FlowDirection !=
_resizeData
.Grid.FlowDirection)
948
if (
_resizeData
!= null)
956
if (
_resizeData
== null)