PortfolioEditor
StockSharp.Xaml.Grids.Maui
对拥有自动完整功能的MAUI的组合编辑器控制.
继承自: ContentView
构造函数
PortfolioEditor
public PortfolioEditor()
portfolioEditor = PortfolioEditor()
Creates a new PortfolioEditor.
属性
IsReadOnly
public bool IsReadOnly { get; set; }
value = portfolioEditor.IsReadOnly
portfolioEditor.IsReadOnly = value
获取或设定编辑器是否只读 。
Placeholder
public string Placeholder { get; set; }
value = portfolioEditor.Placeholder
portfolioEditor.Placeholder = value
获取或设置占位符文本。
SelectedPortfolio
public Portfolio SelectedPortfolio { get; set; }
value = portfolioEditor.SelectedPortfolio
portfolioEditor.SelectedPortfolio = value
获取或设置所选组合 。
ViewModel
public PortfolioEditorViewModel ViewModel { get; }
value = portfolioEditor.ViewModel
Gets the ViewModel.
方法
AddPortfolio
public void AddPortfolio(Portfolio portfolio)
portfolioEditor.AddPortfolio(portfolio)
将组合添加到可用的列表中。
RemovePortfolio
public void RemovePortfolio(Portfolio portfolio)
portfolioEditor.RemovePortfolio(portfolio)
从可用的列表中删除一个组合。
SetPortfolios
public void SetPortfolios(IEnumerable<Portfolio> portfolios)
portfolioEditor.SetPortfolios(portfolios)
设置可自动完成的组合 。
事件
OpenPickerRequested
public event EventHandler OpenPickerRequested
portfolioEditor.OpenPickerRequested += handler
开取取取满者起.
PortfolioChanged
public event EventHandler<Portfolio> PortfolioChanged
portfolioEditor.PortfolioChanged += handler
选定组合改变时提高。
字段
IsReadOnlyProperty
public static readonly BindableProperty IsReadOnlyProperty
value = PortfolioEditor.IsReadOnlyProperty
只能读取可受约束的财产。
PlaceholderProperty
public static readonly BindableProperty PlaceholderProperty
value = PortfolioEditor.PlaceholderProperty
持地人可受保财产.
SelectedPortfolioProperty
public static readonly BindableProperty SelectedPortfolioProperty
value = PortfolioEditor.SelectedPortfolioProperty
选定的可担保证券。