콘텐츠로 이동

ItemTemplateExtensions.SelectedItemTemplate<TItem,TElement> method (1 of 2)

이 콘텐츠는 아직 번역되지 않았습니다.

Sets the header template for the selected item from a root element and a bind callback that needs only the item.

public static ComboBox SelectedItemTemplate<TItem, TElement>(this ComboBox comboBox,
Func<TemplateContext, TElement> build, Action<TElement, TItem> bind)
where TElement : FrameworkElement
parameter description
TItem Item type.
TElement Template root element type.

ItemTemplateExtensions.SelectedItemTemplate<TItem,TElement> method (2 of 2)

Section titled “ItemTemplateExtensions.SelectedItemTemplate<TItem,TElement> method (2 of 2)”

Sets the header template for the selected item; the bind callback receives the root the build callback returned.

public static ComboBox SelectedItemTemplate<TItem, TElement>(this ComboBox comboBox,
Func<TemplateContext, TElement> build, Action<TElement, TItem, int, TemplateContext> bind,
Action<TElement, TItem, int, TemplateContext>? unbind = null)
where TElement : FrameworkElement
parameter description
TItem Item type.
TElement Template root element type.