C# Class SumoNinjaMonkey.Framework.Services.NotificationService

显示文件 Open project: liquidboy/X

Public Methods

Method Description
Init ( Grid control, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Right ) : void
Show ( string message, string title, Brush foregroundTextBrush, Brush countdownBackgroundBrush, double timeToLive, bool autoHide = false, double width = 300, double height = 180, string metroIcon = "", string imageIcon = "", double scaleIcon = 1 ) : void
Show ( string message, string title, bool autoHide = false, double width = 300, double height = 180, double timeToLive = 5 ) : void

Private Methods

Method Description
view_OnClosing ( object sender, EventArgs e ) : void

Method Details

Init() public static method

public static Init ( Grid control, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Right ) : void
control Windows.UI.Xaml.Controls.Grid
horizontalAlignment HorizontalAlignment
return void

Show() public static method

public static Show ( string message, string title, Brush foregroundTextBrush, Brush countdownBackgroundBrush, double timeToLive, bool autoHide = false, double width = 300, double height = 180, string metroIcon = "", string imageIcon = "", double scaleIcon = 1 ) : void
message string
title string
foregroundTextBrush Windows.UI.Xaml.Media.Brush
countdownBackgroundBrush Windows.UI.Xaml.Media.Brush
timeToLive double
autoHide bool
width double
height double
metroIcon string
imageIcon string
scaleIcon double
return void

Show() public static method

public static Show ( string message, string title, bool autoHide = false, double width = 300, double height = 180, double timeToLive = 5 ) : void
message string
title string
autoHide bool
width double
height double
timeToLive double
return void