WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HalfCircleBorder

    Show / Hide Table of Contents

    Class HalfCircleBorder

    Represents the half circle border of the circular gauge control.

    Inheritance
    System.Object
    HalfCircleBorder
    Namespace: Syncfusion.Windows.Gauge
    Assembly: Syncfusion.Gauge.WPF.dll
    Syntax
    public class HalfCircleBorder : Decorator
    Remarks

    The GaugeFrameType should be set to HalfCircle inorder to display a half circle shape CircularGauge

    Examples
    
    
    
     
    
    
    
    
    using System;
    using System.Windows;
    using System.Windows.Controls;
    using Syncfusion.Windows.Shared;
    using Syncfusion.Windows.Gauge;

    namespace HalfCircleSample { public partial class Window1 : Window { private CircularScale m_scale; private CircularGauge m_gauge; public Window1() { InitializeComponent();

    m_scale = new CircularScale(); m_gauge = new CircularGauge(); m_scale.Radius = 116; this.m_gauge.Scales.Add(m_scale); m_gauge.FrameType = GaugeFrameType.HalfCircle; this.Content = m_gauge; } } }

    Constructors

    HalfCircleBorder()

    Declaration
    public HalfCircleBorder()

    Fields

    BackgroundBrushProperty

    Identifies the BackgroundBrush dependency property.

    Declaration
    public static readonly DependencyProperty BackgroundBrushProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    BorderBrushProperty

    Identifies the BorderBrush dependency property.

    Declaration
    public static readonly DependencyProperty BorderBrushProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    BorderWidthProperty

    Identifies the BorderWidth dependency property.

    Declaration
    public static readonly DependencyProperty BorderWidthProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    CircleSweepDirectionProperty

    Identifies the CircleSweepDirection dependency property.

    Declaration
    public static readonly DependencyProperty CircleSweepDirectionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    FrameTypeProperty

    Using a DependencyProperty as the backing store for FrameType. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty FrameTypeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    InnerCircleRadiusProperty

    Identifies the InnerCircleRadius dependency property.

    Declaration
    public static readonly DependencyProperty InnerCircleRadiusProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    InnerCircleSweepDirectionProperty

    Identifies the InnerCircleSweepDirection dependency property.

    Declaration
    public static readonly DependencyProperty InnerCircleSweepDirectionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    BackgroundBrush

    Gets or sets the background brush of the element. This is a dependency property.

    Declaration
    public Brush BackgroundBrush { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush

    BorderBrush

    Gets or sets the border brush of the element. This is a dependency property.

    Declaration
    public Brush BorderBrush { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush

    See Also
    BackgroundBrush

    BorderWidth

    Gets or sets the width of the border. This is a dependency property.

    Declaration
    public double BorderWidth { get; set; }
    Property Value
    Type Description
    System.Double

    Type: System.Double Default value is 0.

    CircleSweepDirection

    Gets or sets half circle's sweep direction

    Declaration
    public SweepDirection CircleSweepDirection { get; set; }
    Property Value
    Type Description
    System.Windows.Media.SweepDirection

    FrameType

    Gets or sets Type of the Frame.

    Declaration
    public GaugeFrameType FrameType { get; set; }
    Property Value
    Type Description
    GaugeFrameType

    GaugeFrameType

    InnerCircleRadius

    Gets or sets half circle's inner circle radius

    Declaration
    public double InnerCircleRadius { get; set; }
    Property Value
    Type Description
    System.Double

    InnerCircleSweepDirection

    Gets or sets inner circle's sweep direction

    Declaration
    public SweepDirection InnerCircleSweepDirection { get; set; }
    Property Value
    Type Description
    System.Windows.Media.SweepDirection

    Methods

    OnBorderWidthChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises BorderWidthChanged event.

    Declaration
    protected virtual void OnBorderWidthChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property change details, such as old value and new value.

    OnRender(DrawingContext)

    Participates in rendering operations that are directed by the layout system.

    Declaration
    protected override void OnRender(DrawingContext dc)
    Parameters
    Type Name Description
    System.Windows.Media.DrawingContext dc

    The drawing instructions for a specific element.

    Events

    BorderWidthChanged

    Event that is raised when BorderWidth property is changed.

    Declaration
    public event PropertyChangedCallback BorderWidthChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved