Class ItemMetadata
Defines a class that wraps an item and adds metadata for it.
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 |
|---|---|---|
| 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 |
|---|---|
| DependencyProperty |
NameProperty
The name of the wrapped item.
Declaration
public static readonly DependencyProperty NameProperty
Field Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| bool | true if the item should be considered active; otherwise false. |
Item
Gets the wrapped item.
Declaration
public object Item { get; }
Property Value
| Type | Description |
|---|---|
| object | The wrapped item. |
Name
Gets or sets a name for the wrapped item.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| EventHandler |