DeviceChanged Event

The DeviceChanged event is fired whenever there is a change from one device size to another.

In this example, a different layout is applied based on the device:

Evtroutine Handling(#Sys_Web.DeviceChanged)

   Case (#Sys_Web.Device)

   When (= Desktop)

      #Com_owner.Layout <= #LayoutDesktop

   When (= Mobile)

      #Com_owner.Layout <= #LayoutMobile

   When (= Tablet)

      #Com_owner.Layout <= #LayoutTablet

   Endcase

Endroutine