Skip to content

Instantly share code, notes, and snippets.

@PilotBob
Created July 15, 2010 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilotBob/477501 to your computer and use it in GitHub Desktop.
Save PilotBob/477501 to your computer and use it in GitHub Desktop.
Theme.SetApplicationThemeUri(Application.Current, new Uri(@"System.Windows.Controls.Theming.ShinyBlue.xaml"));
also tried:
Theme.SetApplicationThemeUri(Application.Current, new Uri(@"AmsiSL;System.Windows.Controls.Theming.ShinyBlue.xaml"));
@PilotBob
Copy link
Author

I get the following error:

Message: Unhandled Error in Silverlight Application Invalid URI: The format of the URI could not be determined. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at AmsiSL.SnapIns.button1_Click(Object sender, RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Line: 1
Char: 1
Code: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment