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

C# 设置任务通知程序的启动位置,c#,wpf,C#,Wpf,如何设置任务栏通知程序的启动位置。因为它在某些系统上正常工作,但在某些系统上,它会出现在任务栏下方或消失 代码: <tn:TaskbarNotifier x:Class="LeadAlert.Main" xmlns:tn="clr-namespace:WPFTaskbarNotifier;assembly=WPFTaskbarNotifier" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

如何设置任务栏通知程序的启动位置。因为它在某些系统上正常工作,但在某些系统上,它会出现在任务栏下方或消失

代码:

<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" >


您需要发布您当前的定位代码/xaml添加了xaml的代码。