C# 클래스 Edi.UWP.Helpers.UI

파일 보기 프로젝트 열기: EdiWang/UWP-Helpers

공개 메소드들

메소드 설명
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