I'm seeing an odd behavior I can't explain. I am using a 3rd party control, and while it's possible it's an issue with that control, I wanted to inquire here to see if anyone has experienced similar behavior in other instances (unrelated to
my particular 3rd party control).
I created a UserControl, comprising a ComponentONE chart and several buttons. When the UserControl is given a data source (for the chart), it programmatically creates a ContextMenu that allows the user to configure the Y view extent for each of the
data series provided in the data source. After it's created, it's set as the ContextMenu for the chart. The UserControl is used inside a tab on the app's main window, and is also plunked directly inside another window that can be brought up.
The UserControl defines a RoutedCommand - let's say FooCmd. When the MenuItems for the context menu are created, their Command properties are set to FooCmd. Also, a CommandBinding in the UserControl associates FooCmdCanExecute() and FooCmdExecuted()
in the control class with the command.
The buttons in the UserControl are for data navigation - e.g. , there's one that moves the chart's "viewport" to the beginning of the data, and one for the "end". The click handlers are not complex - essentially, they just
View Complete Post