C# Класс Edi.UWP.Helpers.UI

Показать файл Открыть проект

Открытые методы

Метод Описание
ApplyColorToTitleBar ( Color titleBackgroundColor, Color titleForegroundColor, Color titleInactiveBackgroundColor, Color titleInactiveForegroundColor ) : void

Set Color to App Title Bar

ApplyColorToTitleButton ( Color titleButtonBackgroundColor, Color titleButtonForegroundColor, Color titleButtonHoverBackgroundColor, Color titleButtonHoverForegroundColor, Color titleButtonPressedBackgroundColor, Color titleButtonPressedForegroundColor, Color titleButtonInactiveBackgroundColor, Color titleButtonInactiveForegroundColor ) : void

Set Color to App Title Bar Buttons (Maxium, Minus, Close)

GetAccentColor ( ) : Color
GetScreenHeight ( ) : int

Get current device screen height in pixel

GetScreenWidth ( ) : int
HideWindowsMobileStatusBar ( ) : System.Threading.Tasks.Task

Hide System Status Bar on Phone, make App full screen

SetWindowLaunchSize ( int height, int width ) : void

Set App Window Preferred Launch View Size

SetWindowsMobileStatusBarColor ( Color backgroundColor, Color foregroundColor ) : void

Apply a background color to Phone's system status bar

ShowToastNotification ( string assetsImageFileName, string text, NotificationAudioNames audioName ) : void

Pop up a toast notification, which will stay in Notification Center

Описание методов

ApplyColorToTitleBar() публичный статический Метод

Set Color to App Title Bar
public static ApplyColorToTitleBar ( Color titleBackgroundColor, Color titleForegroundColor, Color titleInactiveBackgroundColor, Color titleInactiveForegroundColor ) : void
titleBackgroundColor Color Background Color
titleForegroundColor Color Foreground Color
titleInactiveBackgroundColor Color Inactive Background Color
titleInactiveForegroundColor Color Inactive Foreground Color
Результат void

ApplyColorToTitleButton() публичный статический Метод

Set Color to App Title Bar Buttons (Maxium, Minus, Close)
public static ApplyColorToTitleButton ( Color titleButtonBackgroundColor, Color titleButtonForegroundColor, Color titleButtonHoverBackgroundColor, Color titleButtonHoverForegroundColor, Color titleButtonPressedBackgroundColor, Color titleButtonPressedForegroundColor, Color titleButtonInactiveBackgroundColor, Color titleButtonInactiveForegroundColor ) : void
titleButtonBackgroundColor Color
titleButtonForegroundColor Color
titleButtonHoverBackgroundColor Color
titleButtonHoverForegroundColor Color
titleButtonPressedBackgroundColor Color
titleButtonPressedForegroundColor Color
titleButtonInactiveBackgroundColor Color
titleButtonInactiveForegroundColor Color
Результат void

GetAccentColor() публичный статический Метод

public static GetAccentColor ( ) : Color
Результат Color

GetScreenHeight() публичный статический Метод

Get current device screen height in pixel
public static GetScreenHeight ( ) : int
Результат int

GetScreenWidth() публичный статический Метод

public static GetScreenWidth ( ) : int
Результат int

HideWindowsMobileStatusBar() публичный статический Метод

Hide System Status Bar on Phone, make App full screen
public static HideWindowsMobileStatusBar ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SetWindowLaunchSize() публичный статический Метод

Set App Window Preferred Launch View Size
public static SetWindowLaunchSize ( int height, int width ) : void
height int Window Height
width int Window Width
Результат void

SetWindowsMobileStatusBarColor() публичный статический Метод

Apply a background color to Phone's system status bar
public static SetWindowsMobileStatusBarColor ( Color backgroundColor, Color foregroundColor ) : void
backgroundColor Color Background Color
foregroundColor Color Foreground Color
Результат void

ShowToastNotification() публичный статический Метод

Pop up a toast notification, which will stay in Notification Center
public static ShowToastNotification ( string assetsImageFileName, string text, NotificationAudioNames audioName ) : void
assetsImageFileName string The image filename under Assets folder
text string Notification text
audioName NotificationAudioNames Notification sound
Результат void