Пример #1
0
        private void attribute_Drop(object sender, DragEventArgs e)
        {
            SubAttributeWindow sAW = new SubAttributeWindow();

            sAW.Owner = this;
            sAW.Show();
        }
Пример #2
0
        private void attribute_Click(object sender, RoutedEventArgs e)
        {
            SubAttributeWindow sAW = new SubAttributeWindow();

            sAW.Owner = this;
            sAW.Left  = sAW.Owner.Left + sAW.Owner.Width - sAW.Width;
            sAW.Top   = sAW.Owner.Top + sAW.Owner.Height - sAW.Height;

            BitmapImage bitmapImage = new BitmapImage(new Uri(ImageSourcePath));

            sAW.documentProperty_Width.Text  = bitmapImage.PixelWidth.ToString();
            sAW.documentProperty_Height.Text = bitmapImage.PixelHeight.ToString();



            sAW.Show();
        }