public MainPage() { InitializeComponent(); FloatingWindow window = new FloatingWindow(); //can also create floating windows directly in the XAML (see MainPage.xaml) window.Title = "Centered Window"; window.IconText = "Centered Window"; host.Add(window); window.Show(); }
public MainPage() { InitializeComponent(); FloatingWindow window = new FloatingWindow(); window.Title = "Centered Window"; window.IconText = "Centered Window"; host.Add(window); window.Show(); }
public MainWindow() { InitializeComponent(); this.Width = System.Windows.SystemParameters.WorkArea.Width - 200; this.Height = System.Windows.SystemParameters.WorkArea.Height - 200; FloatingWindow window = new FloatingWindow(); window.Title = "Centered Window"; window.IconText = "Centered Window"; host.Add(window); window.Show(); }
private void ShowNewWindow_Click(object sender, RoutedEventArgs e) { FloatingWindow window = new FloatingWindow(); host.Add(window); string title = "Window " + nWindows++; window.Title = title; window.IconText = title; window.Activated += (s, a) => { Debug.WriteLine("Activated: {0}", window.IconText); }; window.Deactivated += (s, a) => { Debug.WriteLine("Deactivated: {0}", window.IconText); }; window.Show(startPoint); startPoint = startPoint.Add(20, 20); }