Skip to content

Forge.Forms.Controls

redbaty edited this page Feb 16, 2018 · 1 revision

DialogWindow

Interaction logic for MainWindow.xaml

public class Forge.Forms.Controls.DialogWindow
    : MetroWindow, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IWindowService, IComponentConnector

Fields

Type Name Summary
CommandBinding CloseDialogCommandBinding
DynamicForm Form
DialogWindow Window

Methods

Type Name Summary
Delegate _CreateDelegate(Type delegateType, String handler)
void InitializeComponent() InitializeComponent

DynamicForm

public class Forge.Forms.Controls.DynamicForm
    : Control, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IDynamicForm

Fields

Type Name Summary
Dictionary<String, IDataBindingProvider> DataBindingProviders
Dictionary<String, DataFormField> DataFields
IResourceContext ResourceContext

Properties

Type Name Summary
Object Context Gets or sets the context associated with this form. Models can utilize this property to get data from outside of their instance scope.
IEnvironment Environment Returns the environment flags for this control.
IFormBuilder FormBuilder Gets or sets the form builder that is responsible for building forms.
Object Model Gets or sets the model associated with this form. If the value is a IFormDefinition, a form will be built based on that definition. If the value is a Type, a form will be built and bound to a new instance of that type. If the value is a simple object, a single field bound to this property will be displayed. If the value is a complex object, a form will be built and bound to properties of that instance.
IModelInterceptor ModelInterceptor Allows intercepting the model to make changes. This is an instance level interceptor. See Forge.Forms.Controls.DynamicForm.InterceptorChain for global hooks.
Object Value Gets the value of the current model instance.

Events

Type Name Summary
EventHandler<ActionEventArgs> OnAction Raised when an action is performed within the generated form.

Methods

Type Name Summary
Dictionary<String, DataFormField> GetDataFields()
void OnApplyTemplate()
void RaiseOnAction(IActionContext actionContext)
void ReloadElements()

Static Fields

Type Name Summary
HashSet<DynamicForm> ActiveForms
DependencyProperty ContextProperty
DependencyProperty FormBuilderProperty
List<IModelInterceptor> InterceptorChain
DependencyProperty ModelInterceptorProperty
DependencyProperty ModelProperty
DependencyProperty ValueProperty
DependencyPropertyKey ValuePropertyKey

DynamicFormWrapper

Interaction logic for FormWrapper.xaml

public class Forge.Forms.Controls.DynamicFormWrapper
    : UserControl, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IComponentConnector

Fields

Type Name Summary
DynamicForm Form

Methods

Type Name Summary
Delegate _CreateDelegate(Type delegateType, String handler)
void InitializeComponent() InitializeComponent

TextProperties

public static class Forge.Forms.Controls.TextProperties

Static Fields

Type Name Summary
DependencyProperty HeadingFontSizeProperty
DependencyProperty TextFontSizeProperty
DependencyProperty TitleFontSizeProperty

Static Methods

Type Name Summary
Double GetHeadingFontSize(DependencyObject element)
Double GetTextFontSize(DependencyObject element)
Double GetTitleFontSize(DependencyObject element)
void SetHeadingFontSize(DependencyObject element, Double value)
void SetTextFontSize(DependencyObject element, Double value)
void SetTitleFontSize(DependencyObject element, Double value)
Clone this wiki locally