ThemeBinding
StockSharp.Xaml.Charting.Common.MarkupExtensions
Used to provide dynamic bindings to IThemeProvider resources (Brushes, Colors) inside a Ultrachart Theme. For an example of use, see the Default.xaml file in the source code
Inherits: MarkupExtension
Constructors
ThemeBinding
public ThemeBinding()
themeBinding = ThemeBinding()
Initializes a new instance of the ThemeBinding class.
Properties
Mode
public BindingMode Mode { get; set; }
value = themeBinding.Mode
themeBinding.Mode = value
Gets or sets the BindingMode.
Path
public string Path { get; set; }
value = themeBinding.Path
themeBinding.Path = value
Gets or sets the path to the property on a IThemeProvider instance
Methods
ProvideValue
public override object ProvideValue(IServiceProvider serviceProvider)
result = themeBinding.ProvideValue(serviceProvider)
When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
- serviceProvider
- A service provider helper that can provide services for the markup extension.
Returns: The object value to set on the property where the extension is applied.