4 instantiations of Item
Microsoft.Maui.Controls (4)
Layout\FlexLayout.cs (2)
494
var item = (child as FlexLayout)?._root ?? new Flex.
Item
();
607
InitLayoutProperties(_root = new Flex.
Item
());
LegacyLayouts\FlexLayout.cs (2)
266
InitLayoutProperties(_root = new Flex.
Item
());
305
var item = (view as FlexLayout)?._root ?? new Flex.
Item
();
58 references to Item
Microsoft.Maui (21)
Layouts\Flex.cs (21)
231
class Item : List<
Item
>
241
public
Item
? Parent { get; private set; }
394
public new void Add(
Item
child)
402
public void InsertAt(int index,
Item
child)
410
public
Item
RemoveAt(uint index)
412
var
child = this[(int)index];
418
public
Item
Root
422
var
root = this;
440
public delegate void SelfSizingDelegate(
Item
item, ref float width, ref float height, bool inMeasureMode);
444
void ValidateChild(
Item
child)
452
static void layout_item(
Item
item, float width, float height, bool inMeasureMode)
465
var
child = layout.child_at(item, i);
617
Item
child = layout.child_at(item, j);
732
static void layout_items(
Item
item, int child_begin, int child_end, int children_count, ref flex_layout layout, bool inMeasureMode)
772
Item
child = layout.child_at(item, i);
882
Item
child = layout.child_at(item, i);
903
static AlignItems child_align(
Item
child,
Item
parent) =>
954
public void init(
Item
item, float width, float height)
1041
public
Item
child_at(
Item
item, int i) =>
Microsoft.Maui.Controls (37)
Layout\FlexExtensions.cs (3)
9
public static Rect GetFrame(this Flex.
Item
item)
14
public static Size GetConstraints(this Flex.
Item
item)
18
var
parent = item.Parent;
Layout\FlexLayout.cs (16)
16
Flex.
Item
_root;
156
BindableProperty.CreateAttached("FlexItem", typeof(Flex.
Item
), typeof(FlexLayout), null);
159
static Flex.
Item
GetFlexItem(BindableObject bindable)
160
=> (Flex.
Item
)bindable.GetValue(FlexItemProperty);
265
public Flex.
Item
FlexItem { get; set; }
378
internal Flex.
Item
GetFlexItem(IView view)
382
BindableObject bo => (Flex.
Item
)bo.GetValue(FlexItemProperty),
387
void SetFlexItem(IView view, Flex.
Item
flexItem)
436
void InitItemProperties(IView view, Flex.
Item
item)
494
var
item = (child as FlexLayout)?._root ?? new Flex.Item();
498
item.SelfSizing = (Flex.
Item
it, ref float w, ref float h, bool inMeasureMode) =>
540
var
item = GetFlexItem(child);
567
var
flexItem = GetFlexItem(child);
621
void InitLayoutProperties(Flex.
Item
item)
676
if (GetFlexItem(child) is Flex.
Item
item)
691
if (GetFlexItem(child) is Flex.
Item
item)
LegacyLayouts\FlexLayout.cs (18)
47
BindableProperty.CreateAttached("FlexItem", typeof(Flex.
Item
), typeof(FlexLayout), null);
114
static Flex.
Item
GetFlexItem(BindableObject bindable)
115
=> (Flex.
Item
)bindable.GetValue(FlexItemProperty);
117
static void SetFlexItem(BindableObject bindable, Flex.
Item
node)
244
Flex.
Item
_root;
271
void InitLayoutProperties(Flex.
Item
item)
305
var
item = (view as FlexLayout)?._root ?? new Flex.Item();
309
item.SelfSizing = (Flex.
Item
it, ref float w, ref float h, bool inMeasureMode) =>
324
void InitItemProperties(View view, Flex.
Item
item)
355
var
item = GetFlexItem(view);
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);
451
if (GetFlexItem(child) is Flex.
Item
item)
463
foreach (
var
item in _root)
469
foreach (
var
item in _root)
476
if (GetFlexItem(child) is Flex.
Item
item)