C# Class Baconit.ContentPanels.Panels.YoutubeContentPanel

Inheritance: Windows.UI.Xaml.Controls.UserControl, IContentPanel
Mostrar archivo Open project: QuinnDamerell/Baconit Class Usage Examples

Public Methods

Method 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

Method 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 method

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

OnDestroyContent() public method

Fired when we should destroy our content.
public OnDestroyContent ( ) : void
return void

OnHostAdded() public method

Fired when a new host has been added.
public OnHostAdded ( ) : void
return void

OnPrepareContent() public method

Fired when we should load the content.
public OnPrepareContent ( ) : void
return void

OnVisibilityChanged() public method

Fired when this post becomes visible
public OnVisibilityChanged ( bool isVisible ) : void
isVisible bool
return void

YoutubeContentPanel() public method

public YoutubeContentPanel ( IContentPanelBaseInternal panelBase ) : Baconit.Interfaces
panelBase IContentPanelBaseInternal
return Baconit.Interfaces