PortfolioEditor

StockSharp.Xaml.Grids.Maui

Portfolio editor control for MAUI with autocomplete functionality.

Inherits: ContentView

Constructors

PortfolioEditor
public PortfolioEditor()
portfolioEditor = PortfolioEditor()

Creates a new PortfolioEditor.

Properties

IsReadOnly
public bool IsReadOnly { get; set; }
value = portfolioEditor.IsReadOnly
portfolioEditor.IsReadOnly = value

Gets or sets whether the editor is read-only.

Placeholder
public string Placeholder { get; set; }
value = portfolioEditor.Placeholder
portfolioEditor.Placeholder = value

Gets or sets the placeholder text.

SelectedPortfolio
public Portfolio SelectedPortfolio { get; set; }
value = portfolioEditor.SelectedPortfolio
portfolioEditor.SelectedPortfolio = value

Gets or sets the selected portfolio.

ViewModel
public PortfolioEditorViewModel ViewModel { get; }
value = portfolioEditor.ViewModel

Gets the ViewModel.

Methods

AddPortfolio
public void AddPortfolio(Portfolio portfolio)
portfolioEditor.AddPortfolio(portfolio)

Adds a portfolio to the available list.

ClearPortfolios
public void ClearPortfolios()
portfolioEditor.ClearPortfolios()

Clears all available portfolios.

RemovePortfolio
public void RemovePortfolio(Portfolio portfolio)
portfolioEditor.RemovePortfolio(portfolio)

Removes a portfolio from the available list.

SetPortfolios
public void SetPortfolios(IEnumerable<Portfolio> portfolios)
portfolioEditor.SetPortfolios(portfolios)

Sets the available portfolios for autocomplete.

Events

OpenPickerRequested
public event EventHandler OpenPickerRequested
portfolioEditor.OpenPickerRequested += handler

Raised when the full picker should be opened.

PortfolioChanged
public event EventHandler<Portfolio> PortfolioChanged
portfolioEditor.PortfolioChanged += handler

Raised when the selected portfolio changes.

Fields

IsReadOnlyProperty
public static readonly BindableProperty IsReadOnlyProperty
value = PortfolioEditor.IsReadOnlyProperty

Is read only bindable property.

PlaceholderProperty
public static readonly BindableProperty PlaceholderProperty
value = PortfolioEditor.PlaceholderProperty

Placeholder bindable property.

SelectedPortfolioProperty
public static readonly BindableProperty SelectedPortfolioProperty
value = PortfolioEditor.SelectedPortfolioProperty

Selected portfolio bindable property.