Ejemplo n.º 1
0
        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
            });
        }
Ejemplo n.º 2
0
        /// <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
            });
        }
Ejemplo n.º 3
0
        /// <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
            });
        }
Ejemplo n.º 4
0
        /// <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
            });
        }