26 references to DataTemplateSelector
Microsoft.Maui.Controls (20)
BindableLayout\BindableLayout.cs (11)
32
BindableProperty.CreateAttached("ItemTemplateSelector", typeof(
DataTemplateSelector
), typeof(IBindableLayout), default(
DataTemplateSelector
),
33
propertyChanged: (b, o, n) => { GetBindableLayoutController(b).ItemTemplateSelector = (
DataTemplateSelector
)n; });
73
public static void SetItemTemplateSelector(BindableObject b,
DataTemplateSelector
value)
79
public static
DataTemplateSelector
GetItemTemplateSelector(BindableObject b)
81
return (
DataTemplateSelector
)b.GetValue(ItemTemplateSelectorProperty);
244
DataTemplateSelector
_itemTemplateSelector;
252
public
DataTemplateSelector
ItemTemplateSelector { get => _itemTemplateSelector; set => SetItemTemplateSelector(value); }
298
if (itemTemplate is
DataTemplateSelector
)
300
throw new NotSupportedException($"You are using an instance of {nameof(
DataTemplateSelector
)} to set the {nameof(BindableLayout)}.{BindableLayout.ItemTemplateProperty.PropertyName} property. Use {nameof(BindableLayout)}.{BindableLayout.ItemTemplateSelectorProperty.PropertyName} property instead to set an item template selector");
311
void SetItemTemplateSelector(
DataTemplateSelector
itemTemplateSelector)
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (2)
1429
var
selector = itemTemplate as
DataTemplateSelector
;
DataTemplateExtensions.cs (2)
13
var
selector = self as
DataTemplateSelector
;
DataTemplateSelector.cs (1)
26
if (dataTemplate is
DataTemplateSelector
)
ElementTemplate.cs (1)
84
if (this is
DataTemplateSelector
)
Handlers\Items\iOS\ItemsViewController.cs (1)
580
if (view is null && (viewTemplate is null || viewTemplate is
DataTemplateSelector
))
Handlers\Items2\iOS\ItemsViewController2.cs (1)
326
if (view is null && (viewTemplate is null || viewTemplate is
DataTemplateSelector
))
ListView\ListView.cs (1)
759
var isDataTemplateSelector = ItemTemplate is
DataTemplateSelector
;
Microsoft.Maui.Controls.Maps (6)
Map.cs (6)
42
public static readonly BindableProperty ItemTemplateSelectorProperty = BindableProperty.Create(nameof(ItemTemplateSelector), typeof(
DataTemplateSelector
), typeof(Map), default(
DataTemplateSelector
),
156
public
DataTemplateSelector
ItemTemplateSelector
158
get { return (
DataTemplateSelector
)GetValue(ItemTemplateSelectorProperty); }
285
if (newItemTemplate is
DataTemplateSelector
)
289
$" Set the {nameof(Map)}.{ItemTemplateSelectorProperty.PropertyName} property instead to use a {nameof(
DataTemplateSelector
)}");