NewsPanel

StockSharp.Xaml.Windows.Maui

News panel with list and story preview for mobile.

Inherits: ContentView

Constructors

NewsPanel
public NewsPanel()
newsPanel = NewsPanel()

Creates a new instance.

Properties

MaxCount
public int MaxCount { get; set; }
value = newsPanel.MaxCount
newsPanel.MaxCount = value

Gets or sets the maximum number of items.

SelectedNews
public NewsGridItem SelectedNews { get; }
value = newsPanel.SelectedNews

Gets the selected news item.

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

Gets or sets the subscription provider.

ViewModel
public NewsPanelViewModel ViewModel { get; }
value = newsPanel.ViewModel

Gets the ViewModel.

Methods

AddNews
public void AddNews(News news)
newsPanel.AddNews(news)

Adds a news item.

AddNews
public void AddNews(IEnumerable<News> news)
newsPanel.AddNews(news)

Adds multiple news items.

Clear
public void Clear()
newsPanel.Clear()

Clears all news.

UpdateNewsStory
public void UpdateNewsStory(string newsId, string story)
newsPanel.UpdateNewsStory(newsId, story)

Updates news story.

Events

SelectionChanged
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
newsPanel.SelectionChanged += handler

Selection changed event.

Fields

MaxCountProperty
public static readonly BindableProperty MaxCountProperty
value = NewsPanel.MaxCountProperty

Max count bindable property.

SubscriptionProviderProperty
public static readonly BindableProperty SubscriptionProviderProperty
value = NewsPanel.SubscriptionProviderProperty

Subscription provider bindable property.