Comments (2)
Reading & References
- register an access key using
AccessKeyManager
in code behind- Simplest approach?
- Using
Target
to associate aLabel
's access key with another control- Simplest approach?
- Be aware:
- if the label is not visible, the access key will not work
- if you set the label
Width
to zero (0), the access key will work & the label can remain hidden
- MSDN: Creating custom controls with an access key
- StackOverflow: Keyboard shortcuts in WPF
- One comment shows how to use attached properties.
- StackOverflow: how can i focus textbox in xaml with keybinding?
- another attached property example
from weevil.
Implementation Details
Calling AccessKeyManager.Register("s", controlName);
as suggested by the StackOverflow post from the code behind does not appear to work.
The Solution
This seems to work:
<Label
Target="{Binding ElementName=InclusiveFilter}"
Content="AccessKey hack for: _Inclusive ComboBox"
Width="0"/>
Where:
Width=0
: hides the control, but keeps it active.Visbile=Hidden
: if you do this the access key won't work
from weevil.
Related Issues (20)
- The software shall support filtering using 1 or more expressions delimited by a logical OR operator (`||`).
- When the filter results are displayed, the software shall display the number of matching records in the status bar.
- While editing a filter, when the user stops typing, the software shall automatically apply the filter within 3 seconds.
- The software shall have an option to toggle between `plain text` or a `regular expression` (default) filtering.
- Requirements
- The software shall have an option to turn `show debug` records on (default) or off.
- The software shall have an option to turn `show trace` records on (default) or off.
- The software shall allow the user to mark a record as pinned.
- The software shall have an option to turn `persistent pins` on (default) or off.
- While the `show debug` option is off, when filtering, the software will hide records with a `debug` severity.
- While the `show trace` option is off, when filtering, the software will hide records with a `trace` severity.
- While the `case sensitive` option is on, when filtering, the software shall differentiate between upper and lower case characters.
- As an analyst, Weevil should support a _disk mode_, so that very large files can be opened.
- While in `regular expression` mode, the software shall interpret text filters as regular expressions.
- While in `plain text` mode, the software shall interpret text filters as literal strings.
- The software shall treat `#` prefixed expressions as an alias for named text filters.
- When using the `#IpAddress` alias, the software shall identify records that contain a computer IP address.
- The software shall treat `@` prefixed expressions as monikers for built-in codified filters.
- Upgrade `MaterialDesignToolkit` to the new v2 library HOT 2
- As an analyst, I want to toggle filters on/off, in order to make the filtering process faster.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weevil.