public LinkedManager(string themename) { SfSkinManager.SetTheme(this, new Theme() { ThemeName = themename }); InitializeComponent(); this.Closed += LinkedManager_Closed; this.Loaded += (sender, args) => { if (count == 0) { count++; windowlist.Add(this); this.Left = 50; this.Top = 100; LinkedManager linkedManager = new LinkedManager(themename); linkedManager.Title = "Docking Manager " + count; linkedManager.Owner = this; linkedManager.Show(); windowlist.Add(linkedManager); linkedManager.Left = 700; linkedManager.Top = 100; this.clientdockingManager.AddToTargetManagersList(linkedManager.clientdockingManager); linkedManager.clientdockingManager.AddToTargetManagersList(this.clientdockingManager); } }; }
/// <summary> /// Handles the Click event of the NewDockingWindow control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void NewDockingWindow_Click(object sender, RoutedEventArgs e) { count++; LinkedManager linkedManager = new LinkedManager(SfSkinManager.GetTheme(this).ThemeName); linkedManager.Title = "Docking Manager " + count; linkedManager.Owner = this; linkedManager.Show(); windowlist.Add(linkedManager); linkedManager.Left = 400; linkedManager.Top = 200; }