Posted 4 March 2024, 2:49 am EST
Hi Teja,
As per our understanding of your use-case, you want to prevent any action when keyboard’s left or right arrow key is pressed in C1DockControl. In order to achieve this requirement, you can handle C1DockControl’s PreviewKeyDown event as shown in the following code snippet:
private void dockControl_PreviewKeyDown(object sender, KeyEventArgs e)
{
if(e.Key == Key.Left || e.Key == Key.Right)
{
e.Handled = true;
}
}
Refer DockKeyDisable.zip for implementation.
In case your requirement differs from our understanding, please provide us with more details regarding the same.
Thanks & Regards,
Aastha