2 writes to _root
Microsoft.Maui.Controls (2)
LegacyLayouts\FlexLayout.cs (2)
266
InitLayoutProperties(
_root
= new Flex.Item());
284
_root
= null;
33 references to _root
Microsoft.Maui.Controls (33)
LegacyLayouts\FlexLayout.cs (33)
193
if (flexLayout.
_root
== null)
195
flexLayout.
_root
.Direction = (Flex.Direction)(FlexDirection)newValue;
202
if (flexLayout.
_root
== null)
204
flexLayout.
_root
.JustifyContent = (Flex.Justify)(FlexJustify)newValue;
211
if (flexLayout.
_root
== null)
213
flexLayout.
_root
.AlignContent = (Flex.AlignContent)(FlexAlignContent)newValue;
220
if (flexLayout.
_root
== null)
222
flexLayout.
_root
.AlignItems = (Flex.AlignItems)(FlexAlignItems)newValue;
229
if (flexLayout.
_root
== null)
231
flexLayout.
_root
.Position = (Flex.Position)(FlexPosition)newValue;
238
if (flexLayout.
_root
== null)
240
flexLayout.
_root
.Wrap = (Flex.Wrap)(FlexWrap)newValue;
249
if (IsPlatformEnabled &&
_root
== null)
251
else if (!IsPlatformEnabled &&
_root
!= null)
258
if (Parent != null &&
_root
== null)
260
else if (Parent == null &&
_root
!= null)
303
if (
_root
== null)
305
var item = (view as FlexLayout)?.
_root
?? new Flex.Item();
320
_root
.InsertAt(Children.IndexOf(view), item);
353
if (
_root
== null)
356
_root
.Remove(item);
365
var item = (sender as FlexLayout)?.
_root
?? GetFlexItem((BindableObject)sender);
376
var item = (sender as FlexLayout)?.
_root
?? GetFlexItem((BindableObject)sender);
390
var item = (sender as FlexLayout)?.
_root
?? GetFlexItem((BindableObject)sender);
404
var item = (sender as FlexLayout)?.
_root
?? GetFlexItem((BindableObject)sender);
417
if (
_root
== null)
439
if (
_root
== null)
463
foreach (var item in
_root
)
469
foreach (var item in
_root
)
488
if (
_root
.Parent != null) //Layout is only computed at root level
490
_root
.Width = !double.IsPositiveInfinity((width)) ? (float)width : 0;
491
_root
.Height = !double.IsPositiveInfinity((height)) ? (float)height : 0;
492
_root
.Layout(_measuring);