Граф коммитов

3207 Коммитов

Автор SHA1 Сообщение Дата
Michael Hawker MSFT (XAML Llama) 5ab106e093
Merge branch 'main' into ryken100/feature-AttachedShadows 2021-08-27 12:32:42 -07:00
msftbot[bot] fe9ac8971a
Implement RichSuggestBox (#3650)
<!-- 🚨 Please Do Not skip any instructions and information mentioned below as they are all required and essential to evaluate and test the PR. By fulfilling all the required information you will be able to reduce the volume of questions and most likely help merge the PR faster 🚨 -->

<!-- 📝 It is preferred if you keep the "☑️ Allow edits by maintainers" checked in the Pull Request Template as it increases collaboration with the Toolkit maintainers by permitting commits to your PR branch (only) created from your fork.  This can let us quickly make fixes for minor typos or forgotten StyleCop issues during review without needing to wait on you doing extra work. Let us help you help us! 🎉 -->


## Fixes #
<!-- Add the relevant issue number after the "#" mentioned above (for ex: Fixes #1234) which will automatically close the issue once the PR is merged. -->
Closes #3649 

<!-- Add a brief overview here of the feature/bug & fix. -->
Implement rich suggest text control as discussed in the issue.

## PR Type
What kind of change does this PR introduce?
<!-- Please uncomment one or more that apply to this PR. -->

<!-- - Bugfix -->
- Feature
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->


## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
None. The control did not exist before this PR.


## What is the new behavior?
<!-- Describe how was this issue resolved or changed? -->
'RichSuggestBox' is now a usable control in the `Microsoft.Toolkit.Uwp.UI.Controls` namespace.


## PR Checklist

Please check if your PR fulfills the following requirements:

- [ ] Tested code with current [supported SDKs](../readme.md#supported)
- [x] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: https://github.com/MicrosoftDocs/WindowsCommunityToolkitDocs/pull/558
- [x] Sample in sample app has been added / updated (for bug fixes / features)
    - [x] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)
- [ ] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/windows-toolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
- [x] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [x] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [x] Contains **NO** breaking changes

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. 
     Please note that breaking changes are likely to be rejected within minor release cycles or held until major versions. -->


## Other information

### Convenient issue tracker

- Limited styling options for tokens. Only text styling options are available.
- Tokens are raw text and not UI elements. UI events (e.g. `UIElement.PointerEntered`) are not available. ~~This makes behaviors like showing flyout when hover mouse over the token impossible.~~
- Tokens are always underlined.
- Tokens cannot adapt to theme change dynamically. They will lose foreground color while having the same background color which will most likely introduce bad contrast.
- Cannot disable spelling check on tokens (token text may have red underline).
- ~~Cannot use Tab to select a suggestion due to conflict with the accessibility feature.~~
- Deleted tokens will be kept in an internal list until cleared programmatically to support Undo and Redo.

### RichEditBox issues

Below are `RichEditBox` related issues encountered during the development of this control.

- Getting `Link` property from a range might change the range.
- Replacing a formatted link at the beginning of the document does not reset the formatting. The replaced text still has the same formatting.
- Setting the `Link` property can sometimes fail but only when the target text is at the beginning of the document.
- There is no event for when text is about to change. `TextChanging` and `SelectionChanging` are invoked after the text has changed.
- Character format foreground color cannot display a range of colors (e.g. #F7FFB3)
2021-08-26 22:13:02 +00:00
msftbot[bot] d9e8845501
Adding control size trigger (#3867)
<!-- 🚨 Please Do Not skip any instructions and information mentioned below as they are all required and essential to evaluate and test the PR. By fulfilling all the required information you will be able to reduce the volume of questions and most likely help merge the PR faster 🚨 -->

<!-- 📝 It is preferred if you keep the "☑️ Allow edits by maintainers" checked in the Pull Request Template as it increases collaboration with the Toolkit maintainers by permitting commits to your PR branch (only) created from your fork.  This can let us quickly make fixes for minor typos or forgotten StyleCop issues during review without needing to wait on you doing extra work. Let us help you help us! 🎉 -->


## Fixes #
<!-- Add the relevant issue number after the "#" mentioned above (for ex: Fixes #1234) which will automatically close the issue once the PR is merged. -->

<!-- Add a brief overview here of the feature/bug & fix. -->
Adding a new visual state trigger which can be triggered based on a the width of a UI element rather than the width of the app's entire window.

## PR Type
What kind of change does this PR introduce?
<!-- Please uncomment one or more that apply to this PR. -->

<!-- - Bugfix -->
 Feature 
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->


## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->


## What is the new behavior?
<!-- Describe how was this issue resolved or changed? -->


## PR Checklist

Please check if your PR fulfills the following requirements:

- [x] Tested code with current [supported SDKs](../readme.md#supported)
- [x] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: https://github.com/MicrosoftDocs/WindowsCommunityToolkitDocs/pull/551<!-- docs PR link -->
- [x] Sample in sample app has been added / updated (for bug fixes / features)
    - [x] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)
- [x] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/windows-toolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
- [x] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [x] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [x] Contains **NO** breaking changes

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. 
     Please note that breaking changes are likely to be rejected within minor release cycles or held until major versions. -->


## Other information
2021-08-26 20:38:53 +00:00
Tung Huynh 3d03ce7b21 dont use ApplicationView when XamlRoot is available 2021-08-25 17:24:55 -07:00
michael-hawker 164eefd5c0 Clean-up ShadowAnimation type and add rest of animatable properties 2021-08-25 11:44:20 -07:00
michael-hawker ca6f772a99 Clean-up and simplify Shadow Animations, add support for animating all shadows 2021-08-25 11:44:19 -07:00
michael-hawker 864791961c Add initial basic animation support for Shadows 2021-08-25 11:44:18 -07:00
michael-hawker 0459a898ad Add initial Composition based AttachedDropShadow support 2021-08-25 11:44:02 -07:00
michael-hawker 2096e5d5ad Fix Border based Example 2021-08-25 11:43:31 -07:00
michael-hawker 4a651dd3d7 Add more samples (though one doesn't work for some reason with raw Border) 2021-08-25 11:43:31 -07:00
michael-hawker 75e53c9116 Rename Shadows.Attached to Effects.Shadow 2021-08-25 11:43:31 -07:00
michael-hawker f48df97bc1 Clean-up some documentation and info about min version to sample app 2021-08-25 11:43:30 -07:00
michael-hawker ed42e41181 Add AttachedShadow Sample
Had to create static Attached Property location
Had to convert Vector3 to string for XAML parsing
Made empty strings return zerod
2021-08-25 11:43:29 -07:00
michael-hawker 72d524cd7a Add Vector3 support for Sample Bindings
Add additional shortcuts/fallbacks for parsing other Vector formats to different types
2021-08-25 11:42:47 -07:00
michael-hawker 863e75c3cc Clean-up out-dated min version warnings on samples as the Toolkit min itself is 1809+ now.
Add Deprecation message we missed to RadialProgressBar control.
2021-08-25 11:42:45 -07:00
michael-hawker bb9dc4bd18 Move DropShadowPanel sample into shared folder and remove backing page for simplification 2021-08-25 11:42:45 -07:00
Rosario Pulella 94dc7bf782
Update winui ref to 2.6.2 2021-08-23 13:39:50 -04:00
Tung Huynh 7b7974b3c6
update doc url for sample
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-23 00:27:51 -07:00
Tung Huynh 2e9b350f50
update code url for sample
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-23 00:26:21 -07:00
Tung Huynh ab1d3b34b5 improve sample icon 2021-08-23 00:21:41 -07:00
Tung Huynh f5a97d4a31 add icon for sample 2021-08-22 22:42:52 -07:00
Tung Huynh 73e5f15b9d update sample code bind 2021-08-20 17:38:28 -07:00
Tung Huynh 3587c40991 SuggestionsRequested -> SuggestionRequested 2021-08-20 16:24:30 -07:00
Tung Huynh c363f627c2 improve clarity for SuggestionChosenEventArgs 2021-08-18 22:57:24 -07:00
Tung Huynh 58a3cde0d0 rename Query -> QueryText everywhere 2021-08-18 22:37:26 -07:00
Tung Huynh 0428550457 TokenHovering -> TokenPointerOver 2021-08-17 23:00:01 -07:00
Tung Huynh 1c1c370aaf TokenHoveringEventArgs to include a PointerPoint object 2021-08-15 13:38:43 -07:00
Tung Huynh 56104c1e04 TokenHovering event repeatedly fire on pointer moved
clean up and polish
2021-08-15 13:38:43 -07:00
Tung Huynh b36c28332a pass ITextCharacterFormat to user instead of using custom RichSuggestTokenFormat 2021-08-15 13:38:42 -07:00
Tung Huynh 7c7c290698 take into account scrollviewer offsets when calculating positions 2021-08-15 13:38:42 -07:00
Tung Huynh 9d66f1a4e1 better way to handle on hovered position 2021-08-15 13:38:42 -07:00
Tung Huynh b150736401 update sample to use TokenHovered 2021-08-15 13:38:42 -07:00
Tung Huynh 2387ba3f53 add more features to RichSuggestBox sample 2021-08-15 13:38:42 -07:00
Tung Huynh 67583c06d9 move to Microsoft.Toolkit.Uwp.UI.Controls.Input 2021-08-15 13:38:41 -07:00
Tung Huynh 275a87e4f8 add sample code 2021-08-15 13:38:41 -07:00
Tung Huynh 0fda83b121 prune duplicate properties and fix flyout placement 2021-08-15 13:38:41 -07:00
Tung Huynh 5f7a8477cb update headers (again) 2021-08-15 13:38:40 -07:00
Tung Huynh 91093cf56e add sample page 2021-08-15 13:38:36 -07:00
Daniel Paulino 738b9507b7 Merge branch 'master' of https://github.com/dpaulino/WindowsCommunityToolkit-1 into feature/control-width-trigger 2021-08-15 08:18:26 -07:00
Michael Hawker MSFT (XAML Llama) 933a1c646a
Merge pull request #4163 from CommunityToolkit/shweaver/token-selection-mode
Added support for limiting max tokens in TokenizingTextBox
2021-08-13 16:08:35 -07:00
Michael Hawker MSFT (XAML Llama) bd7131971e
Merge pull request #4160 from ArchieCoder/feature/KeyDownTriggerBehavior
New behavior KeyDownTriggerBehavior
2021-08-13 15:50:49 -07:00
Darren Batchelor eab041e042 Updated doc URL to more relevant filename 2021-08-13 13:51:47 -07:00
Daniel fd8aee572c
Fixing xbind in sample 2021-08-12 16:33:41 -07:00
Shane Weaver 86cd4d6eb6 Updated Max to Maximum and added token counter 2021-08-12 15:59:02 -07:00
Daniel Paulino cdf48d04be Fixed sample bug 2021-08-11 22:14:08 -07:00
Daniel Paulino a582f346e2 Bug fix 2021-08-11 21:52:40 -07:00
Daniel Paulino b31758da2d Added sample page 2021-08-11 21:35:28 -07:00
Shane Weaver a7bb51b31c Added binding to MaxTokens value in sample 2021-08-09 17:09:25 -07:00
ArchieCoder 3f0df53a80 Fix 2021-08-06 09:05:54 -04:00
ArchieCoder b1905cec8f
Update Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-06 09:02:17 -04:00
ArchieCoder 6c5f8a231c Fixes post code review 2021-08-06 00:21:43 -04:00
Shane Weaver 93ca18ad9d Replaced TokenSelectionMode with MaxTokens property on TokenizingTextBox 2021-08-05 16:32:49 -07:00
Nirmal Guru 43cf51f3ac
Update Markdown files
Fix-up MarkdownLint warnings
2021-08-05 08:19:52 +05:30
Nirmal Guru bc09868947
Format Markdown files
Clean-up and Format with MarkdownLint
2021-08-05 08:19:51 +05:30
Shane Weaver fafbf5b335 Added support for TokenSelectionMode in TokenizingTextBox 2021-08-04 15:19:31 -07:00
ArchieCoder f9541bff84 Completed 2021-08-04 14:49:09 -04:00
Michael Hawker MSFT (XAML Llama) 1d31e54693
Merge pull request #4104 from michael-hawker/constrained-presenter
Add initial ConstrainedBox control for AspectRatio and Scaling
2021-08-03 09:40:07 -07:00
Michael Hawker MSFT (XAML Llama) 51cbc9a109
Merge pull request #4129 from Vijay-Nirmal/SmoothScrollMadeAsync
Changed SmoothScrollIntoView method to be truly asynchronous
2021-08-02 15:22:52 -07:00
michael-hawker ee0e32ebbb Add extra mode to sample description 2021-08-02 10:28:15 -07:00
michael-hawker 52975a6e12 Update sample to show how to manipulate the image center 2021-08-02 10:02:33 -07:00
michael-hawker 6057802c0d Add initial primitive test for each property in isolation 2021-07-30 17:32:41 -07:00
Michael Hawker MSFT (XAML Llama) ebcdf29373
Merge branch 'main' into fix_tcb_winui2.6 2021-07-30 13:48:12 -07:00
michael-hawker b4fe600ece Added another sample to the app, but it's a bit wonky still...
Image isn't DPI aware, so it's a bit weird at different DPI monitor.
2021-07-29 19:15:19 -07:00
michael-hawker 3b1518a6cf Rename ConstrainedPresenter to ConstrainedBox 2021-07-28 15:57:10 -07:00
michael-hawker d996cb509e Add initial ConstrainedPresenter control for AspectRatio and simple Sample.
TODO: Tests and trying out more scenarios and better sample.
2021-07-28 15:57:09 -07:00
Michael Hawker MSFT (XAML Llama) b6749fc1b0
Merge branch 'main' into SmoothScrollMadeAsync 2021-07-28 14:29:52 -07:00
michael-hawker a5632a91e1 Remove Nested Grid to simplify template and Remove extra Visual States
Fixes IsBackButtonVisible as well.
2021-07-28 13:09:24 -07:00
Shane Weaver e65332ba28
Merge branch 'main' into shweaver/storage-helpers 2021-07-28 10:55:39 -07:00
Darren Batchelor b9e792301a Strongly type Nav View to enum 2021-07-27 11:24:38 -07:00
Vijay Nirmal a09e203b5c
Scroll indicators test change in xaml
Co-authored-by: Rosario Pulella <Rosariopulella@gmail.com>
2021-07-27 20:29:38 +05:30
Vijay Nirmal 625716b23f
Scroll indicators test change in code behind
Co-authored-by: Rosario Pulella <Rosariopulella@gmail.com>
2021-07-27 20:29:25 +05:30
Vijay Nirmal b1033fb211 Added Scroll indicator 2021-07-27 15:11:11 +05:30
robloo f448ee31c6 Add additional color picker samples showing only a palette 2021-07-26 22:50:46 -04:00
Shane Weaver f3080d0de4
Merge branch 'main' into shweaver/storage-helpers 2021-07-26 15:10:16 -07:00
Vijay Nirmal 4590172e32 Changed SmoothScrollIntoView method to truly asynchronous 2021-07-26 02:15:43 +05:30
Rosario Pulella b1ce979596 Fix TileControl sample
Under WinUI 2.6 the flip view has a brackground. Removing it for this
sample.
2021-07-23 14:46:19 -07:00
Rosario Pulella d451b1f89a Workaround: NavigationView issues under winui2.6
https://github.com/microsoft/microsoft-ui-xaml/issues/5299#issuecomment-875798060
2021-07-23 14:46:18 -07:00
Rosario Pulella 0e68b0f65c Update all revelvent winui 2.5.0 revs to 2.6.1 2021-07-23 14:46:18 -07:00
Shane Weaver 57d872b9db Merge branch 'shweaver/storage-helpers' of https://github.com/windows-toolkit/WindowsCommunityToolkit into shweaver/storage-helpers 2021-07-22 12:16:06 -07:00
Shane Weaver e921d89482 Updated ISettingsStorageHelper references 2021-07-22 12:15:58 -07:00
Shane Weaver a0e4e49b3c
Merge branch 'main' into shweaver/storage-helpers 2021-07-21 13:53:05 -07:00
Rosario Pulella ffed1a6799
Merge branch 'main' into focusBehavior 2021-07-21 09:59:20 -04:00
Shane Weaver 18690395e0
Merge branch 'main' into shweaver/storage-helpers 2021-07-20 09:54:45 -07:00
Nirmal Guru a7f0b4930b
Remove BOM (Byte Order Mark) from new files
VS IDE still adds this but its no longer needed!
2021-07-20 21:45:20 +05:30
Nirmal Guru 4c7e988a58
Manage NoWarn(s) from a single place
Makes sure that global NoWarn(s) can be added/removed
without editing each and every project file.
2021-07-20 21:45:13 +05:30
Nirmal Guru 3ad9062623
Refactor Core project files
Organize Package tags
Update Package descriptions
Remove redundant MSBuild logic
Consolidate common MSBuild logic
2021-07-20 21:45:09 +05:30
Nirmal Guru 4ec02d5ef0
Format and Update EditorConfig
- Update comments to be more to the point.
- Rearrange some lines in ascending order.
- Add more file types and their preferences.
- Rename missed files from previous renames.
2021-07-20 21:45:07 +05:30
Rosario Pulella 33020eb102
Check style.Ignore if style is not null.
Style could have been null on the check for style.Ignore, moved the
check so it cant be null.
2021-07-20 09:32:48 -04:00
Shane Weaver 949e8206a0
Merge branch 'main' into shweaver/storage-helpers 2021-07-19 13:51:40 -07:00
Alexandre Zollinger Chohfi 2a60354dab Org rename: windows-toolkit -> CommunityToolkit 2021-07-19 10:39:06 -07:00
Shane Weaver f70e3696be Updated storage var names to be consistent across solution 2021-07-19 09:51:49 -07:00
Shane Weaver 5707c6d669 Fixed typo in IObjectStorageHelper. Updated var name to be more accurate in Samples.cs 2021-07-16 09:11:20 -07:00
Shane Weaver cf294f2f2e
Merge branch 'main' into shweaver/storage-helpers 2021-07-16 09:10:10 -07:00
Shane Weaver d9e43fb4ed Updated ObjectStorage references in samples 2021-07-12 14:01:42 -07:00
Yifan Liu 010b09fa23 Improve FocusBehavior: support list view lazy render. support control x:load. 2021-07-07 14:12:15 +08:00
Rosario Pulella c6212fc4fa
Sample fixes
As per
https://github.com/windows-toolkit/WindowsCommunityToolkit/pull/3222#issuecomment-872534456
2021-07-02 11:37:30 -04:00
Rosario Pulella e46bdde0af
Raname ItemPlacement to ScrollItemPlacement 2021-07-02 11:37:30 -04:00
Rosario Pulella 05e250c395
Use smooth scrool controls in static xaml file 2021-07-02 11:37:29 -04:00
Rosario Pulella 65af1d2d68
Remove over sepcified naming 2021-07-02 11:37:29 -04:00
Rosario Pulella 91367b8b85
Name SmoothScroll methods with Async 2021-07-02 11:37:29 -04:00