Class TemplateBehaviors
Represents a collection of attached properties for Templates.
Inherited Members
Namespace: Phoenix.Aruba.Behaviors
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public static class TemplateBehaviors
Fields
View SourceAttachValidationErrorEventTriggersProperty
Using a DependencyProperty as the backing store for AttachValidationErrorEventTriggers. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AttachValidationErrorEventTriggersProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ClearOnSaveProperty
ClearOnSave Attached Dependency Property.
Declaration
public static readonly DependencyProperty ClearOnSaveProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FieldProperty
Field Attached Dependency Property.
Declaration
public static readonly DependencyProperty FieldProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsFieldDisplayedProperty
Using a DependencyProperty as the backing store for IsFieldDisplayed. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsFieldDisplayedProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SourceFieldProperty
SourceField Attached Dependency Property.
Declaration
public static readonly DependencyProperty SourceFieldProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Methods
View SourceGetAttachValidationErrorEventTriggers(DependencyObject)
Gets the AttachValidationErrorEventTriggers property. This property is used to control which objects will have ValidationErrorEventTriggers added to their System.Windows.Interactivity.Interaction.Triggers collection. This done with an attached behavior because the System.Windows.Interactivity.Interaction.Triggers collection cannot be modified directly in a style.
Declaration
public static bool GetAttachValidationErrorEventTriggers(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
Returns
Type | Description |
---|---|
bool | The source Field. |
GetClearOnSave(DependencyObject)
Gets the ClearOnSave property.
Declaration
public static bool GetClearOnSave(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
Returns
Type | Description |
---|---|
bool | The field on which values depend. |
GetField(DependencyObject)
Gets the Field property.
Declaration
public static FieldViewModel GetField(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | The dependency object. |
Returns
Type | Description |
---|---|
FieldViewModel | The source Field. |
GetIsFieldDisplayed(DependencyObject)
Gets the IsFieldDisplayed property. This property is used by the BugEditor in order to track which fields from the real bug DB have been displayed on the BugAnywhere bug editor form.
Declaration
public static bool GetIsFieldDisplayed(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
Returns
Type | Description |
---|---|
bool | The source Field. |
GetSourceField(DependencyObject)
Gets the SourceField property.
Declaration
public static string GetSourceField(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
Returns
Type | Description |
---|---|
string | The source Field. |
SetAttachValidationErrorEventTriggers(DependencyObject, bool)
Sets the AttachValidationErrorEventTriggers property. This property is used to control which objects will have ValidationErrorEventTriggers added to their System.Windows.Interactivity.Interaction.Triggers collection. This done with an attached behavior because the System.Windows.Interactivity.Interaction.Triggers collection cannot be modified directly in a style.
Declaration
public static void SetAttachValidationErrorEventTriggers(DependencyObject element, bool value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
bool | value | The source field to set. |
SetClearOnSave(DependencyObject, bool)
Sets the ClearOnSave property.
Declaration
public static void SetClearOnSave(DependencyObject element, bool value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
bool | value | The field on which valid values depend. |
SetField(DependencyObject, FieldViewModel)
Sets the Field property.
Declaration
public static void SetField(DependencyObject obj, FieldViewModel value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | The dependency object. |
FieldViewModel | value | The source field to set. |
SetIsFieldDisplayed(DependencyObject, bool)
Sets the IsFieldDisplayed property. This property is used by the BugEditor in order to track which fields from the real bug DB have been displayed on the BugAnywhere bug editor form.
Declaration
public static void SetIsFieldDisplayed(DependencyObject element, bool value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
bool | value | The source field to set. |
SetSourceField(DependencyObject, string)
Sets the SourceField property.
Declaration
public static void SetSourceField(DependencyObject element, string value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The dependency object. |
string | value | The source field to set. |