menu

WPF

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

    Show / Hide Table of Contents

    Class HeatMapsPanel

    The base container panel for the HeatMapControl and HeatMapItem. Derive your custom panels from this type.

    Inheritance
    System.Object
    HeatMapsPanel
    HorizontalSlicesPanel
    SquarifiedHeatMapsPanel
    VerticalSlicesPanel
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.dll
    Syntax
    public class HeatMapsPanel : Canvas

    Constructors

    HeatMapsPanel()

    Declaration
    public HeatMapsPanel()

    Properties

    AvailableArea

    Gets or sets the remaining area available for children.

    Declaration
    protected Rect AvailableArea { get; set; }
    Property Value
    Type
    System.Windows.Rect

    ShorterSideLength

    Gets the shortest (of the remaining area) side's length.

    Declaration
    protected double ShorterSideLength { get; }
    Property Value
    Type
    System.Double

    SortedItemMeasuresList

    Gets the list of item measures sorted by weight. This list is available after a call to MeasureOverride.

    Declaration
    protected List<HeatMapItemMeasure> SortedItemMeasuresList { get; }
    Property Value
    Type
    System.Collections.Generic.List<HeatMapItemMeasure>

    Methods

    ArrangeOverride(Size)

    Calls Arrange on all the "visible" child items. "Visible" items are in the SortedItemMeasuresList.

    Declaration
    protected override Size ArrangeOverride(Size arrangeSize)
    Parameters
    Type Name Description
    System.Windows.Size arrangeSize

    The available size.

    Returns
    Type Description
    System.Windows.Size

    Simply returns the arrangeSize param value.

    ComputeBySlicing(List<HeatMapItemMeasure>)

    Slices the items based on orientation.

    Declaration
    protected void ComputeBySlicing(List<HeatMapItemMeasure> items)
    Parameters
    Type Name Description
    System.Collections.Generic.List<HeatMapItemMeasure> items

    The HeatMapItemMeasure items

    ComputeItemBounds()

    Override this method to compute the item bounds. Update AvailableArea as you allocate space between the children

    Declaration
    protected virtual void ComputeItemBounds()

    ComputeNextPosition(Orientation, ref Double, ref Double, Double, Double)

    Increments x or y based on the orientation.

    Declaration
    protected virtual void ComputeNextPosition(Orientation orientation, ref double xPos, ref double yPos, double width, double height)
    Parameters
    Type Name Description
    System.Windows.Controls.Orientation orientation

    The orientation.

    System.Double xPos

    The X position.

    System.Double yPos

    The Y position.

    System.Double width

    The width value

    System.Double height

    The height value

    GetOrientation()

    Could be used for slice and dice type layouts to determine the orientation to use for children layout.

    Declaration
    protected virtual Orientation GetOrientation()
    Returns
    Type Description
    System.Windows.Controls.Orientation

    The orientation

    GetRectangle(Orientation, HeatMapItemMeasure, Double, Double, Double, Double)

    Returns the rect for a child based on the orientation.

    Declaration
    protected virtual Rect GetRectangle(Orientation orientation, HeatMapItemMeasure item, double x, double y, double width, double height)
    Parameters
    Type Name Description
    System.Windows.Controls.Orientation orientation

    The orientation

    HeatMapItemMeasure item

    The item value

    System.Double x

    The x value

    System.Double y

    The y value

    System.Double width

    The width value

    System.Double height

    The height value

    Returns
    Type Description
    System.Windows.Rect

    The rectangle

    MeasureOverride(Size)

    calculates the bounds for the items (this information will be stored in the SortedItemMeasuresList). Calls Measure on all the "visible" items.

    Declaration
    protected override Size MeasureOverride(Size constraint)
    Parameters
    Type Name Description
    System.Windows.Size constraint

    The constraint within which to layout the items.

    Returns
    Type Description
    System.Windows.Size

    Returns the passed in constraint in most cases. If the constraint is Double.Infinity* (as in some cases), then it would return a size based on the HeatMapControl.PreferredItemsPanelWidth and PreferredItemsPanelHeight.

    ShouldProcessColorWeights(HeatMapItem)

    Method to indicate whether color Weights should be processed

    Declaration
    protected bool ShouldProcessColorWeights(HeatMapItem item)
    Parameters
    Type Name Description
    HeatMapItem item

    The HeatMapItem item

    Returns
    Type Description
    System.Boolean

    The bool value whether to process color weights

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved