• Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • 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)

Was this article helpful?

Tell us how we can improve this article

Skip
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.