56 references to TwoPaneViewMode
Microsoft.Maui.Controls.Foldable (56)
DualScreenInfo.cs (3)
46 TwoPaneViewMode _spanMode; 167 public TwoPaneViewMode SpanMode 202 TwoPaneViewMode GetSpanMode() => _twoPaneViewLayoutGuide.Mode;
SpanModeStateTrigger.cs (13)
9 /// Triggers a state change when the <see cref="Microsoft.Maui.Controls.Foldable.TwoPaneViewMode"/> 22 /// <see cref="Microsoft.Maui.Controls.Foldable.TwoPaneViewMode"/> 25 public TwoPaneViewMode SpanMode 27 get => (TwoPaneViewMode)GetValue(SpanModeProperty); 33 BindableProperty.Create(nameof(SpanMode), typeof(TwoPaneViewMode), typeof(SpanModeStateTrigger), default(TwoPaneViewMode), 88 var spanMode = _info.SpanMode; 92 case TwoPaneViewMode.SinglePane: 93 SetActive(spanMode == TwoPaneViewMode.SinglePane); 95 case TwoPaneViewMode.Tall: 96 SetActive(spanMode == TwoPaneViewMode.Tall); 98 case TwoPaneViewMode.Wide: 99 SetActive(spanMode == TwoPaneViewMode.Wide);
TwoPaneView.cs (19)
44 TwoPaneViewMode _layoutGuideMode; 67 = BindableProperty.CreateReadOnly("Mode", typeof(TwoPaneViewMode), typeof(TwoPaneView), defaultValue: TwoPaneViewMode.SinglePane, propertyChanged: OnModePropertyChanged); 93 /// Event when the <see cref="Microsoft.Maui.Controls.Foldable.TwoPaneViewMode"/> 173 /// Gets a <see cref="Microsoft.Maui.Controls.Foldable.TwoPaneViewMode"/> value 176 public TwoPaneViewMode Mode { get => (TwoPaneViewMode)GetValue(ModeProperty); } 353 if (_twoPaneViewLayoutGuide.Mode != TwoPaneViewMode.SinglePane) 355 if (_twoPaneViewLayoutGuide.Mode == TwoPaneViewMode.Wide) 363 else if (_twoPaneViewLayoutGuide.Mode == TwoPaneViewMode.Tall) 395 TwoPaneViewMode newViewMode = TwoPaneViewMode.SinglePane; 404 newViewMode = TwoPaneViewMode.Wide; 407 newViewMode = TwoPaneViewMode.Wide; 410 newViewMode = TwoPaneViewMode.Tall; 413 newViewMode = TwoPaneViewMode.Tall; 459 bool isLayoutSpanned = _twoPaneViewLayoutGuide.Mode != TwoPaneViewMode.SinglePane; 463 if (_twoPaneViewLayoutGuide.Mode != TwoPaneViewMode.SinglePane && newMode != ViewMode.Pane1Only && newMode != ViewMode.Pane2Only) 468 if (_twoPaneViewLayoutGuide.Mode == TwoPaneViewMode.Wide)
TwoPaneViewLayoutGuide.cs (8)
36 TwoPaneViewMode _mode; 95 public TwoPaneViewMode Mode 100 return TwoPaneViewMode.SinglePane; 102 var mode = GetTwoPaneViewMode(_layoutWidth, _layoutHeight, _hinge); 353 TwoPaneViewMode GetTwoPaneViewMode(double width, double height, Rect hinge) 357 return TwoPaneViewMode.SinglePane; 372 return TwoPaneViewMode.Wide; 385 return TwoPaneViewMode.Tall;
WindowSpanModeStateTrigger.cs (13)
8 /// Triggers a state change when the <see cref="Microsoft.Maui.Controls.Foldable.TwoPaneViewMode"/> 19 /// <see cref="Microsoft.Maui.Controls.Foldable.TwoPaneViewMode"/> 22 public TwoPaneViewMode SpanMode 24 get => (TwoPaneViewMode)GetValue(SpanModeProperty); 30 BindableProperty.Create(nameof(SpanMode), typeof(TwoPaneViewMode), typeof(WindowSpanModeStateTrigger), default(TwoPaneViewMode), 63 var spanMode = DualScreenInfo.Current.SpanMode; 67 case TwoPaneViewMode.SinglePane: 68 SetActive(spanMode == TwoPaneViewMode.SinglePane); 70 case TwoPaneViewMode.Tall: 71 SetActive(spanMode == TwoPaneViewMode.Tall); 73 case TwoPaneViewMode.Wide: 74 SetActive(spanMode == TwoPaneViewMode.Wide);