Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5930183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:31:18+00:00 2026-05-22T14:31:18+00:00

Cant assign SHIFT+Delete KeyGesture to DevExpress bar item in WPF. Is there any restriction

  • 0

Cant assign SHIFT+Delete KeyGesture to DevExpress bar item in WPF. Is there any restriction on that or am i doing it wrongly?
<dxb:BarButtonItem
x:Name="btnDelete"
Command="{Binding BtnDelete_Command}"
CommandParameter="{Binding ElementName=view}"
KeyGesture="SHIFT+Delete"
Content="Delete" />

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:31:18+00:00Added an answer on May 22, 2026 at 2:31 pm

    Here is the code I tried:

        <dxb:BarManager>
            <dxb:BarManager.Items>
                <dxb:BarButtonItem x:Name="btnDelete" Command="{Binding BtnDelete_Command}" CommandParameter="{Binding ElementName=view}" KeyGesture="SHIFT+Delete" Content="Delete" />
            </dxb:BarManager.Items>
            <dxb:BarManager.Bars>
                <dxb:Bar>
                    <dxb:Bar.ItemLinks>
                        <dxb:BarButtonItemLink BarItemName="btnDelete"/>
                    </dxb:Bar.ItemLinks>
                </dxb:Bar>
            </dxb:BarManager.Bars>
            <StackPanel>
                <Button Content="sdgsdg" />
                <TextBox x:Name="view"/>
            </StackPanel>
        </dxb:BarManager>
    
    
    
    public partial class MainWindow : Window {
        public ICommand BtnDelete_Command { get; set; }
        public MainWindow() {
            BtnDelete_Command = new MyCommand();
            DataContext = this;
            InitializeComponent();
        }
    }
    
    public class MyCommand : ICommand {
        public bool CanExecute(object parameter) {
            return true;
        }
    
        public event EventHandler CanExecuteChanged {
            add { CommandManager.RequerySuggested += value; }
            remove { CommandManager.RequerySuggested -= value; }
        }
    
        public void Execute(object parameter) {
            MessageBox.Show(parameter.GetType().ToString());
        }
    }
    

    It works properly here. If the editor is not focused, the command is executed. If the editor is focused, it processed this key combination itself and thus command isn’t executed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting 'Can't mass-assign protected attribute' error when trying to save a form that
I cant figure out how to start a method to delete a specific entry
i am currently trying to assign each character that i get from a file
Basicly the problem. very strange problem. i cant assign a new value to a
I need php 5.3 but I need windows also. I cant run any project
is there any way i can assigned an imageurl to html img tag from
I've tryed mylyn but i cant find that feature, if anyone have test mantis
I just dont get it.. this happens here and there but I cant find
I can't assign RED5_HOME=/opt/red5-1.0.0 since variable appears to empty. Probably some characters in variable
My form is generating a bunch of warnings - WARNING: Can't mass-assign these protected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.