C# Class withSIX.Core.Presentation.Wpf.TaskBarLocationProvider

ファイルを表示 Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
CalculateWindowPositionByTaskbar ( Window window, double windowWidth, double windowHeight, double &left, double &top, bool include = false ) : void

Calculate wpf window position for place it near to taskbar area

Private Methods

Method Description
FindScreenWithTaskBar ( Rectangle taskBarCoordinates ) : Screen
GetTaskBarCoordinates ( Rect rc ) : Rectangle
GetTaskBarLocation ( ) : AppBarData
SHAppBarMessage ( int msg, AppBarData &data ) : IntPtr

Method Details

CalculateWindowPositionByTaskbar() public static method

Calculate wpf window position for place it near to taskbar area
public static CalculateWindowPositionByTaskbar ( Window window, double windowWidth, double windowHeight, double &left, double &top, bool include = false ) : void
window System.Windows.Window
windowWidth double target window height
windowHeight double target window width
left double Result left coordinate
top double Result top coordinate
include bool
return void