Mega Code Archive
Changing graphical elements
//File:Window.xaml.cs
using System.Windows;
using System.Windows.Shapes;
namespace ChangeItem
{
public partial class MainWindow : Window
{
public MainWindow(): base()
{
InitializeComponent();
mainCanvas.MouseLeftButtonDown += OnClick;
}
private void OnClick(object sender, RoutedEventArgs e)
{
Ellipse r = e.Source as Ellipse;
if (r != null)
{
r.Width += 10;
}
}
}
}