NewsMessagePanel
StockSharp.Xaml
Визуальная панель с новостями.
Наследует: UserControl
Реализует: IAsyncPersistable, IComponentConnector
Конструкторы
NewsMessagePanel
public NewsMessagePanel()
newsMessagePanel = NewsMessagePanel()
Инициирует новый экземпляр документа NewsMessagePanel.
Свойства
ItemsSource
public IEnumerable<NewsMessage> ItemsSource { get; set; }
value = newsMessagePanel.ItemsSource
newsMessagePanel.ItemsSource = value
Источники для связывания.
SubscriptionProvider
public ISubscriptionProvider SubscriptionProvider { get; set; }
value = newsMessagePanel.SubscriptionProvider
newsMessagePanel.SubscriptionProvider = value
Поставщик подписок.
Методы
InitializeComponent
public void InitializeComponent()
newsMessagePanel.InitializeComponent()
InitializeComponent
LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = newsMessagePanel.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Возвращает: Task
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = newsMessagePanel.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Возвращает: Task
Поля
ItemsSourceProperty
public static readonly DependencyProperty ItemsSourceProperty
value = NewsMessagePanel.ItemsSourceProperty
DependencyProperty для ItemsSource.