C# Class Edi.UWP.Helpers.UI

Afficher le fichier Open project: EdiWang/UWP-Helpers

Méthodes publiques

Méthode Description
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

Method Details

ApplyColorToTitleBar() public static méthode

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
Résultat void

ApplyColorToTitleButton() public static méthode

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
Résultat void

GetAccentColor() public static méthode

public static GetAccentColor ( ) : Color
Résultat Color

GetScreenHeight() public static méthode

Get current device screen height in pixel
public static GetScreenHeight ( ) : int
Résultat int

GetScreenWidth() public static méthode

public static GetScreenWidth ( ) : int
Résultat int

HideWindowsMobileStatusBar() public static méthode

Hide System Status Bar on Phone, make App full screen
public static HideWindowsMobileStatusBar ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SetWindowLaunchSize() public static méthode

Set App Window Preferred Launch View Size
public static SetWindowLaunchSize ( int height, int width ) : void
height int Window Height
width int Window Width
Résultat void

SetWindowsMobileStatusBarColor() public static méthode

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
Résultat void

ShowToastNotification() public static méthode

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
Résultat void