C# Класс Starboard.View.ScoreboardDisplay

Interaction logic for ScoreboardDisplay.xaml
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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