This project is read-only.

Slide.Show 2 - Hide ToggleEmbedViewButton

May 21, 2009 at 6:14 AM

I have set the EmbedViewer Enabled="false" and the ToggleEmbedVieweButton Enabled="false", but the button still shows. What did I do wrong? Any help is greatly appreciated.

Thanks in advance.


May 26, 2009 at 8:04 PM

I got the same problem... Please help

Jun 17, 2009 at 6:40 AM
Edited Jun 17, 2009 at 10:58 AM

I wanted to do exactly the same thing and had trouble doing it using the XML configuration.  However, with the help of this post, I was able to very easily create a new theme that disabled the embedviewer...

Just copy the .cs file in the Configuration folder for the theme you want to mimic and then change the appropriate settings in the regions you want to change (for example, set Enabled = false in the ToggleEmbedViewButtonOptions section and in the EmbedViewer section).  Then open up App.xaml.cs and add your new theme to the case statement in InstantiateConfigurationProvider.  Recompile SlideShow, and copy the new Vertigo.SlideShow.xap file from the ClientBin to your web site.

Jun 17, 2009 at 8:14 AM

Brilliant. It worked like a charm. Thanks a million.

Jul 7, 2009 at 8:21 PM

FYI, the XML Configuration is broken in the original release.  See this discussion thread for details:

The good news is that it has been fixed in change set 25804. Note that the change set includes additional enhancements and bug fixes as well.

A new XML configuration sample has been added in change set 25845 that demonstrates how to use an xml configuration file to provide simple overrides of the default Light Theme:

A new custom theme is no longer necessary for simple modifications like the one described in this discussion thread.  There are times when it may still be useful though...