示例#1
0
        private void Properties(object sender, RoutedEventArgs e)
        {
            DialogWindowPropertiesDisplay WindowProperties = new DialogWindowPropertiesDisplay(this);

            WindowProperties.Owner = Application.Current.MainWindow;
            WindowProperties.ShowDialog();

            e.Handled = true;
        }
示例#2
0
        protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
        {
            base.OnMouseDoubleClick(e);

            if (IsSelected)
            {
                DialogWindowPropertiesDisplay WindowProperties = new DialogWindowPropertiesDisplay(this);
                WindowProperties.Owner = Application.Current.MainWindow;
                WindowProperties.ShowDialog();
            }

            e.Handled = true;
        }