Class ItemMetadata
Defines a class that wraps an item and adds metadata for it.
Inheritance
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
ItemMetadata
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyPropertyKey)
System.Windows.DependencyObject.CoerceValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.Equals(System.Object)
System.Windows.DependencyObject.GetHashCode()
System.Windows.DependencyObject.GetLocalValueEnumerator()
System.Windows.DependencyObject.GetValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.DependencyObject.ReadLocalValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.SetCurrentValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyPropertyKey, System.Object)
System.Windows.DependencyObject.ShouldSerializeProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.DependencyObjectType
System.Windows.DependencyObject.IsSealed
System.Windows.Threading.DispatcherObject.Dispatcher
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class ItemMetadata : DependencyObject
Constructors
View SourceItemMetadata(Object)
Initializes a new instance of ItemMetadata.
Declaration
public ItemMetadata(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item to wrap. |
Fields
View SourceIsActiveProperty
Value indicating whether the wrapped item is considered active.
Declaration
public static readonly DependencyProperty IsActiveProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
NameProperty
The name of the wrapped item.
Declaration
public static readonly DependencyProperty NameProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Properties
View SourceIsActive
Gets or sets a value indicating whether the wrapped item is considered active.
Declaration
public bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the item should be considered active; otherwise false. |
Item
Gets the wrapped item.
Declaration
public object Item { get; }
Property Value
Type | Description |
---|---|
System.Object | The wrapped item. |
Name
Gets or sets a name for the wrapped item.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the wrapped item. |
Methods
View SourceInvokeMetadataChanged()
Explicitly invokes MetadataChanged to notify listeners.
Declaration
public void InvokeMetadataChanged()
Events
View SourceMetadataChanged
Occurs when metadata on the item changes.
Declaration
public event EventHandler MetadataChanged
Event Type
Type | Description |
---|---|
System.EventHandler |