WPF
[popup / alert ] 프로그램 좌측하단 작업표시줄 위에 실행하기
스티커
2011. 8. 5. 14:10
아래와 같이 네이트 알림창 처럼 프로그램 좌측하단 작업표시줄 위에 실행하기 위한 위치 값을 가지고 오는 부분입니다.
위치설청하기
public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); this.Loaded += new RoutedEventHandler(MainWindow_Loaded); } void MainWindow_Loaded(object sender, RoutedEventArgs e) { SetMsgPopupArea(); //this.Topmost = true; this.Focus(); } private void SetMsgPopupArea() { this.Left = SystemParameters.WorkArea.Width - this.Width - 10; this.Top = SystemParameters.WorkArea.Height - this.Height; } }
창 설정을 통해 좀 더 이쁘게
완전히 테두리 없애기
AllowsTransparency="True"