コード例 #1
0
		private void point_PositionChanged(object sender, PositionChangedEventArgs e)
		{
			if (data == null) return;

			var verticalSectionDS = CreateVerticalSection(e.Position.X).AsYDataSource();
			verticalSectionChart.DataSource = new CompositeDataSource(dimensionDataSource, verticalSectionDS);

			var horizontalSectionDS = CreateHorizontalSection(e.Position.Y).AsYDataSource();
			horizontalSectionChart.DataSource = new CompositeDataSource(dimensionDataSource, horizontalSectionDS);
		}
コード例 #2
0
		protected virtual void OnMarkerPositionChanged(PositionChangedEventArgs e)
		{
		}
コード例 #3
0
		private void marker_PositionChanged(object sender, PositionChangedEventArgs e)
		{
			OnMarkerPositionChanged(e);
		}
コード例 #4
0
		void pt_PositionChanged(object sender, PositionChangedEventArgs e)
		{
			DraggablePoint pt = (DraggablePoint)sender;

			Ellipse ellipse = (Ellipse)pt.Tag;
			Rect bounds = RectExtensions.FromCenterSize(e.Position, xSize, ySize);

			//ViewportRectPanel.SetPoint1(ellipse, bounds.TopLeft);
			//ViewportRectPanel.SetPoint2(ellipse, bounds.BottomRight);
		}
コード例 #5
0
		protected override void OnMarkerPositionChanged(PositionChangedEventArgs e)
		{
			if (Palette != null)
			{
				SelectedColor = Palette.GetColor(e.Position.X);
				SelectedBrush = new SolidColorBrush(SelectedColor);
				SelectedValueChanged.Raise(this);
			}
		}
コード例 #6
0
		protected void OnPoint_PositionChanged(object sender, PositionChangedEventArgs e)
		{
			DraggablePoint source = (DraggablePoint)sender;
			int index = GetIndex(source);
			var point = source.Position;
			var point3D = outProject(point);
			outPattern.Points[index] = point3D;
		}
コード例 #7
0
		void thumb_PositionChanged(object sender, PositionChangedEventArgs e)
		{
			int index = GetIndex((DependencyObject)sender);
			UpdatePaletteView(index);
		}