Removing Embed Navigation

Oct 28, 2008 at 4:19 AM
Hi,

Has anyone successfully removed the EmbedViewer button from the navation bar?

thanks,
-Trish
Coordinator
Oct 29, 2008 at 2:43 PM
Hi Trish

If you are using the XmlConfigurationProvider you can hide the EmbedViewer by setting the "ToggleEmbedViewButton"'s enabled property to false. Let me know if this helps you out.

Cheers,
Liam
Oct 31, 2008 at 4:49 AM
Liam,

I've tried using the module to toggle the buttons, but have not been able to.  Here's my configuration.xml:
<configuration background="Black">
  <module type="SlideViewer" >
    <option name="Enabled" value="true" />
  </module>
  <module type="SlideDescription" >
    <option name="Enabled" value="true" />
  </module>
  <module type="SlideNavigation">
    <option name="Enabled" value="true" />
  </module>
  <module type="NavigationTray" />
    <option name="Enabled" value="true" />
  </module>
  <module name="EmbedViewer">
    <option name="Enabled" value="false" />
  </module>
  <module name="ToggleAlbumViewButton">
    <option name="Enabled" value="false" />
  </module>
  <module name="ToggleEmbedViewButton">
    <option name="Enabled" value="false" />
  </module>
  <module name="AlbumViewer">
    <option name="Enabled" value="false" />
  </module>
</configuration>
Nov 1, 2008 at 6:13 PM
I'm using yoru provided themes and setting the enabled parameter doesn't seem to work.

thanks!
-Trish
Coordinator
Nov 5, 2008 at 3:55 PM
can you post your <object/> tag please?
Nov 5, 2008 at 4:04 PM
Her you go Liam,

 

<object type="application/x-silverlight-2" data="data:application/x-silverlight-2," width="640" height="480">

 

 

<param name="background" value="black" />

 

 

<param name="source" value="Vertigo.SlideShow.xap" />

 

 

<param name="initParams" value="ConfigurationProvider=LightTheme,DataProvider=XmlDataProvider;Path=test.xml"/>

 

 

<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>

 

 

</object>

 

Nov 27, 2008 at 2:10 AM

You are still using the LightTheme configuration in the line below
<param name="initParams" value="ConfigurationProvider=LightTheme,DataProvider=XmlDataProvider;Path=test.xml"/>

In order to customize the interface you need to use a custom ConfigurationProvider as shown below where configuration.xml is your custom configuration file.  This path is relative to the .xap file.
<param name="initParams" value="ConfigurationProvider=XmlConfigurationProvider;Path=configuration.xml,DataProvider=XmlDataProvider;Path=Data.xml" />

Your configuration.xml file will need to have the following.

<?xml version="1.0" encoding="utf-8" ?>
<configuration background="Silver">
    <module name="ToggleEmbedViewButton">
        <option name="Enabled" value="false" />
    </module>
</configuration>

You should also take a look at discussion:39286 because you'll need to make some code changes in order to get the custom configuration to work.