NewsGrid

StockSharp.Xaml

The table showing the news (News).

Inherits: BaseGridControl

Implements: IComponentConnector

Constructors

NewsGrid
public NewsGrid()
newsGrid = NewsGrid()

Initializes a new instance of the NewsGrid.

Properties

FirstSelectedNews
public News FirstSelectedNews { get; }
value = newsGrid.FirstSelectedNews

Selected news item.

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

The maximum number of news to display. The -1 value means an unlimited amount. The default value is 10000.

News
public IListEx<News> News { get; }
value = newsGrid.News

The list of news added to the table. High-performance mode: feed this directly.

SelectedNews
public IEnumerable<News> SelectedNews { get; }
value = newsGrid.SelectedNews

Selected news items.

Source
public IEnumerable<News> Source { get; set; }
value = newsGrid.Source
newsGrid.Source = value

External collection to display (MVVM mode); mirrored into the grid's internal thread-safe buffer so a plain view-model collection can be bound without losing the UI-thread marshalling. The high-performance alternative is to feed News directly; do not use both at once.

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

The provider of subscriptions.

Methods

InitializeComponent
public void InitializeComponent()
newsGrid.InitializeComponent()

InitializeComponent

Fields

OpenUrlCommand
public static readonly RoutedCommand OpenUrlCommand
value = NewsGrid.OpenUrlCommand

The command for the news link opening.

RequestStoryCommand
public static readonly RoutedCommand RequestStoryCommand
value = NewsGrid.RequestStoryCommand

The command for the news request.

SourceProperty
public static readonly DependencyProperty SourceProperty
value = NewsGrid.SourceProperty

Source dependency property.