コード例 #1
0
ファイル: CursorLines.cs プロジェクト: Octavio/moro.fkalc
		public CursorLines (MathRegion region)
		{
			Region = region;
		}	
コード例 #2
0
		public InsertCharacterProcessor (MathRegion region)
		{
			Region = region;
			Region.KeyPressEvent += HandleKeyPressEvent;
		}
コード例 #3
0
ファイル: DocumentView.cs プロジェクト: Octavio/moro.fkalc
		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;
		}