Inheritance: SilverFlow.Controls.FloatingWindow
        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);
        }
Example #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);
        }