Click or drag to resize

DynamicUserControlBase class

Base class for the dynamic integration of UserControls in external Dlls.
Inheritance hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsContentControl
                System.Windows.ControlsUserControl
                  Vishnu.ViewModelDynamicUserControlBase
                    More

Namespace: Vishnu.ViewModel
Assembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public class DynamicUserControlBase : UserControl,
	 
	IDisposable

The DynamicUserControlBase Type exposes the following members.

Constructors
 NameDescription of the
Public MethodDynamicUserControlBase Constructor - hooks into the LoadedEvent.
Back to the top
Properties
 NameDescription of the
Public PropertyUserResultViewModel Adopts the current, specific DataContext for Vishnu as IVishnuViewModel.
Back to the top
Methods
 NameDescription of the
Public MethodDispose Public method for cleaning up.
Protected MethodDispose(Boolean) Clean up here: calls Dispose() for all user elements that are disposable.
Protected MethodDoDispose The actions required for disposing are carried out here.
Protected MethodFinalise Finaliser: is called by the GarbageCollector.
(Overwrites ObjectFinalise)
Public MethodStatic MemberGetAttachedName WPF getter for the AttachedNameProperty.
Public MethodGetParentViewAbsoluteScreenPosition Absolute screen position of the centre of the containing control.
Protected MethodGetUserResultViewModel Abstract definition of GetUserResultViewModel: must be overwritten for specific application.
Protected MethodOnDynamicUserControl_ContentRendered Triggers the OnDynamicUserControl_ContentRendered event.
Public MethodStatic MemberSetAttachedName WPF setter for the AttachedNameProperty.
Protected MethodSetContextMenuDataContext Sets the specific DataContext for the ContextMenu. Can be overwritten (example: LogicalTaskJobGroupsControl.xaml.cs).
Back to the top
Events
 NameDescription of the
Public EventDynamicUserControl_ContentRendered Standard handler for mounting the WPF event system in the registered event DynamicUserControl_ContentRenderedEvent.
Back to the top
Fields
 NameDescription of the
Public FieldStatic MemberAttachedNameProperty Additional name used to search for the control in the VisualTree (important for UserControls).
Public FieldStatic MemberDynamicUserControl_ContentRenderedEvent Is triggered when the dynamically loaded control has been completely drawn. The user event is declared and registered here.
Back to the top
Attached properties
 NameDescription of the
Public PropertyAttachedName Attached property (string) for an additional name of the UserControl.
Back to the top
Remarks
File: DynamicUserControlBase Author: Erik Nagel 01/08/2014 Erik Nagel: created. 11.09.2022 Erik Nagel: Handling of the ContextMenu implemented; virtual method GetUserResultViewModel installed, abstract does not work because of Path2UserControlBase.
See also
Inheritance hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsContentControl
                System.Windows.ControlsUserControl
                  Vishnu.ViewModelDynamicUserControlBase
                    Vishnu.UserControlsConstantNodeUserControl
                    Vishnu.UserControlsJobConnectorUserControl
                    Vishnu.UserControlsJobListUserControl
                    Vishnu.UserControlsNodeListUserControl
                    Vishnu.UserControlsSingleNodeUserControl
                    Vishnu.UserControlsSnapshotUserControl
                    Vishnu.WPF_UILogicalTaskJobGroupsControl
                    Vishnu.WPF_UINodeErrorControl