아래와 같이 네이트 알림창 처럼 프로그램 좌측하단 작업표시줄 위에 실행하기 위한 위치 값을 가지고 오는 부분입니다.

image

 

위치설청하기

    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;
        }
    }

 

창 설정을 통해 좀 더 이쁘게

image

 

 

image

 

완전히 테두리 없애기

AllowsTransparency="True"

image

 

image

+ Recent posts