DateTimeEditBox: ValueChanged="DateTimeEditBox_ValueChanged"

Editors for WPF Forum

Posted 8 years ago by Crile Carvey
Version: 10.2.0533
Platform: Silverlight Controls
Environment: Windows 7 (64-bit)
Avatar
This code raises an error ("An unknown error occurred while trying to navigate to event handler") in VS2010 when right-clicking on "DateTimeEditBox_ValueChanged" and choosing "navigate to event handler"

<ActiproEditors:DateTimeEditBox Grid.Row="1" Grid.Column="1"
CheckBoxVisibility="Collapsed"
SpinnerVisibility="Visible"
Margin="0,7,0,0"
HorizontalAlignment="Left"
EditableParts="Date"
Value ="{Binding ElementName=WhatsImportantForUser1, Path=StopDate}"
Format="D"
ValueChanged="DateTimeEditBox_ValueChanged"
/>

In addition, if I manually add the event handler in code (StopDateEditor.ValueChanged += new EventHandler<ActiproSoftware.Windows.PropertyChangedRoutedEventArgs<DateTime?>>(DateEditor_ValueChanged);), and then manually paste (ValueChanged="DateEditor_ValueChanged") into the XAML, it fails at run time with a binding error.

Something is wrong... we have a workaround by using code, but it is uglier than straight declarative XMAL.

Crile



[Modified at 12/28/2010 11:43 AM]

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Crile,

This is a known issue with the Visual Studio designer, which has to do with the use of generic classes/event arguments. We reported this to Microsoft last year, but it appears to have fallen through the cracks. I've made an official connect report here: https://connect.microsoft.com/WPF/feedback/details/633757/xaml-designer-fails-to-add-handler-for-event-that-uses-generic-event-arguments


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 15 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.