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