设置任务通知程序的启动位置

时间:2014-08-06 10:40:44

标签: c# wpf

如何设置任务栏通知程序启动位置。因为它在某些系统上运行正常,但在某些系统上,它会低于任务栏或消失。ScreenShot for same.

代码:

<tn:TaskbarNotifier x:Class="LeadAlert.Main"
    xmlns:tn="clr-namespace:WPFTaskbarNotifier;assembly=WPFTaskbarNotifier"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Lead Alert" Height="240" Width="370" WindowStyle="None" Topmost="True" ResizeMode="NoResize" Background="Transparent" 
    AllowsTransparency="True" ShowInTaskbar="False" MouseMove="WinMain_MouseMove" 
    x:Name="WinMain" Icon="/LeadAlert;component/LeadAlert.ico" Closed="WinMain_Closed" WindowStartupLocation="CenterScreen" >

0 个答案:

没有答案