/
Building Custom Devices

Building Custom Devices

This is a placeholder for notes for device builders.


ItemNote
Device UI ConstructorTo 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>

VersioningPlease 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.

Related content

Use the HL7 Inbound Device's "MessageReceived" Event Hook
Use the HL7 Inbound Device's "MessageReceived" Event Hook
Read with this
Scheduling
Scheduling
More like this
Custom Code device usage
Custom Code device usage
Read with this
Object Registry Service (Version invariant configuration sharing)
Object Registry Service (Version invariant configuration sharing)
More like this
Developer Releases
Developer Releases
More like this
Calling server-side device methods from the client-hosted device UI
Calling server-side device methods from the client-hosted device UI
More like this