Map Layer Fullscreen

3709
4
Jump to solution
03-16-2015 06:53 PM
JeffersonLegaspi
New Contributor II

How can i set map control fullscreen mode or stretch under bottomappbar control? Here's the screenshot. Thank you.Capture.PNG

0 Kudos
1 Solution

Accepted Solutions
AnttiKajanus1
Regular Contributor II

New try.

Check if this provides you the behavior that you want: (note that it also changes the statusbar on the top of the screen)

transparent-appbar.png

Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().
     SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);

Put it in App.cs OnLaunched method before the window is activated.

View solution in original post

4 Replies
AnttiKajanus1
Regular Contributor II

You can define bacground with alpha value.

transparent-appbar.png

<Page.BottomAppBar>
    <CommandBar Background="#66000000" ClosedDisplayMode="Minimal">
       <AppBarButton Icon="Accept" Label="Accept"></AppBarButton>
       <CommandBar.SecondaryCommands>
            <AppBarButton Icon="Accept" Label="Accept" ></AppBarButton>
            <AppBarButton Icon="Accept" Label="Accept" ></AppBarButton>
       </CommandBar.SecondaryCommands>
     </CommandBar>
</Page.BottomAppBar>

<Grid>
  <esri:MapView x:Name="MyMapView"
                      LayerLoaded="MyMapView_LayerLoaded">
       <esri:Map>
            <layers:ArcGISTiledMapServiceLayer ID="Basemap"
            ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
       </esri:Map>
  </esri:MapView>
</Grid>
0 Kudos
AnttiKajanus1
Regular Contributor II

Never mind me, would help if I actually looked what was asked...

0 Kudos
AnttiKajanus1
Regular Contributor II

New try.

Check if this provides you the behavior that you want: (note that it also changes the statusbar on the top of the screen)

transparent-appbar.png

Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().
     SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);

Put it in App.cs OnLaunched method before the window is activated.

JeffersonLegaspi
New Contributor II

Thank you very much. It's now working.

0 Kudos