Number box enhancements #686
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a couple enhancements to the
NumberBox
controlYou can access this control theme by setting
Theme={StaticResource CompactNumberBoxStyle}
on any NumberBox you want to display like this.NOTE: This is only for the NumberBox control. I have no plans to adjust NumericUpDown with something similar.
InnerLeftContent
property toNumberBox
. This property was copied over TextBox. Can be useful if you want to add a header or other indicator for the value of the NumberBox. It works with both the normal and compact themes. Because the right side of the NumberBox already has content, I'm not addingInnerRightContent
. Note that InnerLeftContent is based on LTR layout, adjusting the flow layout will flip this to show on the right side.I've also removed the 2 unused properties on NumberBox
SelectionFlyout
andTextReadingOrder
.