private void ShowWindowWithChart_Click(object sender, RoutedEventArgs e) { WindowWithChart window = new WindowWithChart(); host.Add(window); string title = "Chart " + nCharts++; 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(460, 60); }
private void ShowWindowWithChart_Click(object sender, RoutedEventArgs e) { WindowWithChart window = new WindowWithChart(); host.Add(window); string title = "Chart " + nCharts++; 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); }