상속: SilverFlow.Controls.FloatingWindow
예제 #1
0
        private void ShowWindowWithIcon_Click(object sender, RoutedEventArgs e)
        {
            WindowWithIcon window = new WindowWithIcon();

            host.Add(window);

            window.Activated += (s, a) =>
            {
                Debug.WriteLine("Activated: {0}", window.IconText);
            };

            window.Deactivated += (s, a) =>
            {
                Debug.WriteLine("Deactivated: {0}", window.IconText);
            };

            window.Show(200, 100);
        }
예제 #2
0
        private void ShowWindowWithIcon_Click(object sender, RoutedEventArgs e)
        {
            WindowWithIcon window = new WindowWithIcon();
              host.Add(window);

              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);
        }