C# Class Baconit.ContentPanels.Panels.YoutubeContentPanel

Inheritance: Windows.UI.Xaml.Controls.UserControl, IContentPanel
Afficher le fichier Open project: QuinnDamerell/Baconit Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

CanHandlePost() static public méthode

Called by the host when it queries if we can handle a post.
static public CanHandlePost ( ContentPanelSource source ) : bool
source ContentPanelSource
Résultat bool

OnDestroyContent() public méthode

Fired when we should destroy our content.
public OnDestroyContent ( ) : void
Résultat void

OnHostAdded() public méthode

Fired when a new host has been added.
public OnHostAdded ( ) : void
Résultat void

OnPrepareContent() public méthode

Fired when we should load the content.
public OnPrepareContent ( ) : void
Résultat void

OnVisibilityChanged() public méthode

Fired when this post becomes visible
public OnVisibilityChanged ( bool isVisible ) : void
isVisible bool
Résultat void

YoutubeContentPanel() public méthode

public YoutubeContentPanel ( IContentPanelBaseInternal panelBase ) : Baconit.Interfaces
panelBase IContentPanelBaseInternal
Résultat Baconit.Interfaces