PortfolioGrid

StockSharp.Xaml

The table showing portfolios and positions.

Inherits: BaseGridControl

Implements: IComponentConnector

Constructors

PortfolioGrid
public PortfolioGrid()
portfolioGrid = PortfolioGrid()

Initializes a new instance of the PortfolioGrid.

Properties

HideZeroBalances
public bool HideZeroBalances { get; set; }
value = portfolioGrid.HideZeroBalances
portfolioGrid.HideZeroBalances = value

Hide zero balances.

Positions
public IListEx<Position> Positions { get; }
value = portfolioGrid.Positions

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

SelectedPosition
public Position SelectedPosition { get; }
value = portfolioGrid.SelectedPosition

The selected position.

SelectedPositions
public IEnumerable<Position> SelectedPositions { get; }
value = portfolioGrid.SelectedPositions

Selected trades.

Source
public IEnumerable<Position> Source { get; set; }
value = portfolioGrid.Source
portfolioGrid.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 Positions directly; do not use both at once.

Methods

InitializeComponent
public void InitializeComponent()
portfolioGrid.InitializeComponent()

InitializeComponent

Load
public override void Load(SettingsStorage storage)
portfolioGrid.Load(storage)

Load settings.

storage
Settings storage.
Save
public override void Save(SettingsStorage storage)
portfolioGrid.Save(storage)

Save settings.

storage
Settings storage.

Fields

SourceProperty
public static readonly DependencyProperty SourceProperty
value = PortfolioGrid.SourceProperty

Source dependency property.