WPF

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

    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
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Diagram.Theming
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class DiagramTheme : 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 Description
    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 Description
    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 Description
    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.

    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 Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved