Class ItemContainerGeneratorAdv
Represents ItemContainerGenerator class
Inheritance
System.Object
ItemContainerGeneratorAdv
Namespace: Syncfusion.UI.Xaml.Controls.Navigation
Assembly: Syncfusion.SfMenu.UWP.dll
Syntax
[ClassReference(IsReviewed = false)]
public class ItemContainerGeneratorAdv : Object
Constructors
ItemContainerGeneratorAdv(ItemsControl)
Initializes a new instance of the ItemContainerGeneratorAdv class.
Declaration
public ItemContainerGeneratorAdv(ItemsControl itemsControl)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.ItemsControl | itemsControl | ItemsControl of the Menu |
Properties
ChildrenToItems
Gets or sets the collection of items
Declaration
[ClassReference(IsReviewed = false)]
public IDictionary<DependencyObject, object> ChildrenToItems { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IDictionary<Windows.UI.Xaml.DependencyObject, System.Object> |
Methods
ApplyPropertiesTochild(DependencyObject, Object, Style)
Applying properties to the child
Declaration
public void ApplyPropertiesTochild(DependencyObject element, object item, Style parentItemContainerStyle)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | element | The element of the Item |
System.Object | item | The item of the Menu |
Windows.UI.Xaml.Style | parentItemContainerStyle | ItemContainer Style of the parent |
childfromindex(Int32)
Retrieving the child from index
Declaration
public DependencyObject childfromindex(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the Item |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.DependencyObject | Index of the child |
childfromitem(Object)
Retrieving the child from item
Declaration
public DependencyObject childfromitem(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | Item of the Menu |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.DependencyObject | Key value of mapped child |
ClearItems()
Clearing items from host
Declaration
public void ClearItems()
indexfromchild(DependencyObject)
Retrieving the index of the child
Declaration
public int indexfromchild(DependencyObject child)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | child | Child element of the object |
Returns
Type | Description |
---|---|
System.Int32 | Index of the child |
itemfromchild(DependencyObject)
Retrieving the item from child
Declaration
public object itemfromchild(DependencyObject child)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | child | Child of the object |
Returns
Type | Description |
---|---|
System.Object | Item of the child |
UpdateItemContainerStyle(Style)
To update the Style of the ItemContainer
Declaration
public void UpdateItemContainerStyle(Style itemContainerStyle)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Style | itemContainerStyle | ItemContainer style of MenuItem |