Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Media3D;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace lec_vec
- {
- /// <summary>
- /// Логика взаимодействия для MainWindow.xaml
- /// </summary>
- public partial class MainWindow : Window
- {
- public MainWindow()
- {
- InitializeComponent();
- AddEllipse();
- }
- private void AddEllipse()
- {
- Ellipse ell = new Ellipse();
- ell.Stroke = Brushes.Black;
- ell.Fill = Brushes.DarkBlue;
- ell.Height = 300;
- ell.Width = 300;
- ell.Clip = new RectangleGeometry(new Rect(new Point(0, 0), new Size(100, 300)), 0,0);
- canvas1.Children.Add(ell);
- }
- private void textBox_TextChanged(object sender, TextChangedEventArgs e)
- {
- }
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement