- Define the command as a static RoutedUICommand and set the keyboard / mouse gestures I wanted on the command's InputGestures collection.
- Use said command in MenuItems, Buttons etc.
- Automatically have keyboard / mouse bindings setup everywhere (including the nice shortcut text on menu items in context menus / menu bar menus)
Showing posts with label command. Show all posts
Showing posts with label command. Show all posts
Wednesday, February 06, 2013
Using key gestures with parameterized Commands in WPF is "broken"
Ok, it's not actually broken, it just doesn't work the way I wanted (or expected). Apparently, there's a very good article on why they don't work the way I expected. To be clear, the way I expected them to work was:
Monday, March 31, 2008
Determining which version of Ubuntu you're running
At our company, we use Ubuntu to run our servers. Sure, there's other distributions with potentially better performance, but none so easy to setup, and that was the deciding factor in choosing which distro was going to run our systems because I had to set it up, and since I'm both developer and system administrator (*very* small company), I really don't have time to fuck around and I need to make things as easy on myself as possible. To that end, I've decided to start writing tutorials on everything I learn how to do, and I needed to make sure I note which version of Ubuntu / Linux I'm using. To that end, in order to determine which version of Ubuntu you're running, run this :
I learned of this little trick from here.
*Edit (2008-10-29)*
A much better command for determining the current Ubuntu version you're running :
cat /etc/issue
I learned of this little trick from here.
*Edit (2008-10-29)*
A much better command for determining the current Ubuntu version you're running :
lsb_release -a
Subscribe to:
Posts (Atom)