Inheritance: SilverFlow.Controls.FloatingWindow
Esempio n. 1
0
        private void ShowModalWindow_Click(object sender, RoutedEventArgs e)
        {
            MyModalWindow window = new MyModalWindow();
            host.Add(window);

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

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

            window.ShowModal();
            window.Closed += (s, a) =>
                {
                    bool? result = window.DialogResult;
                };
        }
Esempio n. 2
0
        private void ShowModalWindow_Click(object sender, RoutedEventArgs e)
        {
            MyModalWindow window = new MyModalWindow();

            host.Add(window);

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

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

            window.ShowModal();
            window.Closed += (s, a) =>
            {
                bool?result = window.DialogResult;
            };
        }