Posted 14 years ago
by Crile Carvey
Version: 10.2.0533
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
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]
<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]