private application_panel_PreviewMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
sender | object | |
e | System.Windows.Input.MouseButtonEventArgs | |
return | void |
void application_panel_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
//debug things!
// if (e.RightButton == MouseButtonState.Pressed)
// {
// UIElement[] elements = new UIElement[window_manager.main_canvas.Children.Count];
// window_manager.main_canvas.Children.CopyTo(elements, 0);
// foreach (UIElement element in elements)
// {
// try
// {
// Shape shape = element as Shape;
// window_manager.main_canvas.Children.Remove(shape);
// }
// catch (Exception) { continue; }
// }
// }
}