mui icon indicating copy to clipboard operation
mui copied to clipboard

Disable predefined 'F5' KeyBinding

Open CriticalCauchy opened this issue 9 years ago • 0 comments

Hi, I just noticed some trouble with the predefined 'F5' KeyBinding in combination with OxyPlot. Refreshing the page via F5 crashes my WPF application. It messes with the binding between the PlotView and the PlotModel in the ViewModel: "This PlotModel is already in use by some other PlotView control."

I tried to disable the KeyBinding like this, but it does nothing. (Putting the code below into MainWindow.xaml does nothing, too.) <UserControl.InputBindings> <KeyBinding Command="ApplicationCommands.NotACommand" Key="F5" /> </UserControl.InputBindings>

On some pages, it helps if i create a new KeyBinding for 'F5' which calls another command. How can I disable the refresh shortcut globally?

CriticalCauchy avatar Jul 28 '16 14:07 CriticalCauchy