Xamarin.Forms Feature Configuration

Autogenerated by MFractor v3.5.13

Android Custom Renderer Code Snippets

Configuration Id: com.mfractor.configuration.forms.android_custom_renderers

Groups the Android specific custom renderer code snippets for pages, layouts, controls and view cells into a single configuration point. When customising the code snippets for Android, this configuration should be changed in the Android project rather than the PCL/Shared Project/netstandard library.

Configurable Properties

Name Type Defaults To Description
PageRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the page that this custom renderer is for.
  • control_name: The name of the page that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised pages.
LayoutRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the layout that this custom renderer is for.
  • control_name: The name of the layout that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised layouts.
ViewRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the control that this custom renderer is for.
  • control_name: The name of the control that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised controls.
CellRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the control that this custom renderer is for.
  • control_name: The name of the control that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised cells in ListViews.
RenderersFolder System.String Renderers What is the folder path that new renderers should be placed into?
RenderersNamespace System.String .Renderers What is the fully qualifed namespace that new renderers should be placed into? Prepend the namespace name with a dot to make it relative to the projects default namespace.

Behaviors Configuration

Configuration Id: com.mfractor.configuration.forms.behaviors

Groups all configuration settings related to Xamarin.Forms.Behavior's into a single place.

Configurable Properties

Name Type Defaults To Description
BehaviorsFolder System.String Behaviors The default folder to place new behaviors into.
BehaviorsNamespace System.String .Behaviors The default names that new behaviors will be placed into. Prepending the namespace with a . will cause the namespace to be appended to the projects default namespace.

Event To Command Behavior Configuration

Configuration Id: com.mfractor.configuration.forms.event_to_command_behavior

Groups all configuration settings and code snippets for the Event to Command code generation feature suite.

Configurable Properties

Name Type Defaults To Description
EventToCommandBehaviorSnippet Code Snippet

Arguments:
  • name: The name of the event to command behaviour
  • namespace: The namespace that encapsulates the event to command behaviour
View Code Snippet The code snippet to use for the event to command behavior.
SelectedItemEventArgsToSelectedItemConverterSnippet Code Snippet

Arguments:
  • name: The name of the converter.
  • namespace: The namespace that encapsulates the converter
View Code Snippet The code snippet to use for the SelectedItemEventArgsToSelectedItemConverter.
EventToCommandBehaviorName System.String EventToCommandBehavior The class name of the event to command behavior.
SelectedItemEventArgsToSelectedItemConverterName System.String SelectedItemEventArgsToSelectedItemConverter The class name of the event to command behavior class.

GTK Custom Renderer Code Snippets

Configuration Id: com.mfractor.configuration.forms.gtk_custom_renderers

Groups the GTK specific custom renderer code snippets for pages, layouts, controls and view cells into a single configuration point. When customising the code snippets for GTK, this configuration should be changed in the GTK project rather than the PCL/Shared Project/netstandard library.

Configurable Properties

Name Type Defaults To Description
Snippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the page that this custom renderer is for.
  • control_name: The name of the page that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for GTK custom renderers pages.
RenderersFolder System.String Renderers What is the folder path that new renderers should be placed into?
RenderersNamespace System.String .Renderers What is the fully qualifed namespace that new renderers should be placed into? Prepend the namespace name with a dot to make it relative to the projects default namespace.

IOS Custom Renderer Code Snippets

Configuration Id: com.mfractor.configuration.forms.ios_custom_renderers

Groups the iOS specific custom renderer code snippets for pages, layouts, controls and view cells into a single configuration point. When customising the code snippets for iOS, this configuration should be changed in the iOS project rather than the PCL/Shared Project/netstandard library.

Configurable Properties

Name Type Defaults To Description
PageRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the page that this custom renderer is for.
  • control_name: The name of the page that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised pages.
LayoutRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the layout that this custom renderer is for.
  • control_name: The name of the layou that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised layouts.
ViewRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the control that this custom renderer is for.
  • control_name: The name of the control that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised controls.
CellRendererSnippet Code Snippet

Arguments:
  • control_type: The fully qualified type of the control that this custom renderer is for.
  • control_name: The name of the control that this custom renderer is for.
  • namespace: The namespace that the custom renderer will be placed into.
  • renderer_name: The name of the new custom renderer.
  • renderer_control: The name of the base control type. For example, if your control is MyCustomLabel that extends a Label, renderer_control will be Label.
  • base_type: The fully qualified type of the renderers base type.
View Code Snippet The code snippet to use for customised cells in ListViews.
RenderersFolder System.String Renderers What is the folder path that new renderers should be placed into?
RenderersNamespace System.String .Renderers What is the fully qualifed namespace that new renderers should be placed into? Prepend the namespace name with a dot to make it relative to the projects default namespace.

MVVM Resolution Settings

Configuration Id: com.mfractor.configuration.forms.mvvm_resolution

The MVVM resolution settings can be used to specify the project that your views or view models sit within. If you prefer to separate your views and view models into separate projects, these settings enable MFractor to resolve the MVVM relationship across project boundaries.

Configurable Properties

Name Type Defaults To Description
ViewsProjectName System.String null If the apps XAML views and view models are in separate projects, what is the name of project that contains the XAML views?
ViewModelsProjectName System.String null If the apps XAML views and view models are in separate projects, what is the name of project that contains the ViewModels?

Value Conversion Settings

Configuration Id: com.mfractor.configuration.forms.value_conversions

A collection of common settings to use for value converters.

Configurable Properties

Name Type Defaults To Description
Namespace System.String .Converters The namespace to place value conversion code inside. When empty, new value conversion code will be placed under the projects default namespace. Place a single '.' before the namespace name to make it relative to the projects default namespace.
Folder System.String Converters The folder to place value conversion code inside. When empty, new value conversion code will be placed inside the proejcts root folder.
DefaultConverterXmlns System.String converters The namespace name of the xmlns import statement for the newly created value converter