-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextAnnotations - TabRun #7678
Comments
Can you please clarify the problem you are solving (not "I want this" but "user is trying to do X and I propose solving it via Y")? |
Modified the description to be more explicit |
To be clear, number of spaces per tab could only be applied when editing the text. At display time it must be fixed - each user couldn't independently decide how many spaces they want to see. |
Exactly, yes. I assume it would similar to other style attributes like Truthfully, I can't see a user doing this often, but instead of hardcoding '4', we could treat it like |
Is your feature request related to a problem? Please describe.
I would like to be able to insert tabs into a TextBlock. It's just whitespace, so I'm thinking something similar to
LineBreakRun
that adds whitespace for tabbing.Update*
Example use case:
User hits the
tab
key to indent the beginning of a paragraph. It should count as one character. When the user hitsbackspace
, the whole tab should be deleted. I propose adding a new run calledTabRun
to act both as a single unit for this action and as a way of persisting this information.Describe the solution you'd like
A new type of run should be created called
TabRun
StyleOverrides
should include aspaces
property to specify how many spaces make up a tab. Usually 2 or 4 spaces. Default would be 4.stringify
method, users should be able to specify if they want their tabs to be computed with spaces or as a tab ("\t"
) character.The text was updated successfully, but these errors were encountered: