public CursorLines (MathRegion region) { Region = region; }
public InsertCharacterProcessor (MathRegion region) { Region = region; Region.KeyPressEvent += HandleKeyPressEvent; }
private UIElement Factory (object viewModel) { var region = new MathRegion (); region.DataContext = viewModel; BindingOperations.SetBinding ((viewModel as DependencyObject).GetProperty ("X"), canvas, region, "X"); BindingOperations.SetBinding ((viewModel as DependencyObject).GetProperty ("Y"), canvas, region, "Y"); Keyboard.Focus (region); return region; }