Hi!
I have a page where I show a map. The page has a header and sometimes it shows another panel with the place adress (changing visibility of the adress panel to “collapsed”)
When the adress panel is shown (uxPageMapHidePanelAdress = false) then the map panel does not fit the window (iPhone) as show on the picture:
Ux:
<DockPanel>
<StackPanel Dock="Top">
<Panel Background="#595959" Alignment="VerticalCenter" Height="40">
<Text Value="{uxPageMapHeader}" TextAlignment="Center" Alignment="VerticalCenter" TextColor="#ffffff"/>
</Panel>
<StackPanel ux:Name="pageMapPanelAdress" Background="#595959">
<Text Value="{uxPageMapAdress}" Margin="0,6,0,0" FontSize="16" TextAlignment="Center" TextWrapping="Wrap" TextColor="#ffffff"/>
<Text Value="{uxPageMapCity}" Margin="0,2,0,6" FontSize="16" TextAlignment="Center" TextWrapping="Wrap" TextColor="#ffffff"/>
</StackPanel>
<WhileTrue Value="{uxPageMapHidePanelAdress}">
<Change pageMapPanelAdress.Visibility="Collapsed"/>
</WhileTrue>
</StackPanel>
<Panel>
<NativeViewHost>
<MapView ux:Name="mapViewPlace" Latitude="{uxPageMapLat}" Longitude="{uxPageMapLng}" ShowMyLocation="{uxPageMapShowOwnLocation}" Zoom="{uxPageMapZoom}">
<Each Items="{uxPageMapMapMarkers}">
<MapMarker Latitude="{latitude}" Longitude="{longitude}" Label="{label}" />
</Each>
</MapView>
</NativeViewHost>
</Panel>
</DockPanel>
result when the adress panel is shown: