/// <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);
        }
        /// <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);
        }
        /// <summary>
        /// Sets the binding for strokeand stroke thickness.
        /// </summary>
        /// <param name="part">The part.</param>
        protected override void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
        {
            HiLoOpenClosePart hiLoOpenClosePart = part as HiLoOpenClosePart;
            Binding           strokeBinding     = new Binding {
                Source = this
            };

            if (hiLoOpenClosePart.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);
        }
 protected virtual void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
 {
     part.Stroke          = this.Stroke;
     part.StrokeThickness = this.StrokeThickness;
 }
 /// <summary>
 /// Sets the binding for strokeand stroke thickness.
 /// </summary>
 /// <param name="part">The part.</param>
 protected override void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
 {
     HiLoOpenClosePart hiLoOpenClosePart = part as HiLoOpenClosePart;
     Binding strokeBinding = new Binding {Source = this};
     if (hiLoOpenClosePart.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);
 }
Exemple #6
0
 protected virtual void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
 {
     part.Stroke=this.Stroke;
     part.StrokeThickness=this.StrokeThickness;
 }
 /// <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);
 }
Exemple #8
0
 /// <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);
 }