아래와 같이 네이트 알림창 처럼 프로그램 좌측하단 작업표시줄 위에 실행하기 위한 위치 값을 가지고 오는 부분입니다.
위치설청하기
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"
'WPF' 카테고리의 다른 글
| [Serializable ,INotifyPropertyChanged ] 오류해결 (0) | 2012.10.11 |
|---|---|
| WPF 애니메이션으로 이동한 컨트롤의 실제 위치를 알고 싶을떄 (0) | 2012.08.22 |
| [ BrushConverter / RGB ] RGB 컬러값 WPF에 맞게 뽑아내는 가장 간단한 방법 (0) | 2012.06.22 |
| Extended WPF Toolkit (0) | 2011.10.05 |
| Bing Maps WPF Control (Beta) (0) | 2011.09.30 |
| WPF BasedOn 전역스타일 (0) | 2011.07.28 |
| [DataTemplate / UserControl] 데이터 템플릿안에 유저컨트롤 값 바인딩하기 (0) | 2011.04.14 |
| [Binding] 바인딩으로 금액표시 / 콤마표시 만들기 (0) | 2011.03.22 |
| [ MultiBinding / IMultiValueConverter ] ConverterParameter 값넘기기 (0) | 2011.03.15 |
| WPF 다국어 지원 (2) | 2011.03.02 |