C# Class Edi.UWP.Helpers.UI

Exibir arquivo Open project: EdiWang/UWP-Helpers

Public Methods

Method 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 method

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
return void

ApplyColorToTitleButton() public static method

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
return void

GetAccentColor() public static method

public static GetAccentColor ( ) : Color
return Color

GetScreenHeight() public static method

Get current device screen height in pixel
public static GetScreenHeight ( ) : int
return int

GetScreenWidth() public static method

public static GetScreenWidth ( ) : int
return int

HideWindowsMobileStatusBar() public static method

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

SetWindowLaunchSize() public static method

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

SetWindowsMobileStatusBarColor() public static method

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
return void

ShowToastNotification() public static method

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
return void