Skip to content

Panorama to Hub considerations

ldfallas edited this page Oct 7, 2015 · 1 revision

The Panorama control ( ) acts as a container control. For example:

          <TextBlock x:Name="myText" />

The recommended control ( ) for converting the Panorama control to UWP is the Hub control ( ). The current conversion of this control is the following:

            <TextBlock x:Name="myText" />

However this control behaves differently from Panorama in the way it treats the child elements of HubSections. HubSections uses a DataTemplate which doesn't allow to use names x:Name to make child element accessible to code behind or animation targets.

There are several ways to solve this problem:

More information here


Writing mappings

Code Mapping Actions

Code Mapping Conditions

XAML mapping actions

XAML mapping conditions


Clone this wiki locally
You can’t perform that action at this time.