NewsPanel
StockSharp.Xaml.Windows.Maui
带有列表和故事预览的移动新闻面板.
继承自: ContentView
构造函数
属性
MaxCount
public int MaxCount { get; set; }
value = newsPanel.MaxCount
newsPanel.MaxCount = value
获取或设定项目的最大数量。
SubscriptionProvider
public ISubscriptionProvider SubscriptionProvider { get; set; }
value = newsPanel.SubscriptionProvider
newsPanel.SubscriptionProvider = value
获取或设置订阅提供者。
ViewModel
public NewsPanelViewModel ViewModel { get; }
value = newsPanel.ViewModel
Gets the ViewModel.
方法
UpdateNewsStory
public void UpdateNewsStory(string newsId, string story)
newsPanel.UpdateNewsStory(newsId, story)
最新新闻.
事件
SelectionChanged
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
newsPanel.SelectionChanged += handler
选择更改事件 。
字段
MaxCountProperty
public static readonly BindableProperty MaxCountProperty
value = NewsPanel.MaxCountProperty
Max 计算可受约束的财产.
SubscriptionProviderProperty
public static readonly BindableProperty SubscriptionProviderProperty
value = NewsPanel.SubscriptionProviderProperty
订阅提供者可约束财产。