C# 클래스 Starboard.View.ScoreboardDisplay

Interaction logic for ScoreboardDisplay.xaml
파일 보기 프로젝트 열기: ascendedguard/starboard-sc2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ScoreboardProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
Hide ( ) : void

Overrides the original Hide function to support fading in cases where transparency is used.

ResetPosition ( ) : void

Resets the position of the window to the default location, centered on the primary monitor with a 10px offset from top.

ScoreboardDisplay ( ) : System

Initializes a new instance of the ScoreboardDisplay class.

SetViewModel ( ScoreboardControlViewModel vm ) : void

Sets the viewmodel for the window to another instance of ScoreboardControlViewModel

Show ( ) : void

Overrides the original Show function to support a fade-in effect in cases where transparency is used.

보호된 메소드들

메소드 설명
OnKeyDown ( KeyEventArgs e ) : void

Overrides the OnKeyDown event to handled hotkeys for this window.

OnMouseLeftButtonDown ( MouseButtonEventArgs e ) : void

Allows the window to be dragged if IsWindowMovable has been set.

비공개 메소드들

메소드 설명
ApplyHotkey ( Key key, Starboard.Model.Player player ) : bool

Applies the hotkey for the attached key to the attached player.

CreatePlayerChangeField ( string binding ) : void

Creates a text field for typing the player name directly into the scoreboard. Clears the player name upon the hotkey press.

WindowLoaded ( object sender, RoutedEventArgs e ) : void

Resets the position of the window after it has completed loading.

메소드 상세

Hide() 공개 메소드

Overrides the original Hide function to support fading in cases where transparency is used.
public Hide ( ) : void
리턴 void

OnKeyDown() 보호된 메소드

Overrides the OnKeyDown event to handled hotkeys for this window.
protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs /// The event arguments. ///
리턴 void

OnMouseLeftButtonDown() 보호된 메소드

Allows the window to be dragged if IsWindowMovable has been set.
protected OnMouseLeftButtonDown ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs /// The event arguments. ///
리턴 void

ResetPosition() 공개 메소드

Resets the position of the window to the default location, centered on the primary monitor with a 10px offset from top.
public ResetPosition ( ) : void
리턴 void

ScoreboardDisplay() 공개 메소드

Initializes a new instance of the ScoreboardDisplay class.
public ScoreboardDisplay ( ) : System
리턴 System

SetViewModel() 공개 메소드

Sets the viewmodel for the window to another instance of ScoreboardControlViewModel
public SetViewModel ( ScoreboardControlViewModel vm ) : void
vm Starboard.ViewModel.ScoreboardControlViewModel /// The viewModel to apply. ///
리턴 void

Show() 공개 메소드

Overrides the original Show function to support a fade-in effect in cases where transparency is used.
public Show ( ) : void
리턴 void

프로퍼티 상세

ScoreboardProperty 공개적으로 정적으로 프로퍼티

The scoreboard property.
public static DependencyProperty,System.Windows ScoreboardProperty
리턴 System.Windows.DependencyProperty