Good day.
I have a window in which UserControl is implemented
<local:iWeekControl/> In this control there is an element for which you need to specify a double click handler.
<ListBox ItemsSource="{Binding}"> <ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> <EventSetter Event="MouseDoubleClick" Handler="DoubleClickHandler"/> </Style> </ListBox.ItemContainerStyle> // ... </ListBox> It is necessary to make the DoubleClickHandler handler be in the window in which this UserControl is located.
How can this be implemented?
Thank.