public Axis() { TitleBlock = BindATextBlock(); SetValue(SeparatorProperty, new Separator()); SetValue(ShowLabelsProperty, true); SetValue(SectionsProperty, new SectionsCollection()); TitleBlock.SetBinding(TextBlock.TextProperty, new Binding { Path = new PropertyPath(TitleProperty), Source = this }); }
/// <summary> /// Initializes a new instance of Axis class /// </summary> public Axis() { TitleBlock = BindATextBlock(); this.SetIfNotSet(SeparatorProperty, new Separator()); this.SetIfNotSet(SectionsProperty, new SectionsCollection()); TitleBlock.SetBinding(TextBlock.TextProperty, new Binding { Path = new PropertyPath("Title"), Source = this }); }
/// <summary> /// Initializes a new instance of Axis class /// </summary> public Axis() { TitleBlock = BindATextBlock(); SetCurrentValue(SeparatorProperty, new Separator()); SetCurrentValue(ShowLabelsProperty, true); SetCurrentValue(SectionsProperty, new SectionsCollection()); SetCurrentValue(ForegroundProperty, new SolidColorBrush(Color.FromRgb(170, 170, 170))); TitleBlock.SetBinding(TextBlock.TextProperty, new Binding { Path = new PropertyPath(TitleProperty), Source = this }); }
/// <summary> /// Initializes a new instance of Axis class /// </summary> public Axis() { TitleBlock = BindATextBlock(); this.SetIfNotSet(SeparatorProperty, new Separator()); this.SetIfNotSet(ShowLabelsProperty, true); this.SetIfNotSet(SectionsProperty, new SectionsCollection()); this.SetIfNotSet(ForegroundProperty, new SolidColorBrush(Color.FromArgb(255, 170, 170, 170))); TitleBlock.SetBinding(TextBlock.TextProperty, new Binding { Path = new PropertyPath("Title"), Source = this }); }