ウィンドウの配置に問題があります。ウィンドウは私のメインウィンドウではありません。タスクバーの上の作業領域の右下隅にウィンドウを配置したいと考えています。
私は次のコードを持っています:
public partial class NotificationWindow : Window
{
public NotificationWindow()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
Rect desktopWorkingArea = SystemParameters.WorkArea;
Left = desktopWorkingArea.Right - Width;
Top = desktopWorkingArea.Bottom - Height;
}
}
そして、そのコードの望ましくない結果:
通知ウィンドウをタスクバーの少し上に置きたいです。私のコードは機能するはずですが、機能しません。
アドバイスをありがとう。