Segment
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes one observable choice shared by SegmentedButton and ChipGroup.
- C#
- VB.NET
public class Segment : INotifyPropertyChanged
Public Class Segment
Inherits INotifyPropertyChanged
A segment belongs to one collection. Value remains on the server and is never serialized to the browser.
Example:
choices.Items.Add(new Segment { Text = "Europe", Value = "EU", Count = 18 });
Constructors
Segment()
Initializes a new instance of Segment.
Properties
Count
Nullable<Int32>: Gets or sets the optional nonnegative count displayed by ChipGroup when ShowCounts is enabled. (Default: null)
Enabled
Boolean: Gets or sets whether the user can activate or close this option. (Default: True)
Icon
String: Gets or sets an image URL or theme image name. (Default: "")
Text
String: Gets or sets the plain-text option label. (Default: "")
ToolTipText
String: Gets or sets the plain-text option tooltip. (Default: "")
Value
Object: Gets or sets the application value retained only on the server. (Default: null)
Events
PropertyChanged
PropertyChangedEventHandler Occurs after a segment property changes.