Interaction logic for WindowWithIcon.xaml
Наследование: SilverFlow.Controls.FloatingWindow
Пример #1
0
        private void ShowWindowWithIcon_Click(object sender, RoutedEventArgs e)
        {
            WindowWithIcon window = new WindowWithIcon();

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

            host.Add(window);
            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(200, 100);
        }