Since CodePlex added the SL macro to its Wiki Markup, I was looking around for a nice compact way to represent images in my documentation. Your excellent contribution fits that bill well. However, there are two issues (related) which are problematic when using your control with the limited macro. First, the macro does not allow any parameters (initparams) to be passed. Second, the enablehtmlaccess is set to 'false' (I assume by default since I host the xap control on my site and it would be cross-dom). The second issue causes the app to crash in two places (Navigation.cs StartSlideshow and TransitionManager.cs Click anonymous delegate).
The first issue with initparams is only slightly a problem since the code defaults nicely to LightTheme and XmlDataProvider (with ../data.xml). The second is more problematic as it causes the app to crash. I downloaded the source code and made the following two changes.
- Default to the XmlConfigurationProvider instead of the LightTheme configuration provider so that I can provide a Configuration.xml at the default location and retain control without relying on initparams.
- Check for System.Windows.Browser.HtmlPage.IsEnabled prior to accessing HTML bridge features (in afforementioned Navigation.cs and TransitionManager.cs
I can provide patches if anyone wants them.
Brian