Class Renderer
Inheritance
System.Object
Renderer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Vortex.Presentation.Wpf.dll
Syntax
Constructors
Renderer()
Declaration
Fields
_cachedTypes
Declaration
readonly Dictionary<string, Type> _cachedTypes
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Type> |
|
_componentsCache
Declaration
SortedDictionary<string, Renderer.ComponentsCacheItem> _componentsCache
Field Value
_instance
Declaration
static Renderer _instance
Field Value
_viewAsseblyLookupList
Declaration
readonly List<string> _viewAsseblyLookupList
Field Value
Type |
Description |
System.Collections.Generic.List<System.String> |
|
assembliesLoaded
Declaration
Field Value
Type |
Description |
System.Boolean |
|
mutex
Declaration
static volatile object mutex
Field Value
Type |
Description |
System.Object |
|
Properties
ComponentsCache
Declaration
SortedDictionary<string, Renderer.ComponentsCacheItem> ComponentsCache
{
}
Property Value
Diagnostics
Declaration
Property Value
Type |
Description |
System.String |
|
Get
Declaration
public static Renderer Get { get; }
Property Value
MaxObjectCountInDesign
Declaration
int MaxObjectCountInDesign
{
}
Property Value
Type |
Description |
System.Int32 |
|
ReportingSeverity
Gets or sets ReportingLevel that displays messages and errors that might occur during the rendering process.
Declaration
public ReportingLevel ReportingSeverity { get; set; }
Property Value
ViewAssemblyLookupList
Declaration
List<string> ViewAssemblyLookupList
{
}
Property Value
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Methods
_CreatePresentation(Object, Object, Boolean, ReportingLevel, Int32)
Declaration
object _CreatePresentation(object presentationType, object vortexObject, bool preferCustomized, ReportingLevel reportingLevel, int maxObjectsInDesignMode)
Parameters
Type |
Name |
Description |
System.Object |
presentationType |
|
System.Object |
vortexObject |
|
System.Boolean |
preferCustomized |
|
ReportingLevel |
reportingLevel |
|
System.Int32 |
maxObjectsInDesignMode |
|
Returns
Type |
Description |
System.Object |
|
_CreatePresentation(String, IValueTag, FrameworkElement)
Creates presentation of IValueTag of given presentation type.
Declaration
FrameworkElement _CreatePresentation(string presentationType, IValueTag vortexObject, FrameworkElement parentContainer = null)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
Presentation type
|
IValueTag |
vortexObject |
IValueTag from which the presentation will be rendered.
|
System.Windows.FrameworkElement |
parentContainer |
Optionally can be parent UI container.
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
_CreatePresentation(String, IVortexObject, Boolean, FrameworkElement)
Creates presentation of IVortexObject of given presentation type.
Declaration
FrameworkElement _CreatePresentation(string presentationType, IVortexObject vortexObject, bool preferCustomized, FrameworkElement parentContainer = null)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
Presentation type
|
IVortexObject |
vortexObject |
IVortexObject from which the presentation will be rendered.
|
System.Boolean |
preferCustomized |
|
System.Windows.FrameworkElement |
parentContainer |
Optionally can be parent UI container.
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
AddContainer(FrameworkElement, FrameworkElement, IVortexElement, Object)
Declaration
FrameworkElement AddContainer(FrameworkElement newContainer, FrameworkElement parentContainer, IVortexElement vortexObject, object parentHeader)
Parameters
Type |
Name |
Description |
System.Windows.FrameworkElement |
newContainer |
|
System.Windows.FrameworkElement |
parentContainer |
|
IVortexElement |
vortexObject |
|
System.Object |
parentHeader |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
AddElement(ContentControl, IVortexElement, String)
Declaration
bool AddElement(ContentControl container, IVortexElement vortexObject, string presentationType)
Parameters
Type |
Name |
Description |
System.Windows.Controls.ContentControl |
container |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
Returns
Type |
Description |
System.Boolean |
|
AddElement(Decorator, IVortexElement, String)
Declaration
bool AddElement(Decorator container, IVortexElement vortexObject, string presentationType)
Parameters
Type |
Name |
Description |
System.Windows.Controls.Decorator |
container |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool AddElement(HeaderedContentControl container, FrameworkElement parentContainer, IVortexElement vortexObject, string presentationType)
Parameters
Type |
Name |
Description |
System.Windows.Controls.HeaderedContentControl |
container |
|
System.Windows.FrameworkElement |
parentContainer |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
Returns
Type |
Description |
System.Boolean |
|
AddElement(ItemsControl, IVortexElement, String)
Declaration
bool AddElement(ItemsControl container, IVortexElement vortexObject, string presentationType)
Parameters
Type |
Name |
Description |
System.Windows.Controls.ItemsControl |
container |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
Returns
Type |
Description |
System.Boolean |
|
AddElement(Panel, IVortexElement, String)
Declaration
bool AddElement(Panel container, IVortexElement vortexObject, string presentationType)
Parameters
Type |
Name |
Description |
System.Windows.Controls.Panel |
container |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
Returns
Type |
Description |
System.Boolean |
|
AddElement(Selector, IVortexElement, String)
Declaration
bool AddElement(Selector container, IVortexElement vortexObject, string presentationType)
Parameters
Type |
Name |
Description |
System.Windows.Controls.Primitives.Selector |
container |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
Returns
Type |
Description |
System.Boolean |
|
AddElement(FrameworkElement, IVortexElement, String)
Declaration
bool AddElement(FrameworkElement container, IVortexElement vortexObject, string presentationType)
Parameters
Type |
Name |
Description |
System.Windows.FrameworkElement |
container |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
Returns
Type |
Description |
System.Boolean |
|
AddViewModelTypeToComponentsCache(String, Type, Type)
Declaration
void AddViewModelTypeToComponentsCache(string fullSignature, Type objType, Type viewModelType)
Parameters
Type |
Name |
Description |
System.String |
fullSignature |
|
System.Type |
objType |
|
System.Type |
viewModelType |
|
AddViewTypeToComponentsCache(String, Type, Type)
Declaration
void AddViewTypeToComponentsCache(string fullSignature, Type objType, Type viewType)
Parameters
Type |
Name |
Description |
System.String |
fullSignature |
|
System.Type |
objType |
|
System.Type |
viewType |
|
AttachAllAssemblieFromApplicationDomain()
Loads all assemblies from the application domain of currently running application.
Declaration
void AttachAllAssemblieFromApplicationDomain()
AttachAllAssemblies()
Declaration
void AttachAllAssemblies()
AttachAllAssembliesApplicationFolder()
Declaration
void AttachAllAssembliesApplicationFolder()
AttachAllAssembliesAtRuntime()
Loads all assemblies from current application directory that have defined RenderableAssemblyAttribute.
These assemblies are then search for corresponding Views and ViewModel.
Declaration
void AttachAllAssembliesAtRuntime()
AttachAssembliesInDesignMode()
Loads assemblies in design mode.
Declaration
void AttachAssembliesInDesignMode()
AttachAssemblyToLookUpList(String)
Attaches the assembly with given assembly name to the list of assemblies that are being searched for
Views and ViewModels.
Declaration
public void AttachAssemblyToLookUpList(string assemblyName)
Parameters
Type |
Name |
Description |
System.String |
assemblyName |
|
CreateContainer(FrameworkElement, FrameworkElement, IVortexElement, String, Boolean)
Declaration
FrameworkElement CreateContainer(FrameworkElement parentContainer, FrameworkElement previousContainer, IVortexElement vortexObject, string presentationType, bool preferCustomized)
Parameters
Type |
Name |
Description |
System.Windows.FrameworkElement |
parentContainer |
|
System.Windows.FrameworkElement |
previousContainer |
|
IVortexElement |
vortexObject |
|
System.String |
presentationType |
|
System.Boolean |
preferCustomized |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
CreateDefaultContainer()
Declaration
static FrameworkElement CreateDefaultContainer()
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
CreatePresentation(Object, Object, Boolean, ReportingLevel, Int32, Boolean)
Declaration
public object CreatePresentation(object presentationType, object vortexObject, bool preferCustomized = false, ReportingLevel reportingLevel = ReportingLevel.None, int maxObjectsInDesignMode = 25, bool cacheVisuals = true)
Parameters
Type |
Name |
Description |
System.Object |
presentationType |
Presentation type
|
System.Object |
vortexObject |
Object to be represented.
|
System.Boolean |
preferCustomized |
Instructs the renderer to prefer the use of layouting and other paramters from the customized control.
|
ReportingLevel |
reportingLevel |
Reporting level.
|
System.Int32 |
maxObjectsInDesignMode |
Max number of object to be displayed in design mode.
|
System.Boolean |
cacheVisuals |
When true indicates that created visuals will be cached when first time created. This value is set to 'true' by default.
|
Returns
Type |
Description |
System.Object |
Visual representation of given presentation type for given object
|
DesignModeSettings()
Declaration
void DesignModeSettings()
EnvelopeIfNecessary(FrameworkElement, FrameworkElement, Object)
Declaration
FrameworkElement EnvelopeIfNecessary(FrameworkElement newContainer, FrameworkElement parentContainer, object parentHeader)
Parameters
Type |
Name |
Description |
System.Windows.FrameworkElement |
newContainer |
|
System.Windows.FrameworkElement |
parentContainer |
|
System.Object |
parentHeader |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
FindClosestModelViewInPipeline(String, Type)
Declaration
Type FindClosestModelViewInPipeline(string presentationType, Type objType)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
System.Type |
objType |
|
Returns
Type |
Description |
System.Type |
|
FindClosestView(String, Type)
Declaration
Type FindClosestView(string presentationType, Type objType)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
System.Type |
objType |
|
Returns
Type |
Description |
System.Type |
|
FindClosestViewInPipeline(String, Type)
Declaration
Type FindClosestViewInPipeline(string presentationType, Type objType)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
System.Type |
objType |
|
Returns
Type |
Description |
System.Type |
|
FindClosestViewModel(String, Type)
Declaration
Type FindClosestViewModel(string presentationType, Type objType)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
System.Type |
objType |
|
Returns
Type |
Description |
System.Type |
|
FrameworkElementLoaded(Object, RoutedEventArgs)
Declaration
void FrameworkElementLoaded(object sender, RoutedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.RoutedEventArgs |
e |
|
GetClosestView(String, Type)
Declaration
Type GetClosestView(string presentationType, Type type)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
System.Type |
type |
|
Returns
Type |
Description |
System.Type |
|
GetClosestViewModel(String, Type)
Declaration
Type GetClosestViewModel(string presentationType, Type objType)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
System.Type |
objType |
|
Returns
Type |
Description |
System.Type |
|
GetContainerAttribute(IVortexElement, Boolean)
Declaration
PresentationContainerAttribute GetContainerAttribute(IVortexElement vortexObject, bool hasCustomizedView)
Parameters
Type |
Name |
Description |
IVortexElement |
vortexObject |
|
System.Boolean |
hasCustomizedView |
|
Returns
Type |
Description |
Vortex.Presentation.Attributes.PresentationContainerAttribute |
|
GetEnumeratorDiscriminatorAttribute(IVortexElement)
Returns Enumerator description attribute for given member.
Declaration
public EnumeratorDiscriminatorAttribute GetEnumeratorDiscriminatorAttribute(IVortexElement vortexObject)
Parameters
Type |
Name |
Description |
IVortexElement |
vortexObject |
Object on which the attribute will be searched.
|
Returns
GetGroupAttribute(IVortexElement, Boolean)
Declaration
PresentationGroupAttribute GetGroupAttribute(IVortexElement vortexObject, bool hasCustomizedView)
Parameters
Type |
Name |
Description |
IVortexElement |
vortexObject |
|
System.Boolean |
hasCustomizedView |
|
Returns
Type |
Description |
Vortex.Presentation.Attributes.PresentationGroupAttribute |
|
GetGroupedProperies(Type, List<Renderer.BaseTypeProperies>)
Declaration
IEnumerable<Renderer.BaseTypeProperies> GetGroupedProperies(Type type, List<Renderer.BaseTypeProperies> properties = null)
Parameters
Returns
Declaration
static object GetHeader(IVortexElement vortexObject, object parentHeader = null)
Parameters
Type |
Name |
Description |
IVortexElement |
vortexObject |
|
System.Object |
parentHeader |
|
Returns
Type |
Description |
System.Object |
|
GetIgnoreRenderingAttribute(IVortexElement)
Declaration
RenderIgnoreAttribute GetIgnoreRenderingAttribute(IVortexElement vortexObject)
Parameters
Returns
Type |
Description |
RenderIgnoreAttribute |
|
GetPropertyViaSymbol(IVortexElement)
Declaration
public PropertyInfo GetPropertyViaSymbol(IVortexElement vortexObject)
Parameters
Returns
Type |
Description |
System.Reflection.PropertyInfo |
System.Reflection.PropertyInfo of the property located via symbol information.
|
GetReferencedAssemblies()
Returns lookup assemblies.
Declaration
public string GetReferencedAssemblies()
Returns
Type |
Description |
System.String |
String of lookup assemblies.
|
GetSortedProperties(IVortexElement, List<PropertyInfo>)
Declaration
IEnumerable<PropertyInfo> GetSortedProperties(IVortexElement vortexObject, List<PropertyInfo> properties = null)
Parameters
Type |
Name |
Description |
IVortexElement |
vortexObject |
|
System.Collections.Generic.List<System.Reflection.PropertyInfo> |
properties |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> |
|
GetSortedProperties(IVortexObject, List<PropertyInfo>)
Declaration
IEnumerable<PropertyInfo> GetSortedProperties(IVortexObject vortexObject, List<PropertyInfo> properties = null)
Parameters
Type |
Name |
Description |
IVortexObject |
vortexObject |
|
System.Collections.Generic.List<System.Reflection.PropertyInfo> |
properties |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> |
|
GetTypeToCreate(String, String)
Declaration
Type GetTypeToCreate(string assembly, string fullTypeName)
Parameters
Type |
Name |
Description |
System.String |
assembly |
|
System.String |
fullTypeName |
|
Returns
Type |
Description |
System.Type |
|
GetView(String, Type)
Gets the view of given presentation type for given object type.
Declaration
public Type GetView(string presentationType, Type objType)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
Presentation type
|
System.Type |
objType |
Object type
|
Returns
Type |
Description |
System.Type |
|
GetViewFromCache(String)
Declaration
Type GetViewFromCache(string fullSignature)
Parameters
Type |
Name |
Description |
System.String |
fullSignature |
|
Returns
Type |
Description |
System.Type |
|
GetViewModel(String, Type, Object)
Gets the view model for given object type and given presentation type.
Declaration
public RenderableViewModelBase GetViewModel(string presentationType, Type objType, object model)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
Presentation type
|
System.Type |
objType |
Object type
|
System.Object |
model |
Model object
|
Returns
Type |
Description |
Vortex.Presentation.RenderableViewModelBase |
|
GetViewModelFromCache(String)
Declaration
Type GetViewModelFromCache(string fullSignature)
Parameters
Type |
Name |
Description |
System.String |
fullSignature |
|
Returns
Type |
Description |
System.Type |
|
HasIgnore(String, IVortexElement)
Declaration
bool HasIgnore(string presentationType, IVortexElement obj)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
IVortexElement |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
InvalidLicenseView(String)
Declaration
static Panel InvalidLicenseView(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
Returns
Type |
Description |
System.Windows.Controls.Panel |
|
IsDisplayable(List<Object>)
Declaration
bool IsDisplayable(List<object> attribs)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Object> |
attribs |
|
Returns
Type |
Description |
System.Boolean |
|
IsEnumerator(IVortexElement)
Declaration
bool IsEnumerator(IVortexElement obj)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsObjectCountReached(ref Int32, Int32)
Declaration
bool IsObjectCountReached(ref int currentObjectCount, int maxObjectCount)
Parameters
Type |
Name |
Description |
System.Int32 |
currentObjectCount |
|
System.Int32 |
maxObjectCount |
|
Returns
Type |
Description |
System.Boolean |
|
ProbeViewLocator(String, IVortexElement)
Declaration
Type ProbeViewLocator(string presentationType, IVortexElement obj)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
IVortexElement |
obj |
|
Returns
Type |
Description |
System.Type |
|
ProbeViewLocatorCreator(String, IVortexElement)
Declaration
Type ProbeViewLocatorCreator(string presentationType, IVortexElement element)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
IVortexElement |
element |
|
Returns
Type |
Description |
System.Type |
|
RendererBusy()
Declaration
RendererDone()
Declaration
RenderPresentation(String, IValueTag, FrameworkElement, FrameworkElement, Int32, Int32, Boolean)
Declaration
FrameworkElement RenderPresentation(string presentationType, IValueTag valueTag, FrameworkElement container = null, FrameworkElement parentContainer = null, int objectCount = 0, int maxObjectsCount = 2147483647, bool preferCustomized = false)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
IValueTag |
valueTag |
|
System.Windows.FrameworkElement |
container |
|
System.Windows.FrameworkElement |
parentContainer |
|
System.Int32 |
objectCount |
|
System.Int32 |
maxObjectsCount |
|
System.Boolean |
preferCustomized |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
RenderPresentation(String, IVortexObject, Boolean, FrameworkElement, FrameworkElement, Int32, Int32)
Declaration
[STAThread]
FrameworkElement RenderPresentation(string presentationType, IVortexObject vortexObject, bool preferCustomized, FrameworkElement container = null, FrameworkElement parentContainer = null, int objectCount = 0, int maxObjectsCount = 2147483647)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
IVortexObject |
vortexObject |
|
System.Boolean |
preferCustomized |
|
System.Windows.FrameworkElement |
container |
|
System.Windows.FrameworkElement |
parentContainer |
|
System.Int32 |
objectCount |
|
System.Int32 |
maxObjectsCount |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
ReportErrorOnElementCreation(Exception, ReportingLevel)
Declaration
FrameworkElement ReportErrorOnElementCreation(Exception description, ReportingLevel messageSeverity)
Parameters
Type |
Name |
Description |
System.Exception |
description |
|
ReportingLevel |
messageSeverity |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
ReportErrorOnElementCreation(TooManyObjectsToRenderException, ReportingLevel)
Declaration
FrameworkElement ReportErrorOnElementCreation(TooManyObjectsToRenderException exception, ReportingLevel messageSeverity)
Parameters
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
SecurityProvider_OnAnyAuthenticationEvent(String)
Declaration
void SecurityProvider_OnAnyAuthenticationEvent(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
ViewViewModelLocator(String, IVortexElement)
Declaration
FrameworkElement ViewViewModelLocator(string presentationType, IVortexElement obj)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
IVortexElement |
obj |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
ViewViewModelLocatorCreator(String, IVortexElement)
Declaration
FrameworkElement ViewViewModelLocatorCreator(string presentationType, IVortexElement element)
Parameters
Type |
Name |
Description |
System.String |
presentationType |
|
IVortexElement |
element |
|
Returns
Type |
Description |
System.Windows.FrameworkElement |
|
Extension Methods