Export (0) Print
Expand All

FrameworkContentElement Class

FrameworkContentElement is the WPF framework-level implementation of the ContentElement base class. FrameworkContentElement adds support for additional input APIs (including tooltips and context menus), storyboards, data context for databinding, styles support, and logical tree helper APIs.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[RuntimeNamePropertyAttribute("Name")] 
[XmlLangPropertyAttribute("Language")] 
[StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=typeof(Control))] 
public class FrameworkContentElement : ContentElement, IFrameworkInputElement, IInputElement, ISupportInitialize
/** @attribute RuntimeNamePropertyAttribute("Name") */ 
/** @attribute XmlLangPropertyAttribute("Language") */ 
/** @attribute StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control) */ 
public class FrameworkContentElement extends ContentElement implements IFrameworkInputElement, IInputElement, 
	ISupportInitialize
RuntimeNamePropertyAttribute("Name") 
XmlLangPropertyAttribute("Language") 
StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control) 
public class FrameworkContentElement extends ContentElement implements IFrameworkInputElement, IInputElement, 
	ISupportInitialize
<FrameworkContentElement .../>

FrameworkContentElement does not yet define its own rendering behavior; instantiating an actual FrameworkContentElement class instance in code or markup is possible but displays nothing in a WPF application user interface (UI). Rendering logic must be provided by classes that take FrameworkContentElement child elements as part of their content model, or in FrameworkContentElement derived classes.

FrameworkContentElement deliberately parallels many of the same APIs as FrameworkElement. Note that certain APIs found on FrameworkElement will not have a FrameworkContentElement equivalent. Several of the FrameworkElement APIs are for functionality such as geometry representation or layout, which are not relevant for a FrameworkContentElement.

The majority of existing FrameworkContentElement derived classes will be found in the System.Windows.Documents namespace. Many of these derived classes implement elements for the flow document model. Certain derived classes such as Hyperlink have some control-like functionality, but are derived from FrameworkContentElement such that the control-like elements can still participate in the flow document model.

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.ContentElement
        System.Windows.FrameworkContentElement
           Derived Classes

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft