Inheritance: SilverFlow.Controls.FloatingWindow
コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: Zoomicon/ZUI
        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);
        }