Table of Contents
PathSeparator Property

Gets or sets the character used to delimit the path of an item in a navigation control.

Syntax
 public Char PathSeparator { get; set; }

Property Value

System.Char

The character used to delimit the path of a navigation item. This property is read / write.

Remarks

Each navigation item (MenuItem, TreeNode and TabItem are all navigation items) in a control has a Path property that represents the position of the item. The path is a string of delimited navigation item IDs that form the path from the root item to the current item. Use the PathSeparator property to specify the delimiting character used to separate the navigation item IDs in the path.

Depending on the ItemID property of a navigation item, the delimiter character might need to be changed to prevent conflicts. For example, if you set the delimiter character to a comma, the ItemID of all the navigation items should not contain any commas; otherwise, the Path property cannot be parsed correctly.

Warning:  This property is important for server event. Server event may not be correctly fired if the Path property cannot be parsed correctly because a conflict exists.

See Also