PropertyItem

StockSharp.Xaml.PropertyGrid.Maui

Stellt ein Objekt im Objektraster dar.

Implementiert: INotifyPropertyChanged

Konstruktoren

PropertyItem
public PropertyItem(PropertyInfo propertyInfo, object target)
propertyItem = PropertyItem(propertyInfo, target)

Erstellt ein neues Objekt.

Eigenschaften

Category
public string Category { get; }
value = propertyItem.Category

Kategoriename (von CategoryAttribute).

Description
public string Description { get; }
value = propertyItem.Description

Beschreibung der Eigenschaft (von DescriptionAttribute).

DisplayName
public string DisplayName { get; }
value = propertyItem.DisplayName

Zeigen Sie den Namen an (von DisplayAttribute oder DisplayNameAttribute).

EnumValues
public Array EnumValues { get; }
value = propertyItem.EnumValues

Enum-Werte für enum-Eigenschaften.

IsBasic
public bool IsBasic { get; }
value = propertyItem.IsBasic

Ob dies eine grundlegende Eigenschaft ist (im Basismodus angezeigt).

IsBool
public bool IsBool { get; }
value = propertyItem.IsBool

Ob das Eigentum ein Boolean ist.

IsEnum
public bool IsEnum { get; }
value = propertyItem.IsEnum

Ob das Eigentum ein Enum ist.

IsNumeric
public bool IsNumeric { get; }
value = propertyItem.IsNumeric

Ob die Immobilie numerisch ist.

IsReadOnly
public bool IsReadOnly { get; set; }
value = propertyItem.IsReadOnly
propertyItem.IsReadOnly = value

Ob die Immobilie nur gelesen wird.

IsText
public bool IsText { get; }
value = propertyItem.IsText

Ob die Eigenschaft ein String oder ein einfacher Texttyp ist.

Name
public string Name { get; }
value = propertyItem.Name

Name des Eigentums.

Order
public int Order { get; }
value = propertyItem.Order

Anzeigereihenfolge.

PropertyInfo
public PropertyInfo PropertyInfo { get; }
value = propertyItem.PropertyInfo

Die PropertyInfo zum Nachdenken.

PropertyType
public Type PropertyType { get; }
value = propertyItem.PropertyType

Art der Immobilie.

Target
public object Target { get; }
value = propertyItem.Target

Das Zielobjekt.

Value
public object Value { get; set; }
value = propertyItem.Value
propertyItem.Value = value

Aktueller Immobilienwert.

ValueAsBool
public bool ValueAsBool { get; set; }
value = propertyItem.ValueAsBool
propertyItem.ValueAsBool = value

Wert als bool für Switch-Bindung.

ValueAsString
public string ValueAsString { get; set; }
value = propertyItem.ValueAsString
propertyItem.ValueAsString = value

Wert als Zeichenfolge für die Anzeige.

Methoden

OnPropertyChanged
protected virtual void OnPropertyChanged(string propertyName)
propertyItem.OnPropertyChanged(propertyName)

Erhebt die PropertyChanged Veranstaltung.

RefreshValue
public void RefreshValue()
propertyItem.RefreshValue()

Refreshes den Wert aus dem Zielobjekt.

Ereignisse

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
propertyItem.PropertyChanged += handler

Eigenschaft geändert Ereignis.