Select to view content in your preferred language

Silverlight Viewer Map Content

4241
5
03-12-2013 01:09 AM
by Anonymous User
Not applicable
Original User: aasmundolav

Hi,

Im trying to figure out if it is possible to have the MapContent turned on by default.
I know the Black Box has the MapContent turned on by default, but it would be great if
it was possbile to set this property for the other templates aswell.

Best Regards,
�?smund
0 Kudos
5 Replies
by Anonymous User
Not applicable
Original User: jungf

Hi �?smund,
it is possible but it involves some adjustements in layout file.
For particular application navigate to ..\<apps_folder>\<app_name>\Config\Layouts\ in file system on your web server and edit appropriate file, depending on which template you want to change. I tried Glass.xaml and it worked. I recommend using some smarter text editor than Notepad.

If you want the table of contents visible on startup do the following changes in template code:

  1. Find Border with Name="SidePanelBorder" and set its Opacity="1"

  2. Navigate little below and find sdk:TabControl with x:Name="SidePanelContainer" and set SelectedIndex="2"

  3. In this same sdk:TabControl set Visibility="Visible"

  4. Last adjustment is setting Opacity="1" of Button with x:Name="SidePanelCloseButton"

  5. Save your edits and refresh application, Map Contents tab is visible on startup


Hope this helps.

Filip

BTW, if you want to change be permanent for all aplications that you will create in future you have to change layout file in application builder folder (..\<application_builder_folder>\Templates\Default\Config\Layouts\)
GilbertLasnier
Regular Contributor
I follow your step carrefulley and it does not work ,I use Arcgis silverlight 3.1 do you think it s working for that version???
  Opacity="1"
                    Visibility="{Binding ElementName=SidePanelContainer, Path=Visibility}"
                    Name="SidePanelBorder">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Border Style="{StaticResource GlassyBorder_Top}"
                    Grid.RowSpan="2" Margin="0" />
                <sdk:TabControl x:Name="SidePanelContainer"
                               TabStripPlacement="Top"
                               BorderBrush="Transparent"
                               Background="{StaticResource BackgroundGradientBrush}"
                               Style="{StaticResource SidePanelTabControlStyle}" SelectedIndex="2"
                               Margin="5" Visibility="Visible"
                               >
and i change the other thing you tell save refresh the table of content IS NOT THERE AT THE OPPENING

HTTP://GIS.ICAO.INT/ICAOAOPEDIT
0 Kudos
by Anonymous User
Not applicable
Original User: jungf

Hi Gilbert,
this approach works for me in version 3.1 (exactly 3.1.0.110), and for Glass layout, but I do not think that is the matter.
If you can post the code for your your layout or upload the file, I believe I will be able to found out what is wrong.
Regards.
Filip
0 Kudos
GilbertLasnier
Regular Contributor
Hi Gilbert,
this approach works for me in version 3.1 (exactly 3.1.0.110), and for Glass layout, but I do not think that is the matter.
If you can post the code for your your layout or upload the file, I believe I will be able to found out what is wrong.
Regards.
Filip


Thanks for your anwser i try again, maybe i must change in the builder and its will be good for all my new app with silverlight
0 Kudos
by Anonymous User
Not applicable
Original User: Lawrence1GIS

Thanks..that worked..

"Knowledge is Power"
0 Kudos