menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ErrorBarSettings - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ErrorBarSettings

    Provides the validation support which includes validation color properties.

    Inheritance
    System.Object
    ErrorBarSettings
    Namespace: Syncfusion.UI.Xaml.Kanban
    Assembly: Syncfusion.SfKanban.UWP.dll
    Syntax
    public class ErrorBarSettings : DependencyObject

    Constructors

    ErrorBarSettings()

    Declaration
    public ErrorBarSettings()

    Fields

    ColorProperty

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

    Declaration
    public static readonly DependencyProperty ColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    HeightProperty

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

    Declaration
    public static readonly DependencyProperty HeightProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    MaxValidationColorProperty

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

    Declaration
    public static readonly DependencyProperty MaxValidationColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    MinValidationColorProperty

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

    Declaration
    public static readonly DependencyProperty MinValidationColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    Color

    Gets or sets the brush that defines the color of the error bar in the KanbanColumn.

    Declaration
    public SolidColorBrush Color { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.SolidColorBrush

    The default value of Color is null.

    Remarks

    This property allows customization of the error bar's appearance by specifying a Windows.UI.Xaml.Media.SolidColorBrush. It helps in visually indicating validation states within the Kanban column.

    Examples

    The below examples shows, how to set Color property of in the SfKanban.

    # [XAML](#tab/tabid-1)
    <kanban:SfKanban x:Name="kanban"
                    ItemsSource="{Binding TaskDetails}">
        <kanban:SfKanban.DataContext>
               <local:ViewModel />
         </kanban:SfKanban.DataContext>
        <kanban:KanbanColumn Categories="Open" 
                             HeaderText="To Do"
                             MinimumCount="2"
                             MaximumCount="5">
            <kanban:KanbanColumn.ErrorBarSettings>
                <kanban:KanbanErrorBarSettings Color="Orange" 
                                               MinimumValidationColor="Yellow" 
                                               MaximumValidationColor="Red" 
                                               Height="2"/>
            </kanban:KanbanColumn.ErrorBarSettings>
        </kanban:KanbanColumn>
    </kanban:SfKanban>
    # [C#](#tab/tabid-2)
    public class ViewModel
    {
        public ViewModel()
        {
            TaskDetails = new ObservableCollection<KanbanModel>();
            TaskDetails.Add(new KanbanModel()
            {
                Title = "Universal App",
                Id = "6593",
                Description = "Draft preliminary software specifications",
                Category = "Review",
                IndicatorColorKey = "High",
                Tags = new List<string> { "Analysis" },
            });
        }
        public ObservableCollection<KanbanModel> TaskDetails { get; set; }
    }
    # [C#](#tab/tabid-3)
    this.kanban.ItemsSource = new ViewModel().TaskDetails;
    KanbanColumn kanbanColumn = new KanbanColumn() { Categories = "Open", HeaderText = "To Do", MinimumCount = 2, MaximumCount = 5 };
    KanbanErrorBarSettings errorBarSettings = new KanbanErrorBarSettings();
    errorBarSettings.Color = new SolidColorBrush(Colors.Orange);
    kanbanColumn.ErrorBarSettings = errorBarSettings;
    this.kanban.Columns.Add(kanbanColumn);
    See Also
    KanbanColumn
    Height

    Height

    Gets or sets the height of the error bar in .

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

    The default value of Height is 1d.

    Remarks

    This property allows you to define the height of the error bar, influencing its visual appearance in the Kanban column.

    Examples

    The below examples shows, how to set Height property of in the SfKanban.

    # [XAML](#tab/tabid-10)
    <kanban:SfKanban x:Name="kanban"
                    ItemsSource="{Binding TaskDetails}">
        <kanban:SfKanban.DataContext>
               <local:ViewModel />
         </kanban:SfKanban.DataContext>
        <kanban:KanbanColumn Categories="Open" 
                             HeaderText="To Do"
                             MinimumCount="2"
                             MaximumCount="5">
            <kanban:KanbanColumn.ErrorBarSettings>
                <kanban:KanbanErrorBarSettings MinimumValidationColor="Yellow" 
                                               MaximumValidationColor="Red" 
                                               Height="2"/>
            </kanban:KanbanColumn.ErrorBarSettings>
        </kanban:KanbanColumn>
    </kanban:SfKanban>
    # [C#](#tab/tabid-11)
    public class ViewModel
    {
        public ViewModel()
        {
            TaskDetails = new ObservableCollection<KanbanModel>();
            TaskDetails.Add(new KanbanModel()
            {
                Title = "Universal App",
                Id = "6593",
                Description = "Draft preliminary software specifications",
                Category = "Review",
                IndicatorColorKey = "High",
                Tags = new List<string> { "Analysis" },
            });
        }
        public ObservableCollection<KanbanModel> TaskDetails { get; set; }
    }
    # [C#](#tab/tabid-12)
    this.kanban.ItemsSource = new ViewModel().TaskDetails;
    KanbanColumn kanbanColumn = new KanbanColumn() { Categories = "Open", HeaderText = "To Do", MinimumCount = 2, MaximumCount = 5 };
    KanbanErrorBarSettings errorBarSettings = new KanbanErrorBarSettings();
    errorBarSettings.Height = 2;
    kanbanColumn.ErrorBarSettings = errorBarSettings;
    this.kanban.Columns.Add(kanbanColumn);
    See Also
    KanbanColumn
    Color

    MaxValidationColor

    Gets or sets a SolidColorBrush which indicates error bar color for maximum exceeds case.

    Declaration
    public SolidColorBrush MaxValidationColor { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Media.SolidColorBrush

    MinValidationColor

    Gets or sets a SolidColorBrush which indicates error bar color for minimum exceeds case.

    Declaration
    public SolidColorBrush MinValidationColor { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Media.SolidColorBrush

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved