NewsMessagePanel

StockSharp.Xaml

The visual panel with the news.

Inherits: UserControl

Implements: IAsyncPersistable, IComponentConnector

Constructors

NewsMessagePanel
public NewsMessagePanel()
newsMessagePanel = NewsMessagePanel()

Initializes a new instance of the NewsMessagePanel.

Properties

ItemsSource
public IEnumerable<NewsMessage> ItemsSource { get; set; }
value = newsMessagePanel.ItemsSource
newsMessagePanel.ItemsSource = value

Items source for binding.

SubscriptionProvider
public ISubscriptionProvider SubscriptionProvider { get; set; }
value = newsMessagePanel.SubscriptionProvider
newsMessagePanel.SubscriptionProvider = value

The provider of subscriptions.

Methods

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

Returns: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = newsMessagePanel.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

Fields

ItemsSourceProperty
public static readonly DependencyProperty ItemsSourceProperty
value = NewsMessagePanel.ItemsSourceProperty

DependencyProperty for ItemsSource.

NewsGrid
public NewsMessageGrid NewsGrid
value = newsMessagePanel.NewsGrid

NewsGrid Name Field