예제 #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
        /// <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);
        }
예제 #4
0
 protected virtual void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
 {
     part.Stroke          = this.Stroke;
     part.StrokeThickness = this.StrokeThickness;
 }
예제 #5
0
 /// <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);
 }
예제 #6
0
 protected virtual void SetBindingForStrokeandStrokeThickness(SeriesPartBase part)
 {
     part.Stroke=this.Stroke;
     part.StrokeThickness=this.StrokeThickness;
 }
예제 #7
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);
 }
예제 #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);
 }