-
Notifications
You must be signed in to change notification settings - Fork 32
Forge.Forms.Controls
redbaty edited this page Feb 16, 2018
·
1 revision
Interaction logic for MainWindow.xaml
public class Forge.Forms.Controls.DialogWindow
: MetroWindow, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IWindowService, IComponentConnectorFields
| Type | Name | Summary |
|---|---|---|
CommandBinding |
CloseDialogCommandBinding | |
DynamicForm |
Form | |
DialogWindow |
Window |
Methods
| Type | Name | Summary |
|---|---|---|
Delegate |
_CreateDelegate(Type delegateType, String handler) |
|
void |
InitializeComponent() | InitializeComponent |
public class Forge.Forms.Controls.DynamicForm
: Control, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IDynamicFormFields
| 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 |
Interaction logic for FormWrapper.xaml
public class Forge.Forms.Controls.DynamicFormWrapper
: UserControl, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IComponentConnectorFields
| Type | Name | Summary |
|---|---|---|
DynamicForm |
Form |
Methods
| Type | Name | Summary |
|---|---|---|
Delegate |
_CreateDelegate(Type delegateType, String handler) |
|
void |
InitializeComponent() | InitializeComponent |
public static class Forge.Forms.Controls.TextPropertiesStatic 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) |