skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PresenterBase

Base class for all System.Windows.Controls.Control instances that represent charting engine logical models.

Inheritance
System.Object
RadControlBase
PresenterBase
ChartElementPresenter
RadChartBase
Inherited Members
RadControlBase.OnUnloaded(Object, RoutedEventArgs)
RadControlBase.OnLoaded(Object, RoutedEventArgs)
RadControlBase.IsLoaded
RadControlBase.IsTemplateApplied
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll

Syntax

public abstract class PresenterBase : RadControlBase, IChartElementPresenterWithMargin, IChartElementPresenter

Constructors

PresenterBase()

Initializes a new instance of the PresenterBase class.

Declaration
protected PresenterBase()

Fields

InfinityPoint

Represents a System.Windows.Point structure, which Width and Height members are set to double.PositiveInfinity.

Declaration
public static readonly Point InfinityPoint
Field Value
System.Windows.Point

InfinitySize

Represents a System.Windows.Size structure, which Width and Height members are set to double.PositiveInfinity.

Declaration
public static readonly Size InfinitySize
Field Value
System.Windows.Size

Properties

RenderSurface

Gets the System.Windows.Controls.Canvas instance used as a visual parent for all the child UI elements.

Declaration
protected Canvas RenderSurface { get; }
Property Value
System.Windows.Controls.Canvas

Methods

CreateContentPresenter(Object, DataTemplate)

Creates a System.Windows.Controls.ContentPresenter associated with the specified content and template.

Declaration
protected ContentPresenter CreateContentPresenter(object content, DataTemplate template)
Parameters
System.Object content

System.Windows.DataTemplate template

Returns
System.Windows.Controls.ContentPresenter

InvalidatePalette()

Re-applies the owning chart's palette.

Declaration
public void InvalidatePalette()
Implements
IChartElementPresenter.InvalidatePalette()

MeasureNodeOverride(ChartNode, Object)

Core entry point for calculating the size of a node's content.

Declaration
protected virtual RadSize MeasureNodeOverride(ChartNode node, object content)
Parameters
ChartNode node

System.Object content

Returns
RadSize

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration
public override void OnApplyTemplate()
Overrides
RadControlBase.OnApplyTemplate()

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

RefreshNode(ChartNode)

Invalidates the visual representation of the specified logical node.

Declaration
public void RefreshNode(ChartNode node)
Parameters
ChartNode node

Implements
IChartElementPresenter.RefreshNode(ChartNode)

RefreshNodeCore(ChartNode)

Performs the core logic that invalidates the visual representation of the specified logical node.

Declaration
protected virtual void RefreshNodeCore(ChartNode node)
Parameters
ChartNode node

Explicit Interface Implementations

IChartElementPresenter.IsVisible

Gets a value indicating whether this instance is visible.

Declaration
bool IChartElementPresenter.IsVisible { get; }
Returns
System.Boolean

Implements
IChartElementPresenter.IsVisible
Remarks

This property supports the RadChart infrastructure and is not intended to be used directly from your code.

IChartElementPresenter.MeasureContent(ChartNode, Object)

Retrieves the desired size for the specified node's content.

Declaration
RadSize IChartElementPresenter.MeasureContent(ChartNode owner, object content)
Parameters
ChartNode owner

System.Object content

Returns
RadSize

Implements
IChartElementPresenter.MeasureContent(ChartNode, Object)

IChartElementPresenter.MeasureVisual(ChartNode, RadSize)

Declaration
RadSize IChartElementPresenter.MeasureVisual(ChartNode visualModel, RadSize availableSize)
Parameters
ChartNode visualModel

RadSize availableSize

Returns
RadSize

Implements
IChartElementPresenter.MeasureVisual(ChartNode, RadSize)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.