C# 클래스 Baconit.ContentPanels.Panels.YoutubeContentPanel

상속: Windows.UI.Xaml.Controls.UserControl, IContentPanel
파일 보기 프로젝트 열기: QuinnDamerell/Baconit 1 사용 예제들

공개 메소드들

메소드 설명
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