示例#1
0
		public CursorLines (MathRegion region)
		{
			Region = region;
		}	
		public InsertCharacterProcessor (MathRegion region)
		{
			Region = region;
			Region.KeyPressEvent += HandleKeyPressEvent;
		}
示例#3
0
		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;
		}