menu

UWP

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

    Show / Hide Table of Contents

    Class DiagramTheme

    Defines a class to set of coordinated colors used in formatting properties for diagram shapes and its objects.

    Inheritance
    System.Object
    DiagramTheme
    BubbleTheme
    CloudsTheme
    DaybreakTheme
    FacetTheme
    GemstoneTheme
    IntegralTheme
    IonTheme
    LinearTheme
    OfficeTheme
    ParallelTheme
    ProminenceTheme
    RadianceTheme
    RetrospectTheme
    SequenceTheme
    SimpleTheme
    SliceTheme
    SmokeTheme
    WhispTheme
    ZephyrTheme
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.UI.Xaml.Diagram.Theming
    Assembly: Syncfusion.SfDiagram.UWP.dll
    Syntax
    public class DiagramTheme : Object, INotifyPropertyChanged

    Constructors

    DiagramTheme()

    Creates the new instance of DiagramTheme class.

    Declaration
    public DiagramTheme()

    Properties

    ConnectorStyles

    Gets or sets the theme style values for diagram connectors.

    Declaration
    public Dictionary<StyleId, DiagramItemStyle> ConnectorStyles { get; set; }
    Property Value
    Type
    System.Collections.Generic.Dictionary<StyleId, DiagramItemStyle>

    NodeStyles

    Gets or sets the theme style values for diagram nodes.

    Declaration
    public Dictionary<StyleId, DiagramItemStyle> NodeStyles { get; set; }
    Property Value
    Type
    System.Collections.Generic.Dictionary<StyleId, DiagramItemStyle>

    Theme

    Gets or sets the theme value for diagram and its objects.

    Declaration
    public Theme Theme { get; set; }
    Property Value
    Type
    Theme

    Methods

    GetConnectorStyle(StyleId)

    To get theme style values for given style ID of a connector.

    Declaration
    public DiagramItemStyle GetConnectorStyle(StyleId effect)
    Parameters
    Type Name Description
    StyleId effect

    Gets theme style ID of a connector.

    Returns
    Type Description
    DiagramItemStyle

    Returns theme style effects, if ConnectorStyles property is not null; otherwise returns null.

    GetNodeStyle(StyleId)

    To get theme style values for given style ID of a node.

    Declaration
    public DiagramItemStyle GetNodeStyle(StyleId effect)
    Parameters
    Type Name Description
    StyleId effect

    Gets theme style ID of Node.

    Returns
    Type Description
    DiagramItemStyle

    Returns theme style effects, if NodeStyles property is not null; otherwise returns null.

    GetSolidColorBrush(String)

    Declaration
    public SolidColorBrush GetSolidColorBrush(string hex)
    Parameters
    Type Name Description
    System.String hex
    Returns
    Type
    Windows.UI.Xaml.Media.SolidColorBrush

    InitializeStyles()

    To generate theme style colors for nodes and connectors objects.

    Declaration
    public virtual void InitializeStyles()

    OnPropertyChanged(String)

    Event can indicate all properties on the DiagramTheme class that have changed.

    Declaration
    protected virtual void OnPropertyChanged(string name)
    Parameters
    Type Name Description
    System.String name

    Events

    PropertyChanged

    Property changed event for DiagramTheme class.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

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