This is a migrated thread and some comments may be shown as answers.

How to expand RadMap to full screen

1 Answer 69 Views
Map
This is a migrated thread and some comments may be shown as answers.
Shweta
Top achievements
Rank 1
Shweta asked on 15 Jun 2011, 06:37 AM
Hi ,

Can you let me now how to expand radmap to full screen on butotn click.


Regards,
Shweta

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 17 Jun 2011, 09:05 AM
Hello Shweta,

You can switch the application to full screen mode using standard Silverlight approach.
The sample code is below.
<UserControl x:Class="RadMapTest.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadMap x:Name="radMap"
                        Center="40,-100">
            <telerik:RadMap.Provider>
                <telerik:OpenStreetMapProvider />
            </telerik:RadMap.Provider>
        </telerik:RadMap>
        <Button VerticalAlignment="Top" HorizontalAlignment="Right" Width="150" Height="25" Content="Toggle Full Screen" Click="ToggleFullScreen" />
    </Grid>
</UserControl>
private void ToggleFullScreen(object sender, RoutedEventArgs e)
{
    Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen;
}

All the best,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
Shweta
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or