NewsPanel
StockSharp.Xaml.Windows.Maui
Panel de noticias con lista y vista previa de historia para móvil.
Hereda de: ContentView
Constructores
Propiedades
MaxCount
public int MaxCount { get; set; }
value = newsPanel.MaxCount
newsPanel.MaxCount = value
Obtiene o establece el número máximo de artículos.
SelectedNews
public NewsGridItem SelectedNews { get; }
value = newsPanel.SelectedNews
Obtiene el artículo de noticias seleccionado.
SubscriptionProvider
public ISubscriptionProvider SubscriptionProvider { get; set; }
value = newsPanel.SubscriptionProvider
newsPanel.SubscriptionProvider = value
Obtiene o establece el proveedor de suscripción.
ViewModel
public NewsPanelViewModel ViewModel { get; }
value = newsPanel.ViewModel
Consigue el ViewModel@.
Métodos
AddNews
public void AddNews(IEnumerable<News> news)
newsPanel.AddNews(news)
Añade múltiples noticias.
UpdateNewsStory
public void UpdateNewsStory(string newsId, string story)
newsPanel.UpdateNewsStory(newsId, story)
Actualiza la historia de noticias.
Eventos
SelectionChanged
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
newsPanel.SelectionChanged += handler
La selección cambió el evento.
Campos
MaxCountProperty
public static readonly BindableProperty MaxCountProperty
value = NewsPanel.MaxCountProperty
Max cuenta propiedades bindables.
SubscriptionProviderProperty
public static readonly BindableProperty SubscriptionProviderProperty
value = NewsPanel.SubscriptionProviderProperty
Suscripción proveedor de bienes bindables.