Class RenderableContentControl
Extended content control that allows to render objects deriving form IVortexObject or IValueTag into UI Content.
Inheritance
Implements
Namespace: Vortex.Presentation.Wpf
Assembly: Vortex.Presentation.Wpf.dll
Syntax
public class RenderableContentControl : ContentControl, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
Examples
Constructors
RenderableContentControl()
Creates new instance of RenderableContentControl
Declaration
public RenderableContentControl()
Fields
ContainerProperty
Gets or sets the container in which the content is rendered.
Declaration
public static readonly DependencyProperty ContainerProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty |
DesignTime
Determines whether the object is in Design Mode.
Declaration
protected bool DesignTime
Field Value
| Type | Description |
|---|---|
| System.Boolean |
MaxObjectsInDesignModeProperty
Gets or sets maximal number of object to be rendered in design mode.
Declaration
public static readonly DependencyProperty MaxObjectsInDesignModeProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty |
PreferCustomizedProperty
Gets or sets weather the render should prefer cusomized view layout over default.
Declaration
public static readonly DependencyProperty PreferCustomizedProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty |
PresentationTypeProperty
Gets or sets the presentation type for the content rendered by this RenderableContentControl. PresentationType defines the pipeline to be followed by the Renderer to deliver desired content in desired form.
Declaration
public static readonly DependencyProperty PresentationTypeProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty |
See Also
ReportingLevelProperty
Gets or sets reporting level of possible messages or errors that might be produced by the rendering process.
Declaration
public static readonly DependencyProperty ReportingLevelProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty |
RootContainerProperty
Declaration
public static readonly DependencyProperty RootContainerProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty |
RunTime
Declaration
protected bool RunTime
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Properties
Container
Gets or sets the container in which the content is rendered.
Declaration
public FrameworkElement Container { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.FrameworkElement |
MaxObjectsInDesignMode
Gets or sets maximal number of object to be rendered in design mode.
Declaration
public int MaxObjectsInDesignMode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PreferCustomized
Gets or sets weather the render should prefer cusomized view layout over default.
Declaration
public bool PreferCustomized { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PresentationType
Gets or sets the presentation type for the content rendered by this RenderableContentControl. PresentationType defines the pipeline to be followed by the Renderer to deliver desired content in desired form.
Declaration
public string PresentationType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
See Also
ReportingLevel
Gets or sets reporting level of possible messages or errors that might be produced by the rendering process.
Declaration
public ReportingLevel ReportingLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| ReportingLevel |
RootContainer
Declaration
public FrameworkElement RootContainer { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.FrameworkElement |
Methods
ClearContainer()
Clears the content of the container of this RenderableContentControl.
Declaration
protected void ClearContainer()
Create(IVortexObject, String)
Create representation of an object according the PresentationType
Declaration
public static RenderableContentControl Create(IVortexObject obj, string presentationType)
Parameters
| Type | Name | Description |
|---|---|---|
| IVortexObject | obj | IVortexObject to be rendered. |
| System.String | presentationType | Presentation type (e.g. 'Display', 'Control') |
Returns
| Type | Description |
|---|---|
| RenderableContentControl | Rendered presentation of given object. |
Examples
See Also
OnPresentationDataChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Declaration
static void OnPresentationDataChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | sender | |
| System.Windows.DependencyPropertyChangedEventArgs | e |
RenderableContentControl_DataContextChanged(Object, DependencyPropertyChangedEventArgs)
Executes when 'DataContext' of this RenderableContentControl changes.
Declaration
protected void RenderableContentControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | Sender object. |
| System.Windows.DependencyPropertyChangedEventArgs | e | Event arguments. |
RenderableContentControl_IsVisibleChanged(Object, DependencyPropertyChangedEventArgs)
Executes when IsVisible property of this RenderableContentControl changes.
Declaration
protected void RenderableContentControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | Sender object. |
| System.Windows.DependencyPropertyChangedEventArgs | e | Event arguments. |
RenderableContentControl_RequestBringIntoView(Object, RequestBringIntoViewEventArgs)
Executes when this RenderableContentControl is requested to be brought into view.
Declaration
protected void RenderableContentControl_RequestBringIntoView(object sender, RequestBringIntoViewEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | |
| System.Windows.RequestBringIntoViewEventArgs | e |
RenderContent()
Renders content of this RenderableContentControl form the object stored in 'DataContext' property.
Declaration
protected virtual void RenderContent()
SetUpUpdateConditions()
Declaration
void SetUpUpdateConditions()