PartBinding
StockSharp.Xaml.Diagram.GXDiagram.PartManager
Provide access to the Part for data binding, e.g. inside a DataTemplate, as well as access to the model data itself.
Implements: INotifyPropertyChanged
Constructors
PartBinding
public PartBinding(Part part, object data)
partBinding = PartBinding(part, data)
Construct and initialize a PartBinding, matching up a Node or Link with the data to which it is bound, to be used as the Content of a ContentPresenter.
- part
- data
Properties
Data
public object Data { get; private set; }
value = partBinding.Data
partBinding.Data = value
Gets the model data that this Node or Link is bound to.
Part
public Part Part { get; private set; }
value = partBinding.Part
partBinding.Part = value
Gets the Node or Link that is bound to model data.
Methods
ToString
public override string ToString()
result = partBinding.ToString()
This is might be useful for debugging.
Events
PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
partBinding.PropertyChanged += handler
This implementation of INotifyPropertyChanged does nothing.