ThemeManager

StockSharp.Xaml.Charting

Proporciona el tema automático de UltrachartSurfacea través de la propiedad Theme.

Propiedades

AllThemes
public static IList<string> AllThemes { get; }
value = ThemeManager.AllThemes

Consigue una lista de todos los temas disponibles

ThemeProvider
public static IThemeProvider ThemeProvider { get; }
value = ThemeManager.ThemeProvider

Consigue IThemeProvider instance

Métodos

AddTheme
public static void AddTheme(string theme, ResourceDictionary dictionary)
ThemeManager.AddTheme(theme, dictionary)

Añadir nuevo tema y themeProvider en _theme y ThemeProviders respectivamente

theme
dictionary
GetTheme
public static string GetTheme(DependencyObject d)
result = ThemeManager.GetTheme(d)

Obtiene el valor del Tema Propiedad Adjunta.

d
El objeto de dependencia.

Devuelve: El tema actual.

GetThemeProvider
public static IThemeProvider GetThemeProvider(string theme)
result = ThemeManager.GetThemeProvider(theme)

Consigue una instancia IThemeProvider para el nombre

theme
el nombre

Devuelve: a IThemeProvider instance

RemoveTheme
public static void RemoveTheme(string theme)
ThemeManager.RemoveTheme(theme)

Agregar tema por cuerda Key de _theme y themeProvider apropiado de ThemeProviders

theme
SetTheme
public static void SetTheme(DependencyObject d, string value)
ThemeManager.SetTheme(d, value)

Establece el valor de la propiedad Theme Attached. Para una lista de todos los temas, consulte la propiedad AllThemes.

d
El objeto de dependencia.
value
El tema actual.

Eventos

ThemeApplied
public static event EventHandler<ThemeAppliedEventArgs> ThemeApplied
ThemeManager.ThemeApplied += handler

Criado cuando se ha aplicado un nuevo tema a la aplicación Ultrachart.

Campos

ThemeProperty
public static readonly DependencyProperty ThemeProperty
value = ThemeManager.ThemeProperty

Define la propiedad de dependencia de Tema.