コード例 #1
0
        /// <summary>
        /// Sets the binding for strokeand stroke thickness.
        /// </summary>
        /// <param name="part">The part.</param>
        protected override void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
        {
            Binding fillBinding = new Binding {
                Path = new PropertyPath("Fill"), Source = this
            };

            part.SetBinding(FillPartBase.FillProperty, fillBinding);
            base.SetBindingForStrokeandStrokeThickness(part);
        }
コード例 #2
0
ファイル: SeriesBase.cs プロジェクト: KaptenJon/EcoProIT
        /// <summary>
        /// Sets the binding for strokeand stroke thickness.
        /// </summary>
        /// <param name="part">The part.</param>
        protected virtual void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
        {
            Binding strokeBinding = new Binding {
                Path = new PropertyPath("Stroke"), Source = this
            };
            Binding strokeThicknessBinding = new Binding {
                Path = new PropertyPath("StrokeThickness")
            };

            strokeThicknessBinding.Source = this;
            part.SetBinding(SeriesPartBase.StrokeProperty, strokeBinding);
            part.SetBinding(SeriesPartBase.StrokeThicknessProperty, strokeThicknessBinding);
        }
コード例 #3
0
        /// <summary>
        /// Sets the binding for strokeand stroke thickness.
        /// </summary>
        /// <param name="part">The part.</param>
        protected override void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
        {
            BarErrorPart barErrorPart  = part as BarErrorPart;
            Binding      strokeBinding = new Binding {
                Source = this
            };

            if (barErrorPart.IsBearfill)
            {
                strokeBinding.Path = new PropertyPath("BearFill");
            }
            else
            {
                strokeBinding.Path = new PropertyPath("BullFill");
            }
            Binding strokeThicknessBinding = new Binding {
                Path = new PropertyPath("StrokeThickness"), Source = this
            };

            part.SetBinding(SeriesPartBase.StrokeProperty, strokeBinding);
            part.SetBinding(SeriesPartBase.StrokeThicknessProperty, strokeThicknessBinding);
        }