Example #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // Do your custom initialization code here

            MainWindow = new MainContainerWindow();
            MainWindow.ShowInTaskbar = false;
            MainWindow.Show();
        }
Example #2
0
        public MainContainerWindow()
        {
            InitializeComponent();
            this.Top    = 0;
            this.Left   = 0;
            this.Width  = SystemParameters.PrimaryScreenWidth;
            this.Height = SystemParameters.PrimaryScreenHeight;

            BezierDefineStartCoordinates();

            //Releasing Mouse.Capture
            Mouse.AddPreviewMouseUpOutsideCapturedElementHandler(this, BezierReleaseMouseCapture);
            Mouse.AddPreviewMouseUpHandler(this, BezierReleaseMouseCapture);

            MainContainerWindow.MainContainer = this;
        }