I used example in FeatureBrowser to create changing theme function in Ribbon. But I received errors about : OnThemeSelected when use Click="OnThemeSelected".
How can I define it by VB.NET ?? I tried but it's not successful.
Thanks for support
Hello,
I have been looking into your issue and assume you are talking about the “Setting the Theme” sample in the feature browser. I had no trouble doing this on my side.
There is one differnece in VB you can't use one handler for all events as described here: http://msdn.microsoft.com/en-us/library/fw640fe8(VS.90).aspx
If that is not the issue the first thing that comes to mind is that you could have copied the xaml and forgotten the code behind event handler:
private void OnThemeSelected(object sender, RoutedEventArgs e)
{
RadioButtonTool tool = e.Source as RadioButtonTool;
if (tool != null)
this.xamRibbon.Theme = tool.Tag as string;
}
Another thing that could cause this is the Tag properties which are set to hold the full theme name and are used to in the handler.
Please double check that and let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support