Ejemplo n.º 1
0
		public void SetRoutedProperty(IRoutedSetterProperty property)
		{
			switch (property.Name)
			{
				case "StrokeWidth":
					{
						var prop = (RoutedSetterProperty<double>)property;
						this._framePen.Width = (float)prop.Value;
						EhSelfChanged(EventArgs.Empty);
					}
					break;
			}
		}
Ejemplo n.º 2
0
		public void SetRoutedProperty(IRoutedSetterProperty property)
		{
			_plotStyles.SetRoutedProperty(property);
		}
Ejemplo n.º 3
0
		public void SetRoutedProperty(IRoutedSetterProperty property)
		{
			switch (property.Name)
			{
				case "FontSize":
					{
						var prop = (RoutedSetterProperty<double>)property;
						this.Font = _font.WithSize(prop.Value);
						EhSelfChanged(EventArgs.Empty);
					}
					break;

				case "FontFamily":
					{
						var prop = (RoutedSetterProperty<string>)property;
						try
						{
							var newFont = _font.WithFamily(prop.Value);
							_font = newFont;
							_isStructureInSync = false;
							EhSelfChanged(EventArgs.Empty);
						}
						catch (Exception)
						{
						}
					}
					break;
			}
		}
Ejemplo n.º 4
0
		public void SetRoutedProperty(IRoutedSetterProperty property)
		{
			switch (property.Name)
			{
				case "StrokeWidth":
					{
						var prop = (RoutedSetterProperty<double>)property;
						_axisPen = _axisPen.WithUniformThickness(prop.Value);
						_majorTickPen = _majorTickPen.WithUniformThickness(prop.Value);
						_minorTickPen = _minorTickPen.WithUniformThickness(prop.Value);
						EhSelfChanged(EventArgs.Empty);
					}
					break;
			}
		}