public ActivityWindow(ActivityBar bar)
 {
     InitializeComponent();
     Topmost = true;
     ShowInTaskbar = false;
     WindowStyle = WindowStyle.None;
     ResizeMode = ResizeMode.CanResize;
     MinHeight = MaxHeight = Height;
     MinWidth = MaxWidth = Width;
     taskbar = bar;
 }
        public StartMenu(ActivityBar tBar)
        {
            InitializeComponent();

            ShowInTaskbar = false;

            SourceInitialized += StartMenu_SourceInitialized;
            taskbar = tBar;

            MinHeight = MaxHeight = Height;
            MinWidth = MaxWidth = Width;

            Top = taskbar.Height;
            Left = 4;
        }