Building Custom Devices

Building Custom Devices

This is a placeholder for notes for device builders.

 

Item

Note

Item

Note

Device UI Constructor

To support multiple versions, you should replace the constructor for your device UI (InitializeComponent()) with XamlInitializer.Initialize(this)

Enum Resolving

When using Enums in your device UI, if you use the <ObjectDataProvider>, make sure you use the Type property and not the TypeName property.

<ObjectDataProvider MethodName="GetValues"
                                ObjectType="{x:Type sys:Enum}"
                                x:Key="DateRangesWithCustom">

   <ObjectDataProvider.MethodParameters>
        <x:Type TypeName="share:DateRangesWithCustom" />
   </ObjectDataProvider.MethodParameters>

</ObjectDataProvider>

 <ObjectDataProvider MethodName="GetValues"
                                ObjectType="{x:Type sys:Enum}"
                                x:Key="DateRangesWithCustom">

   <ObjectDataProvider.MethodParameters>
        <x:Type Type="share:DateRangesWithCustom" />
   </ObjectDataProvider.MethodParameters>

</ObjectDataProvider>

Versioning

Please ensure that you change the assembly version when deploying a new build of your device / assemblies. Changing only the file version will not indicated to Connexion that your assemblies have changed.