Пример #1
0
        private void Show_Property(object sender, MouseButtonEventArgs e)
        {
            PropertyModal propertyModal = new PropertyModal();

            propertyModal.Top  = (System.Windows.SystemParameters.PrimaryScreenHeight - propertyModal.Height) / 2;
            propertyModal.Left = (System.Windows.SystemParameters.PrimaryScreenWidth - propertyModal.Width) / 2;
            Nullable <bool> dialogResult = propertyModal.ShowDialog();
        }
Пример #2
0
        private void Pin_Click(object sender, RoutedEventArgs e)
        {
            PropertyModal propertyModal = new PropertyModal();

            propertyModal.Top     = (System.Windows.SystemParameters.PrimaryScreenHeight - propertyModal.Height) / 2;
            propertyModal.Left    = (System.Windows.SystemParameters.PrimaryScreenWidth - propertyModal.Width) / 2;
            propertyModal.Topmost = true;
            Nullable <bool> dialogResult = propertyModal.ShowDialog();

            e.Handled = true;
        }