Skip to content
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

Winui2 #1577

Closed
wants to merge 213 commits into from
Closed

Winui2 #1577

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
213 commits
Select commit Hold shift + click to select a range
52318e9
Fix issue with the related controls section overlapping (#453)
marcelwgn May 28, 2020
354b36e
Hide unused scrollbars in RadioButtonsPage (#458)
marcelwgn May 29, 2020
f3ff0d4
Add smallchange value to sliders on RadialGradientBrush page (#427)
marcelwgn Jun 5, 2020
ee00794
Fix misleading text (#464)
marcelwgn Jun 8, 2020
7eb2b81
Fix bug where the first radiobutton wouldn't be checked on page start…
marcelwgn Jun 8, 2020
f7e94c6
Fix faulty RadialGradientBrush sample (#419)
marcelwgn Jun 8, 2020
46ff5ae
Typo on InputValidationPage (#469)
oldnewthing Jun 30, 2020
03fa735
Update WinUI version to 2.5 prerelease (#470)
ranjeshj Jun 30, 2020
3bd0944
Improve animated visual player demo (#480)
marcelwgn Jun 30, 2020
bc91f44
Update bug_report.md
stmoy Jul 2, 2020
cd46057
Improve NavigationPosition option on settings page (#477)
marcelwgn Jul 2, 2020
0e9d253
Prevent crashes on ImplicitAnimation page by checking for NaN (#476)
marcelwgn Jul 2, 2020
a945b54
Toggle Switch using ControlExampleSubstitution (#479)
MadEste Jul 2, 2020
3834324
Add override for ButtonBackgroundPointerOver in high contrast (#481)
marcelwgn Jul 2, 2020
9969aeb
Move RadialGradientBrush to Styles (#486)
marcelwgn Jul 6, 2020
7dcced3
Fix issue with ConnectedAnimation crashing due to selection being nul…
marcelwgn Jul 10, 2020
bb62344
Add keyboard accelerator (#498)
marcelwgn Jul 10, 2020
66c9b12
Improve styled textblock sample (#495)
marcelwgn Jul 10, 2020
ec49ed4
Progressring updates (#489)
marcelwgn Jul 10, 2020
5ec0c07
RadioButtons page (#493)
marcelwgn Jul 10, 2020
dccc474
Removed unused resource.
stmoy Jul 10, 2020
f90e40c
Merge branch 'master' of https://github.com/Microsoft/Xaml-Controls-G…
stmoy Jul 10, 2020
7acd3e2
RadioButtons cleanup (#500)
stmoy Jul 14, 2020
dda86cf
update WinUI prerelease version (#499)
ranjeshj Jul 14, 2020
9c6049b
Update manifests to latest store version.
stmoy Jul 14, 2020
8ccb6b9
Merge branch 'master' of https://github.com/Microsoft/Xaml-Controls-G…
stmoy Jul 14, 2020
62e7b17
Resized assets to have standard icon size (#505)
Spyromaniac31 Jul 20, 2020
34aa38e
Allowing keyboard input for the ScrollViewer (#471)
RBrid Jul 20, 2020
5bdd7be
Improve AnimatedVisualPlayer sample (#491)
marcelwgn Jul 27, 2020
94319e8
Select correct item in navigation upon opening item from search (#478)
marcelwgn Aug 5, 2020
6d98c25
Add texthighlighter RichTextBlock sample (#373)
marcelwgn Aug 5, 2020
ee5be96
Fix issue with groups not having appropriate UIA name (#523)
marcelwgn Aug 7, 2020
9ed7815
Set focus on first listview on ListView page when page loads (#522)
marcelwgn Aug 7, 2020
fa25c5f
Update samples that use the RichEditBox (#524)
marcelwgn Aug 7, 2020
0126633
Add ScreenshotMode (#518)
teaP Aug 12, 2020
0498c33
Update the Winui version to the newest prerelease (#530)
StephenLPeters Aug 14, 2020
728dbb5
Update README.md
stmoy Aug 17, 2020
d09826b
Renamed "RatingsControlPage" file to "RatingControlPage" (#533)
winston-de Aug 19, 2020
9e87c2f
Acrylic Page: Changed the step amounts for sliders (#312)
salmanmkc Aug 20, 2020
f9638ed
Fix crash with itemsrepeater and end key demo
marcelwgn Aug 23, 2020
6b3b484
Update content of button (#555)
marcelwgn Sep 11, 2020
7461490
Fixed typo in TreeView sample (#556)
Thomas1664 Sep 14, 2020
2ed67b1
Change Windows UI Toolkit to Windows UI Library (#562)
thomasclaudiushuber Sep 21, 2020
874e275
Update Winui version to the September prerelease (#563)
StephenLPeters Sep 24, 2020
7c800ab
Rename swipe page (#568)
marcelwgn Oct 7, 2020
22c5fd1
Update AutoSuggestBox sample to be more illustrative (#565)
marcelwgn Oct 19, 2020
ba23262
update muxc version (#582)
ranjeshj Oct 28, 2020
03ed34e
Added names to menu bars so they can easily be identified in UI tests…
jamesmcroft Nov 3, 2020
f95e0a2
Add button wrapping sample (#566)
marcelwgn Nov 16, 2020
624b8fe
Adding a sample for FooterMenuItems (#583)
Nov 18, 2020
4163c74
Add InfoBar Sample (#594)
gabbybilka Nov 21, 2020
f28d542
Fixed incorrect wording in description of TimePicker control (#603)
r2d2rigo Nov 30, 2020
c4309b6
Fix issue with state being lost when switching between compact/standa…
marcelwgn Nov 30, 2020
a9c0242
Add text regarding material fallbacks (#557)
marcelwgn Nov 30, 2020
ac51baf
Add colorspectrum shape to sample (#549)
marcelwgn Nov 30, 2020
22a92ba
Acrylic page: Scaling fixes (#313)
salmanmkc Nov 30, 2020
77f68a6
Add vertical flip view example. (#528)
Chips1234 Nov 30, 2020
f5b3764
Update bug_report.md
stmoy Nov 30, 2020
5cd2263
update winui 2.5 pre-release (#604)
ranjeshj Nov 30, 2020
d0c61c7
Added determinate mode for progress ring (#596)
MarissaMatt Nov 30, 2020
9627e86
update to stable 2.5 (#607)
ranjeshj Dec 3, 2020
c44808a
Add labeled by to edit for padding in screenshot mode (#610)
marcelwgn Dec 14, 2020
66cccbb
Update numberbox on determinate progressbar sample (#546)
marcelwgn Dec 17, 2020
59225de
Fix #620 (#621)
MarcAnt01 Jan 4, 2021
6d666e0
Auto-hide scrollbars in first ItemsRepeater sample if not needed. (#622)
stmoy Jan 4, 2021
2edf06f
Update ToggleSwitchPage.xaml (#619)
Jay-o-Way Jan 5, 2021
147ae77
HC changes so controls look more accurate (#625)
Jan 15, 2021
bf6b3ea
Add support to samples to "copy link to this page" with appropriate p…
grochocki Jan 27, 2021
4212531
Horizontal scrolling in ItemsRepeater sample (#632)
Jan 29, 2021
897715b
Fix DependencyProperty registration (#633)
ajpinedam Feb 6, 2021
87c8e15
Fix issue with resizing having horrible performance (#535)
marcelwgn Feb 8, 2021
137ff96
update WinUI package version to latest pre-release (#636)
ranjeshj Feb 18, 2021
ec9bedf
update WinUI version to latest preview (#654)
ranjeshj Mar 22, 2021
e81843f
Update non compact sample page header (#688)
marcelwgn Apr 27, 2021
9c524c8
Replace controls with muxc
masaru-iritani May 7, 2021
d307145
correct source code examples of tooltip
jdoubleu Jun 15, 2021
b732085
Merge branch 'master' into dev/repeater-endkey-crash
marcelwgn Jun 15, 2021
b6347ce
Improve reveal focus a11y, remove obsolete comments
marcelwgn Jun 15, 2021
09bb450
Merge pull request #540 from chingucoding/dev/repeater-endkey-crash
Jun 16, 2021
8ee0239
Add contextmenu to windowing tab view items
marcelwgn Jun 17, 2021
ede60f9
Add UIA notification event
marcelwgn Jun 19, 2021
1ab6078
Fix few issues
marcelwgn Jun 20, 2021
d4b13f7
Merged PR 6179239: Update WinUI to 2.6
kmahone Jun 22, 2021
912b9ed
Merged PR 6183741: Add BasedOn for ListViewItem style and minor layou…
ranjeshj Jun 22, 2021
6b77973
Merged PR 6187840: Align Expander to prevent it from moving out from …
StephenLPeters Jun 23, 2021
2d52311
Merge pull request #709 from microsoft/feature/26update
kmahone Jun 24, 2021
be843d9
Merge pull request #705 from chingucoding/dev/reveal-focus-a11y
Jun 25, 2021
9d5d742
Merge branch 'master' into dev/filtered-results-notification
marcelwgn Jun 25, 2021
dacd3f1
Merge branch 'master' into dev/itemsrepeater-animated-buttons-samples…
marcelwgn Jun 25, 2021
bed5306
Merge pull request #707 from chingucoding/dev/filtered-results-notifi…
Jun 25, 2021
b813a71
Merge branch 'master' into dev/itemsrepeater-animated-buttons-samples…
marcelwgn Jun 25, 2021
105bfb9
Merge pull request #708 from chingucoding/dev/itemsrepeater-animated-…
Jun 25, 2021
f198f61
fix build break
ranjeshj Jun 27, 2021
444a48f
Merge pull request #713 from microsoft/user/ranjeshj/xcgfixes
ranjeshj Jun 28, 2021
318b28b
Update MaxTestedVersion
jevansaks Jun 28, 2021
befbba7
Merge pull request #716 from microsoft/user/jevansaks/updatemaxtested…
Jun 28, 2021
4072ca5
Merge branch 'master' into dev/tvi-new-window-contextmenu
marcelwgn Jul 12, 2021
3b12e18
Merge pull request #706 from chingucoding/dev/tvi-new-window-contextmenu
Jul 12, 2021
4acbe0c
Updated ListView Drop handler to be more generalizable; previous vers…
MichaelKintscher Jul 18, 2021
ffb8b12
Update bug_report.md
JaiganeshKumaran Jul 21, 2021
4955cc9
Increase hight of command bar parent to prevent cutoff
winston-de Jul 24, 2021
f4839b5
Removed broken guidelines link from expander page
winston-de Jul 24, 2021
c6caaa4
remove broken guidance link in pips pager page
winston-de Jul 24, 2021
8d881e8
Make version number text selectable
winston-de Jul 24, 2021
ff6a9a1
Wrap text for screenshot folder button to prevent cutoff
winston-de Jul 25, 2021
67ca738
Revert "Wrap text for screenshot folder button to prevent cutoff"
winston-de Jul 25, 2021
98da415
-fix formatting
winston-de Jul 25, 2021
b88338c
-fix formatting
winston-de Jul 25, 2021
5f3a641
Merge branch 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' of https://github.com…
winston-de Jul 25, 2021
f1d26d6
fix text
winston-de Jul 25, 2021
7b637d3
remove extra file
winston-de Jul 25, 2021
7b1c63c
Remove broken guidance link from AnimatedIcon page (#741)
winston-de Jul 26, 2021
69b08a0
Add working pips pager and expander guidance links
winston-de Jul 26, 2021
009d674
Rename guidance link labels to guidelines
winston-de Jul 26, 2021
318bd20
Merge branch 'master' into eeeeeeeeeeeeeeeeeeee
winston-de Jul 26, 2021
234ca05
Switch label to "Guidelines" for animated icon
winston-de Jul 26, 2021
18e4803
Merge pull request #743 from winston-de/eeeeeeeeeeeeeeeeeeee
Jul 26, 2021
7eadf5e
Updating to WinUI 2.6.1
Jul 27, 2021
e14ca6a
Merge pull request #740 from winston-de/commandbarfix
Jul 28, 2021
b28b446
Merge pull request #746 from microsoft/update-2.6.1
Jul 28, 2021
caea738
Merge pull request #745 from winston-de/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Jul 28, 2021
1da7600
Merge pull request #733 from Jaiganeshkumaran/patch-1
Jul 28, 2021
0511c13
Update bug_report.md
Jul 28, 2021
a642285
Merge pull request #744 from winston-de/eeee
Jul 28, 2021
7475b63
Merge pull request #730 from MichaelKintscher/ListViewDragDrop
Jul 28, 2021
533cd64
Merge pull request #703 from jdoubleu/fix-tooltip-examples
Jul 28, 2021
1b1d293
Merge pull request #692 from masaru-iritani/user/masaru-iritani/fix-t…
Jul 28, 2021
4e95ce5
minimal mode + visual alignment fixes
karkarl Jul 30, 2021
f373094
adjust header margins
karkarl Jul 30, 2021
e0e0fb6
see also panel margin updates
karkarl Jul 30, 2021
c81438d
landing page margin fix
karkarl Jul 30, 2021
efcff92
Merge pull request #751 from microsoft/user/karenlai/LayoutUpdates
karkarl Aug 5, 2021
bf5e111
update version to 2.7 prerelease
ranjeshj Aug 17, 2021
f8611c0
Merge pull request #757 from microsoft/user/ranjeshj/updaterelease
Aug 17, 2021
2e72ac5
add orientation option in controlexample options
karkarl Aug 17, 2021
f99da8f
Merge pull request #758 from microsoft/user/karenlai/HorizontalColour…
ranjeshj Aug 19, 2021
04c7dc2
add infobadge page and samples
karkarl Sep 3, 2021
2b821a8
changes from comments
karkarl Sep 7, 2021
fe93f63
add dynamic infobadge sample
karkarl Sep 7, 2021
7d137a1
changes from comments
karkarl Sep 10, 2021
c860b18
changes from comments
karkarl Sep 10, 2021
84c97f0
Merge pull request #766 from microsoft/user/karenlai/InfoBadgePage
karkarl Sep 10, 2021
afc8d6f
Add automationProperties.name to numberbox
karkarl Sep 24, 2021
53c435c
separate out colour selection
karkarl Sep 27, 2021
a5ffadc
revert line endings
karkarl Sep 27, 2021
d2b9beb
Update version to 2.8 prerelease.
StephenLPeters Sep 27, 2021
438e82b
add dataTemplate + binding sample
karkarl Sep 27, 2021
6450265
Merge pull request #784 from microsoft/user/stpete/Winui2Version8Update
ranjeshj Sep 28, 2021
25e6001
changes from comments
karkarl Oct 4, 2021
7be431b
Merge pull request #783 from microsoft/user/karenlai/BreadCrumbSample
karkarl Oct 4, 2021
322b4e9
changes from comments
karkarl Oct 4, 2021
bf95d20
Merge pull request #782 from microsoft/user/karenlai/ItemsRepeaterAni…
karkarl Oct 5, 2021
79455bc
Merge pull request #781 from microsoft/user/karenlai/ProgressBarPageA…
ranjeshj Oct 5, 2021
89b1757
Update RadioButtons sample to include all sample code (#785)
marcelwgn Oct 6, 2021
fc2a454
Update InfoBadge value sample to not crash upon empty value (#788)
marcelwgn Oct 7, 2021
9fe11fe
Change InkCanvas background for High Contrast (#794)
yanjicong Oct 19, 2021
06c1b03
Fix sample code for animation navigation sample (#800)
marcelwgn Oct 21, 2021
c55c3d1
Disable evaluation purpose API warning (#763)
marcelwgn Oct 21, 2021
bd71ae2
Fix bug where user selection would change text and unset selection (#…
marcelwgn Oct 22, 2021
402de7c
Add new expander sample (#756)
marcelwgn Oct 22, 2021
5eb4a66
Fix bug where header would be white on white in light theme (#761)
marcelwgn Oct 22, 2021
d24d304
Update spacings on compat demo page (#803)
marcelwgn Oct 27, 2021
b346fab
Add PasswordBox reveal mode sample (#548)
marcelwgn Oct 27, 2021
82f6e33
Updated the description for the sound API (#802)
gregwoo-microsoft Oct 28, 2021
ef7c248
Update rating sample (#543)
marcelwgn Oct 29, 2021
da45200
Fix issue with newly added items in PTR not having different names (#…
marcelwgn Oct 29, 2021
7b465b8
Fix issue with suspending not restoring correctly (#547)
marcelwgn Oct 29, 2021
2a4d605
Updated the description of the pull to update control (#806)
gregwoo-microsoft Nov 4, 2021
cd0caa8
Update bug_report.md
stmoy Nov 5, 2021
10471b9
Add null check to prevent crash (#816)
marcelwgn Nov 9, 2021
459ac97
Fix broken xaml code (#823)
0x5bfa Nov 29, 2021
e3aa0a1
Fix incorrect xaml source code in InfoBadgePage.xaml (#817)
HO-COOH Nov 29, 2021
f3a282a
Add copy code button to code samples (#810)
marcelwgn Nov 29, 2021
0fe7779
Updated the fictitious contacts (#825)
gregwoo-microsoft Dec 1, 2021
e2b761c
Updated to 1.2.22
gregwoo-microsoft Dec 7, 2021
3acf32c
Remove misleading dead code (#832)
Marv51 Dec 15, 2021
b98c2c9
Fix faulty sample code (#835)
marcelwgn Jan 4, 2022
c473598
Fixed NavigationView PaneOpening Event Name (#837)
hassaanmasood Jan 4, 2022
2ed19f0
Update XamlGalleryLanding.PNG
gregwoo-microsoft Jan 8, 2022
7690b07
Update README.md
gregwoo-microsoft Jan 8, 2022
e2e2ead
Fix splitbutton keyboard accessability. (#840)
StephenLPeters Jan 11, 2022
ee772e5
Fix issue with compact NavView InfoBadge sample (#846)
marcelwgn Jan 22, 2022
0ffb849
Update ItemsRepeaterPage.xaml (#848)
teemune Jan 24, 2022
504ea7c
Update winui version to 2.8.0-prerelease.220118001 (#842)
StephenLPeters Jan 28, 2022
ead12ab
Add expander for sample code of control examples (#850)
marcelwgn Jan 29, 2022
ec2f5ad
Fix issue for markers on whats new page in high contrast (#852)
marcelwgn Jan 29, 2022
dfa35dc
Add separator between code samples, update code copy button to be on …
marcelwgn Jan 31, 2022
b4f8c16
Update TextBoxPage.xaml to fix color contrast ratio (#868)
gregwoo-microsoft Feb 14, 2022
28b2330
fix window crashing on last tab drag
karkarl Feb 17, 2022
19b9cf0
Remove dead code in settingspage class (#875)
marcelwgn Mar 11, 2022
e97be1e
Change ItemInvoked->SelectionChanged on NavigationRootPage (#880)
bpulliam Mar 15, 2022
0285e4a
fixing a few a11y issues
ranjeshj Apr 5, 2022
30329e9
Merge pull request #895 from microsoft/user/ranjeshj/a11yfixes
ranjeshj Apr 6, 2022
e23b599
Merge pull request #874 from microsoft/user/karenlai/TabViewTearSampl…
karkarl Apr 12, 2022
09e8d84
Fix BreadcrumbBar opening tag in exapmle (#906)
tonytkachenko May 1, 2022
6acd42b
Update PipsPagerPage.xaml.cs (#936)
gregwoo-microsoft May 12, 2022
c23c72c
Update PipsPagerPage.xaml.cs
gregwoo-microsoft May 13, 2022
ad4c20c
WinUI 2 Gallery Visual Revamp (#934)
gregwoo-microsoft May 15, 2022
d906af8
Name change XCG --> WinUI 2 Gallery (#943)
gregwoo-microsoft May 16, 2022
f9d4415
Store Update (#952)
gregwoo-microsoft May 19, 2022
4688b44
Store update
gregwoo-microsoft May 20, 2022
55af91f
Update ListViewSample2_xaml.txt (#980)
gregwoo-microsoft Jun 1, 2022
6b01046
remove unused resources
karkarl Jun 10, 2022
c67b3ff
revert resource
karkarl Jun 13, 2022
38db21a
Merge pull request #1007 from microsoft/user/karenlai/CleanUpResources
karkarl Jun 14, 2022
f75c752
- ARM64 configuration added (#1014)
Samuel12321 Jun 16, 2022
3f00402
update to 2.8, add WebView2 content
krschau Jul 14, 2022
ebeb753
Merge pull request #1047 from microsoft/user/krschau/webview2
krschau Jul 18, 2022
c5761fc
App update 1.2.26
gregwoo-microsoft Jul 18, 2022
08c3778
Add adjustable slider properties in the slider example (#831)
HO-COOH Nov 11, 2022
820a8e9
Add a custom showmode example in flyout page (#1133)
HO-COOH Oct 17, 2023
48e42a5
Create settings.json
tola9999 Jul 6, 2024
f628237
Update settings.json
tola9999 Jul 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 12 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,21 @@ Steps to reproduce the behavior:
<!-- If applicable, add screenshots here to help explain your problem -->

**Version Info**
<!-- Please enter the Gallery version, OS version(s), and form factor(s) -->
- [ ] Xaml Controls Gallery - Downloaded from Store
- If so, which version? (1.2.x -- Found on the Settings page of the app.)
- [ ] WinUI 3 Controls Gallery - Downloaded from Store
- If so, which version? (1.3.x -- Found on the Settings page of the app.)
- [ ] App built locally from source
- If so, which branch? (WinUI 3 versions are built off the winui3 branch)

Gallery version (found on Settings page):
<!-- [e.g. 1.2.3.0] -->
**Additional context**
<!-- Enter any other applicable info here -->

Windows 10 version:
Windows version:
- [ ] Insider Build (xxxxx)
- [ ] May 2021 Update (19043)
- [ ] October 2020 Update (19042)
- [ ] May 2020 Update (19041)
- [ ] November 2019 Update (18363)
- [ ] May 2019 Update (18362)
- [ ] October 2018 Update (17763)
Expand All @@ -45,5 +53,3 @@ Device form factor:
- [ ] Surface Hub
- [ ] IoT

**Additional context**
<!-- Enter any other applicable info here -->
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dotnet.defaultSolution": "WinUIGallery/WinUIGallery.sln",
"dotnet.preferCSharpExtension": true
}
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,31 @@ description: Demonstrates the usage of all XAML/WinUI controls in an interactive

[![Build Status](https://dev.azure.com/stmoy/Xaml%20Controls%20Gallery/_apis/build/status/XAML%20Controls%20%20Gallery%20-%20CI%20Tests?branchName=master)](https://dev.azure.com/stmoy/Xaml%20Controls%20Gallery/_build/latest?definitionId=2&branchName=master)

Shows all of the XAML controls in an interactive format. This app is the interactive companion to the [Fluent Design Guidelines](https://docs.microsoft.com/windows/uwp/design/basics/) and shows the usage of both UWP Xaml APIs and [Windows UI Toolkit](https://docs.microsoft.com/uwp/toolkits/winui/) APIs.
Shows all of the XAML controls in an interactive format. This app is the interactive companion to the [Fluent Design Guidelines](https://docs.microsoft.com/windows/uwp/design/basics/) and shows the usage of both UWP Xaml APIs and [Windows UI Library](https://docs.microsoft.com/windows/apps/winui/) APIs.


## The XAML Controls Gallery shows how to:

- **Specify XAML controls in markup:** Each control page shows the markup used to create each example.
- **Use the Microsoft.UI.Xaml (WinUI) Library:** The app includes the latest WinUI NuGet package and shows how to use the [Windows UI Toolkit](https://docs.microsoft.com/uwp/toolkits/winui/) controls like NavigationView, SwipeControl, and more.
- **Use the Microsoft.UI.Xaml (WinUI) Library:** The app includes the latest WinUI NuGet package and shows how to use the [Windows UI Library](https://docs.microsoft.com/windows/apps/winui/) controls like NavigationView, SwipeControl, and more.

- **Basic layout:** This sample will show all of the possible layout options for your app and allow you to interact with the panels to show how to achieve any layout you are looking for.
- **Adaptive UI:** In addition to showing how each control responds to different form factors, the app itself is responsive and shows various methods for achieving adaptive UI.
- **Version adaptive code:** This sample shows how to write version adaptive code so that the app can run on previous versions of Windows while also using the latest capabilities on the most recent verison of Windows.
- **Version adaptive code:** This sample shows how to write version adaptive code so that the app can run on previous versions of Windows while also using the latest capabilities on the most recent version of Windows.

## Further information

>**Note**: The Xaml Controls Gallery requires Visual Studio [2017](http://go.microsoft.com/fwlink/?LinkID=532422) or [2019](https://visualstudio.microsoft.com/vs/) to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://developer.microsoft.com/windows)
To obtain information about Windows 10 & 11 development, go to the [Windows Dev Center](https://developer.microsoft.com/windows)

To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422)

To contact the authors, please reach out to ControlsGallery@microsoft.com
## 🐞 Found a bug? Want a new sample?

If you find a bug **within the Xaml Controls Gallery** or want to request a new sample, please [file an issue](https://github.com/microsoft/Xaml-Controls-Gallery/issues/new/choose).

If you find a bug **within your app (not in the Xaml Controls Gallery)** and need help, please [file an issue on the WinUI repo](https://github.com/microsoft/microsoft-ui-xaml/issues/new/choose).


## Related topics
Expand Down
Binary file modified README_Images/XamlGalleryLanding.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
xmlns:behavior="using:AppUIBasics.Behaviors"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:controls="using:Windows.UI.Xaml.Controls"
NavigationCacheMode="Enabled">
NavigationCacheMode="Enabled"
HighContrastAdjustment="None">

<!-- This grid acts as a root panel for the page. -->
<Grid Background="{ThemeResource HomePageBackgroundBrush}">
Expand All @@ -36,65 +37,72 @@
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="itemGridView.Padding" Value="12,0,12,36" />
<Setter Target="itemGridView.Margin" Value="0,-44,0,0" />
<Setter Target="headerImageView.Margin" Value="-12,0,-12,12" />
<Setter Target="itemGridView.ItemContainerStyle" Value="{StaticResource GridViewItemStyleSmall}" />
<Setter Target="pageHeader.Visibility" Value="Collapsed" />
<Setter Target="smallHeaderText.Visibility" Value="Visible"/>
<Setter Target="smallHeaderText.Visibility" Value="Collapsed"/>
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>

<GridView x:Name="itemGridView"
Padding="24,0,0,36"
Margin="31,0,0,0"
AutomationProperties.AutomationId="ItemGridView"
AutomationProperties.Name="Items In Group"
ContainerContentChanging="OnItemGridViewContainerContentChanging"
IsItemClickEnabled="True"
IsSwipeEnabled="False"
ItemClick="OnItemGridViewItemClick"
ItemContainerStyle="{StaticResource GridViewItemStyle}"
ItemContainerStyle="{StaticResource IndentedGridViewItemStyle}"
ItemTemplate="{StaticResource ControlItemTemplate}"
ItemsSource="{x:Bind Items, Mode=OneWay}"
KeyDown="OnItemGridViewKeyDown"
Loaded="OnItemGridViewLoaded"
SizeChanged="OnItemGridViewSizeChanged"
SelectionMode="None">
<interactivity:Interaction.Behaviors>
<!--<interactivity:Interaction.Behaviors>
<behavior:ImageScrollBehavior TargetControl="{Binding ElementName=pageHeader}" />
</interactivity:Interaction.Behaviors>
</interactivity:Interaction.Behaviors>-->

<GridView.Header>
<Grid Margin="-24,0,0,24">
<Grid Margin="12,39,43,0">
<ParallaxView
x:Name="headerImageView"
Height="250"
Margin="0,0,0,0"
Margin="0,0,0,28"
Height="200"
Source="{x:Bind itemGridView}"
VerticalShift="350">
<Image
x:Name="headerImage"
HorizontalAlignment="Center"
Source="Assets/MainPage_Banner.jpg"
Stretch="UniformToFill" />
VerticalShift="0">
<Grid CornerRadius="{StaticResource ControlCornerRadius}">
<Image
x:Name="headerImage"
HorizontalAlignment="Center"
Source="Assets/MainPage_Banner.png"
Stretch="Fill" />
</Grid>

</ParallaxView>
<Rectangle Height="60" VerticalAlignment="Top" Fill="{StaticResource HeroImageGradientBrush}"/>

<TextBlock x:Name="smallHeaderText"
Visibility="Collapsed"
Style="{StaticResource NarrowHeaderTextBlockStyle}"
Text="{StaticResource ControlsName}"/>
Foreground="Black"
Visibility="Visible"
Style="{StaticResource TitleTextBlockStyle}"
Text="All controls"
Margin="50,50,0,20" />
</Grid>
</GridView.Header>
</GridView>

<local:PageHeader x:Name="pageHeader"
Title="{StaticResource ControlsName}"
<!--<local:PageHeader x:Name="pageHeader"
Title= "All controls"
Margin="44,92"
VerticalAlignment="Top"
Background="{ThemeResource HomePageBackgroundBrush}"
FontSize="42"
Padding="24,34,12,12"
Foreground="{StaticResource SystemControlForegroundChromeWhiteBrush}"
Foreground="Black"
Background="{ThemeResource HomePageBackgroundBrush}"
FontSize="28"
Padding="{ThemeResource NavigationViewHeaderMargin}"
IsHitTestVisible="False"
ShadowOpacity="1"/>
ShadowOpacity="0"/>-->
</Grid>
</local:ItemsPageBase>
</local:ItemsPageBase>
52 changes: 29 additions & 23 deletions XamlControlsGallery/App.xaml → WinUIGallery/App.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--
<!--
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
Expand All @@ -13,38 +13,35 @@
x:Class="AppUIBasics.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:winui="using:Microsoft.UI.Xaml.Controls"
xmlns:local="using:AppUIBasics"
xmlns:common="using:AppUIBasics.Common">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<local:ItemTemplates />
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls"/>
<winui:XamlControlsResources ControlsResourcesVersion="Version2"/>
</ResourceDictionary.MergedDictionaries>

<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<StaticResource x:Key="HomePageBackgroundBrush" ResourceKey="ApplicationPageBackgroundThemeBrush" />
<SolidColorBrush x:Key="SearchBoxBorderBrush" Color="Transparent" />
<Thickness x:Key="SearchBoxBorderThickness">0</Thickness>
<SolidColorBrush x:Key="HomePageBackgroundBrush" Color="Transparent"/>
<StaticResource x:Key="ControlExampleDisplayBrush" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<Thickness x:Key="ControlExampleDisplayBorderThickness">0</Thickness>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<StaticResource x:Key="HomePageBackgroundBrush" ResourceKey="ApplicationPageBackgroundThemeBrush" />
<SolidColorBrush x:Key="SearchBoxBorderBrush" Color="Transparent" />
<Thickness x:Key="SearchBoxBorderThickness">0</Thickness>
<SolidColorBrush x:Key="HomePageBackgroundBrush" Color="Transparent"/>
<StaticResource x:Key="ControlExampleDisplayBrush" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<Thickness x:Key="ControlExampleDisplayBorderThickness">0</Thickness>
</ResourceDictionary>
<ResourceDictionary x:Key="HighContrast">
<SolidColorBrush x:Key="HomePageBackgroundBrush" Color="{ThemeResource SystemColorWindowColor}" />
<SolidColorBrush x:Key="SearchBoxBorderBrush" Color="{ThemeResource SystemColorWindowTextColor}" />
<Thickness x:Key="SearchBoxBorderThickness">2</Thickness>
<SolidColorBrush x:Key="ControlExampleDisplayBrush" Color="{ThemeResource SystemColorWindowColor}" />
<Thickness x:Key="ControlExampleDisplayBorderThickness">1</Thickness>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

<LinearGradientBrush x:Key="HeroImageGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="{ThemeResource SystemAltMediumColor}"/>
<GradientStop Offset="0.5" Color="{ThemeResource SystemAltMediumColor}"/>
<GradientStop Offset="1" Color="Transparent"/>
</LinearGradientBrush>
<x:Double x:Key="TeachingTipMinWidth">50</x:Double>

<!-- Application-specific resources -->
<common:NullableBooleanToBooleanConverter x:Key="nullableBooleanToBooleanConverter" />
Expand All @@ -56,11 +53,21 @@
<!-- Breakpoints -->
<x:Double x:Key="Breakpoint640Plus">641</x:Double>

<Thickness x:Key="PageHeaderDefaultPadding">12,28,12,0</Thickness>
<Thickness x:Key="PageHeaderDefaultPadding">0</Thickness>
<Thickness x:Key="PageHeaderMinimalPadding">-4,0,12,0</Thickness>

<x:String x:Key="ControlsName">All controls</x:String>
<x:String x:Key="NewControlsName">What's New</x:String>
<Thickness x:Key="ControlElementScreenshotModePadding">67</Thickness>

<!-- L-Pattern Overwriting resources -->
<Thickness x:Key="NavigationViewContentMargin">0,48,0,0</Thickness>
<Thickness x:Key="NavigationViewContentGridBorderThickness">1,1,0,0</Thickness>
<CornerRadius x:Key="NavigationViewContentGridCornerRadius">8,0,0,0</CornerRadius>
<Thickness x:Key="NavigationViewHeaderMargin">56,34,0,0</Thickness>

<SolidColorBrush x:Key="GridViewHeaderItemDividerStroke" Color="Transparent"/>

<x:String x:Key="AppTitleName">WinUI 2 Gallery</x:String>
<x:String x:Key="WinUIVersion">SDK 2.8</x:String>

<Style x:Key="OutputTextBlockStyle" BasedOn="{StaticResource BodyTextBlockStyle}" TargetType="TextBlock">
<Setter Property="Margin" Value="8,8,0,0" />
Expand All @@ -79,24 +86,23 @@
<Setter Property="ZoomMode" Value="Disabled" />
</Style>

<Style x:Key="GridViewItemStyle" TargetType="GridViewItem">
<Style x:Key="GridViewItemStyle" TargetType="GridViewItem" BasedOn="{StaticResource DefaultGridViewItemStyle}">
<Setter Property="Margin" Value="0,0,12,12" />
</Style>

<Style x:Key="IndentedGridViewItemStyle" TargetType="GridViewItem">
<Style x:Key="IndentedGridViewItemStyle" TargetType="GridViewItem" BasedOn="{StaticResource DefaultGridViewItemStyle}">
<Setter Property="Margin" Value="12,0,0,12" />
</Style>

<Style x:Key="GridViewItemStyleSmall" TargetType="GridViewItem">
<Style x:Key="GridViewItemStyleSmall" TargetType="GridViewItem" BasedOn="{StaticResource DefaultGridViewItemStyle}">
<Setter Property="Margin" Value="0,0,0,12" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>

<Style x:Key="IndentedGridViewItemStyleSmall" TargetType="GridViewItem">
<Style x:Key="IndentedGridViewItemStyleSmall" TargetType="GridViewItem" BasedOn="{StaticResource DefaultGridViewItemStyle}">
<Setter Property="Margin" Value="12,0,12,12" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>

</ResourceDictionary>
</Application.Resources>
</Application>
Loading