C# Класс Baconit.ContentPanels.Panels.YoutubeContentPanel

Наследование: Windows.UI.Xaml.Controls.UserControl, IContentPanel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanHandlePost ( ContentPanelSource source ) : bool

Called by the host when it queries if we can handle a post.

OnDestroyContent ( ) : void

Fired when we should destroy our content.

OnHostAdded ( ) : void

Fired when a new host has been added.

OnPrepareContent ( ) : void

Fired when we should load the content.

OnVisibilityChanged ( bool isVisible ) : void

Fired when this post becomes visible

YoutubeContentPanel ( IContentPanelBaseInternal panelBase ) : Baconit.Interfaces

Приватные методы

Метод Описание
GetYouTubeVideoUrl ( ContentPanelSource source ) : Task

Tries to get a youtube link from a post. If it fails it returns null.

MediaElement_CurrentStateChanged ( object sender, RoutedEventArgs e ) : void

Fired when the media state changes

TryToGetYouTubeId ( ContentPanelSource source ) : string

Attempts to get a youtube id from a url.

Описание методов

CanHandlePost() статический публичный Метод

Called by the host when it queries if we can handle a post.
static public CanHandlePost ( ContentPanelSource source ) : bool
source ContentPanelSource
Результат bool

OnDestroyContent() публичный Метод

Fired when we should destroy our content.
public OnDestroyContent ( ) : void
Результат void

OnHostAdded() публичный Метод

Fired when a new host has been added.
public OnHostAdded ( ) : void
Результат void

OnPrepareContent() публичный Метод

Fired when we should load the content.
public OnPrepareContent ( ) : void
Результат void

OnVisibilityChanged() публичный Метод

Fired when this post becomes visible
public OnVisibilityChanged ( bool isVisible ) : void
isVisible bool
Результат void

YoutubeContentPanel() публичный Метод

public YoutubeContentPanel ( IContentPanelBaseInternal panelBase ) : Baconit.Interfaces
panelBase IContentPanelBaseInternal
Результат Baconit.Interfaces