This question is locked. New answers and comments are not allowed.
| using System; |
| using System.Windows.Controls; |
| namespace EventsHandling |
| { |
| public partial class Page : UserControl |
| { |
| public Page() |
| { |
| InitializeComponent(); |
| Telerik.Windows.Controls.SelectionChangedEventHandler(); |
| RadComoBox.SelectionChanged += new EventHandler<SelectionChangedEventArgs>(radComboBox_SelectionChanged); |
| } |
| void radComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) |
| { |
| message.Text = String.Format("{0} have been selected.", RadComoBox.Text); |
| } |
| } |
| } |
| ) |
Hi,
I am trying to let user select the item from combox and print out the combox item text.
So by doing that, I am subscribe the selection changed event to eventhandler.....
But it gives me the following error:
Error 1 Cannot implicitly convert type 'System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>' to 'Telerik.Windows.Controls.SelectionChangedEventHandler' C:\[Visual Studio 2008 Projects]\RadControlsSilverlightApplication1\RadControlsSilverlightApplication1\MainPage.xaml.cs 16 44 RadControlsSilverlightApplication1
And the above is my code...
I tried to follows the example for calendar from RadControls for Silverlight Document to attach the event handler but it gives the same error...
I am using:
Visual Studio 2008
Silverlight 3
RadControls for Silverlight Q3 2009 SP2
Windows XP Tablet PC Edition
Thanks