1 write to Hinge
Microsoft.Maui.Controls.Foldable (1)
TwoPaneViewLayoutGuide.cs (1)
293 Hinge = DualScreenService.GetHinge();
30 references to Hinge
Microsoft.Maui.Controls.Foldable (30)
DualScreenInfo.cs (2)
179 var hinge = guide.Hinge; 197 return guide.Hinge;
TwoPaneView.cs (5)
287 _twoPaneViewLayoutGuide.Hinge == _layoutGuideHinge && 296 _layoutGuideHinge = _twoPaneViewLayoutGuide.Hinge; 461 _previousHinge = _twoPaneViewLayoutGuide.Hinge; 465 _previousHinge = _twoPaneViewLayoutGuide.Hinge; 466 Rect hinge = _twoPaneViewLayoutGuide.Hinge;
TwoPaneViewLayoutGuide.cs (23)
208 if (locationOnScreen == Rect.Zero && Hinge == Rect.Zero) 212 bool hingeIsVertical = Hinge.Height > Hinge.Width; 218 var pane2X = Hinge.X + Hinge.Width; 222 _newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.Height); 223 _newPane2 = new Rect(_newPane1.Width + Hinge.Width, 0, pane2Width, locationOnScreen.Height); 227 var pane2Y = Hinge.Y + Hinge.Height; 231 _newPane1 = new Rect(0, 0, locationOnScreen.Width, Hinge.Y - locationOnScreen.Y); 232 _newPane2 = new Rect(0, _newPane1.Height + Hinge.Height, locationOnScreen.Width, pane2Height); 242 var hingeRightX = Hinge.X + Hinge.Width; 245 if (containerRightX > Hinge.X && containerRightX < hingeRightX) 247 _newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.Height); 250 else if (Hinge.X < locationOnScreen.X && hingeRightX > locationOnScreen.X) 264 var hingeBottomY = Hinge.Y + Hinge.Height; 267 if (containerBottomY > Hinge.Y && containerBottomY < hingeBottomY) 269 _newPane1 = new Rect(0, 0, locationOnScreen.Width, Hinge.Y - locationOnScreen.Y); 272 else if (Hinge.Y < locationOnScreen.Y && hingeBottomY > locationOnScreen.Y) 315 bool hingeIsVertical = Hinge.Height > Hinge.Width;