Skip to content

Commit bc09868

Browse files
committed
Format Markdown files
Clean-up and Format with MarkdownLint
1 parent 794b295 commit bc09868

File tree

9 files changed

+66
-34
lines changed

9 files changed

+66
-34
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,26 @@ about: Create a report to help us fix something that isn't working as expected
44
title: ''
55
labels: "bug :bug:"
66
assignees: ''
7-
87
---
98

109
<!-- 🚨 PLEASE DO NOT SKIP ANY INSTRUCTIONS AND INFORMATION MENTIONED BELOW AS THEY ARE ALL REQUIRED AND ESSENTIAL TO INVESTIGATE THE ISSUE. ISSUES WITH MISSING INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION
1110
...
1211
IF NOT CERTAIN ABOUT THE ISSUE AND REQUIRE MORE CLARITY THEN PLEASE POST ON "QUESTIONS & HELP" CATEGORY OF THE DISCUSSIONS PLATFORM [https://github.com/CommunityToolkit/WindowsCommunityToolkit/discussions/categories/questions-help] WHERE YOU CAN DISCUSS AND ENAGAGE WITH THE COMMUNITY TO GAIN FURTHER CLAIRITY REGARDING THE ISSUE 🚨 -->
1312

1413
## Describe the bug
14+
1515
A clear and concise description of what the bug is.
1616

1717
- [ ] Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:
1818

1919
## Steps to Reproduce
2020

21-
- [ ] Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...) <!-- Being able to reproduce the problem in the sample app, really stream-lines the whole process in being able to discover, resolve, and validate bug fixes. -->
21+
- [ ] Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)
22+
23+
<!-- Being able to reproduce the problem in the sample app, really stream-lines the whole process in being able to discover, resolve, and validate bug fixes. -->
2224

2325
Steps to reproduce the behavior:
26+
2427
1. Given the following environment (Sample App w/ XAML, Project with Isolated setup, etc...)
2528
2. Go to '...'
2629
3. Click on '....'
@@ -30,19 +33,23 @@ Steps to reproduce the behavior:
3033
<!-- Provide as many code-snippets or XAML snippets where appropriate. -->
3134

3235
## Expected behavior
33-
A clear and concise description of what you expected to happen.
36+
37+
<!-- A clear and concise description of what you expected to happen. -->
3438

3539
## Screenshots
36-
If applicable, add screenshots to help explain your problem.
40+
41+
<!-- If applicable, add screenshots to help explain your problem. -->
3742

3843
## Environment
44+
3945
<!-- Check one or more of the following options with "x" -->
40-
```
46+
4147
NuGet Package(s):
4248

4349
Package Version(s):
4450

4551
Windows 10 Build Number:
52+
4653
- [ ] Fall Creators Update (16299)
4754
- [ ] April 2018 Update (17134)
4855
- [ ] October 2018 Update (17763)
@@ -51,6 +58,7 @@ Windows 10 Build Number:
5158
- [ ] Insider Build (build number: )
5259

5360
App min and target version:
61+
5462
- [ ] Fall Creators Update (16299)
5563
- [ ] April 2018 Update (17134)
5664
- [ ] October 2018 Update (17763)
@@ -59,17 +67,18 @@ App min and target version:
5967
- [ ] Insider Build (xxxxx)
6068

6169
Device form factor:
70+
6271
- [ ] Desktop
6372
- [ ] Xbox
6473
- [ ] Surface Hub
6574
- [ ] IoT
6675

6776
Visual Studio
77+
6878
- [ ] 2017 (version: )
6979
- [ ] 2019 (version: )
7080
- [ ] 2019 Preview (version: )
7181

72-
```
73-
7482
## Additional context
75-
Add any other context about the problem here.
83+
84+
<!-- Add any other context about the problem here. -->

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: I have a documentation suggestion or question
44
title: "[Docs]"
55
labels: documentation
66
assignees: ''
7-
87
---
98

109
<!--

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ about: I have a new idea or improvement for the toolkit
44
title: "[Feature]"
55
labels: "feature request :mailbox_with_mail:"
66
assignees: ''
7-
87
---
98

109
<!-- 🚨 PLEASE PROVIDE DETAILED INFORMATION AND DO NOT SKIP ANY INSTRUCTIONS AND INFORMATION MENTIONED BELOW AS THEY ARE ALL REQUIRED AND ESSENTIAL TO HELP US UNDERSTAND THE FEATURE.
1110
...
12-
IF NOT CERTAIN ABOUT THE FEATURE AND REQUIRE MORE CLARITY THEN PLEASE POST ON "IDEAS" CATEGORY OF THE DISCUSSIONS PLATFORM [https://github.com/CommunityToolkit/WindowsCommunityToolkit/discussions/categories/ideas] WHERE YOU CAN DISCUSS AND ENAGAGE WITH THE COMMUNITY TO GAIN FURTHER CLAIRITY REGARDING THE FEATURE 🚨 -->
11+
IF NOT CERTAIN ABOUT THE FEATURE AND REQUIRE MORE CLARITY THEN PLEASE POST ON "IDEAS" CATEGORY OF THE DISCUSSIONS PLATFORM [https://github.com/CommunityToolkit/WindowsCommunityToolkit/discussions/categories/ideas] WHERE YOU CAN DISCUSS AND ENGAGE WITH THE COMMUNITY TO GAIN FURTHER CLARITY REGARDING THE FEATURE 🚨 -->
1312

1413
## Describe the problem this feature would solve
14+
1515
<!-- Please describe or link to any existing issues or discussions.
1616
A clear and concise description of what the problem is, starting with the user story.
1717
Provide examples of the restrictions in the current environment that hinders the work your users or you want to perform. What are the ways this new feature will help transform and deliver those results?
1818
For example, I am currently using the InfiniteCanvas control which lacks the TabbedCommandBar control feature. I am looking to improve user experience therefore i would like to use that in my project to provide ease of accessibility and a user-friendly interface. This new feature will provide quick access to the toolbar, enhance space utilization, etc [...] -->
1919

20-
2120
## Describe the solution
22-
<!-- A clear and concise description of what you want to happen. Define how do you think it will help the community and adds value to the toolkit? -->
2321

22+
<!-- A clear and concise description of what you want to happen. Define how do you think it will help the community and adds value to the toolkit? -->
2423

2524
## Describe alternatives you've considered
26-
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
2725

26+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
2827

2928
## Additional context & Screenshots
29+
3030
<!-- Add any other context or screenshots about the feature request here.-->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: I have a question about how to use something in the toolkit.
44
title: "[Question]"
55
labels: "question :grey_question:"
66
assignees: ''
7-
87
---
98

109
<!--

.github/ISSUE_TEMPLATE/win32_controls.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: I have an issue with a Toolkit WPF or WinForms control
44
title: "[Win32]"
55
labels:
66
assignees: ''
7-
87
---
98

109
<!--

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<!-- 🚨 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 🚨 -->
22

3-
<!-- 👉 It is imperative to resolve ONE ISSUE PER PR and avoid making multiple changes unless the changes interrelate with each other -->
3+
<!-- 👉 It is imperative to resolve ONE ISSUE PER PR and avoid making multiple changes unless the changes interrelate with each other -->
44

55
<!-- 📝 Please always keep the "☑️ Allow edits by maintainers" button 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! 🎉 -->
66

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

1111
<!-- Add a brief overview here of the feature/bug & fix. -->
1212

1313
## PR Type
14+
1415
What kind of change does this PR introduce?
16+
1517
<!-- Please uncomment one or more options below that apply to this PR. -->
1618

1719
<!-- - Bugfix -->
@@ -23,14 +25,13 @@ What kind of change does this PR introduce?
2325
<!-- - Sample app changes -->
2426
<!-- - Other... Please describe: -->
2527

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

30+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
3031

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

34+
<!-- Describe how was this issue resolved or changed? -->
3435

3536
## PR Checklist
3637

@@ -39,14 +40,13 @@ Please check if your PR fulfills the following requirements:
3940
- [ ] Tested code with current [supported SDKs](../readme.md#supported)
4041
- [ ] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link -->
4142
- [ ] Sample in sample app has been added / updated (for bug fixes / features)
42-
- [ ] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/CommunityToolkit/WindowsCommunityToolkit-design-assets)
43+
- [ ] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/CommunityToolkit/WindowsCommunityToolkit-design-assets)
4344
- [ ] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
4445
- [ ] Tests for the changes have been added (for bug fixes / features) (if applicable)
45-
- [ ] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
46+
- [ ] Header has been added to all new source files (run _build/UpdateHeaders.bat_)
4647
- [ ] Contains **NO** breaking changes
4748

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

5252
## Other information

Contributing.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,40 @@ In the next few steps, you will be able to see a glimpse of ways you can contrib
77
:rotating_light: **It is highly recommended to visit [Windows Community Toolkit Wiki](https://aka.ms/wct/wiki) where you can find complete and detail-oriented content of this page** :rotating_light:
88

99
## <a name="question"></a> Questions :grey_question:
10+
1011
Due to the high volume of incoming issues please keep our GitHub issues for bug reports and feature requests. For general questions, there is a higher chance of getting your question answered on [StackOverflow](https://stackoverflow.com/questions/tagged/windows-community-toolkit) where questions should be tagged with the tag windows-community-toolkit.
1112

1213
For missing documentation related question, please file an issue at [Microsoft Docs](https://github.com/MicrosoftDocs/WindowsCommunityToolkitDocs/issues/new).
1314

1415
## <a name="bug"></a> Fix a Bug :bug:
16+
1517
If you find any bug, you can help the community by [submitting an issue](https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/new?assignees=&labels=bug+%3Abug%3A&template=bug_report.md&title=). Once the issue is filed, feel free to start working on the PR and submit a PR.
1618

1719
## <a name="issue"></a>Good First Issue :ok_hand:
20+
1821
If this is your first time contributing to the Windows Community Toolkit and do not have advanced level programming experience, we have got you covered :boom: WCT has a list of [good first issue](https://github.com/CommunityToolkit/WindowsCommunityToolkit/labels/good%20first%20issue%20%3Aok_hand%3A) that can be a great entryway to find and fix any issues that best fit your expertise or technical background.
1922

2023
## <a name="help"></a>Help Wanted :raising_hand:
24+
2125
WCT has a list of issues that are labeled as [help wanted](https://github.com/CommunityToolkit/WindowsCommunityToolkit/labels/help%20wanted%20%3Araising_hand%3A). The level of complexity in the list can vary but if you have an advanced level of programming experience, feel free to jump in to solve these issues.
2226

2327
## <a name="feature"></a>Add New Feature :mailbox_with_mail:
24-
* To contribute a new feature, fill out the [Feature Request Template](https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/new?assignees=&labels=feature+request+%3Amailbox_with_mail%3A&template=feature_request.md&title=%5BFeature%5D) and provide detailed information to express the proposal.
25-
* Once the Feature Request is submitted, it will be open for discussion.
26-
* If it gets approved by the team, proceed to submit a PR of the proposed Feature.
27-
* If the PR contains an error-free code and the reviewer signs off, the PR will be merged.
28+
29+
* To contribute a new feature, fill out the [Feature Request Template](https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/new?assignees=&labels=feature+request+%3Amailbox_with_mail%3A&template=feature_request.md&title=%5BFeature%5D) and provide detailed information to express the proposal.
30+
* Once the Feature Request is submitted, it will be open for discussion.
31+
* If it gets approved by the team, proceed to submit a PR of the proposed Feature.
32+
* If the PR contains an error-free code and the reviewer signs off, the PR will be merged.
2833

2934
## <a name="docs"></a> Add or Improve Documentation :page_with_curl:
3035

3136
Due to the involvement of multiple steps to add or improve documents; it is required to visit [Windows Community Toolkit Wiki](https://aka.ms/wct/wiki) and follow contribution guidelines.
3237

3338
## <a name="pr"></a>Create, Submit or Review Pull Request :rocket:
39+
3440
Anyone with write access can create a Pull Request by forking the Windows Community Toolkit Repository. Here is how you can [Create a Pull Request from fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork). Once you fork the Windows Community Toolkit repo, it is essential to create all changes in the feature branch of your forked repository. If you have the changes in the forked feature branch, you can then create a Pull Request in the main Windows Community Toolkit.
3541

3642
Please visit [Windows Community Toolkit Wiki](https://aka.ms/wct/wiki) for detailed information and steps it requires to Submit or Review Pull Request.
3743

3844
# ThankYou :heart::heart:
45+
3946
**Thank you so much for contributing to this amazing project. We hope you will continue to add value and find yourself as a highly reliable source to the Windows Community Toolkit**

Microsoft.Toolkit.Uwp.SampleApp/ReadMe.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
For the latest info, [visit the wiki article here](https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki/Sample-Development).
23

34
# How to add new samples
@@ -8,6 +9,7 @@ This document describes how to add a new sample page for a new control you want
89

910

1011
## 1. Add Sample page and .bind template
12+
1113
First you need to create a Xaml page in the folder /SamplePages/YourControl. This will be the logical page used to by the app to navigate to the sample and contains code.
1214

1315
If providing 'live' XAML, a .bind file is loaded and dynamically fed to the XamlReader.Load method to convert into actual controls. This changes a few things about how samples need to be written (detailed below), but allows developers to actually change the sample and see the results live.
@@ -16,6 +18,7 @@ This not only gives us a killer sample app, but it also means that all our sampl
1618

1719

1820
## 2. Binding text
21+
1922
The .bind files are templates which use @[Property Name:Type:DefaultValue:Options] syntax to allow for customized options to be presented to the user in the sample app. The user can play with the values in the property page and see results change instantly. This is accomplished by using {Binding} syntax when on the property page, but switches to the raw value when the developer goes to the XAML page.
2023

2124
This makes it easy for a developer to test out values for a control and then copy the XAML needed for that exact result into their app.
@@ -30,10 +33,10 @@ Here is an example:
3033
<ColumnDefinition></ColumnDefinition>
3134
</Grid.ColumnDefinitions>
3235
<TextBlock Grid.Column="1"
33-
Text="@[Text:String:Hey!]" Foreground="Black"
34-
FontSize="@[FontSize:Slider:12:10-30]"
35-
VerticalAlignment="@[Vertical Alignment:Enum:VerticalAlignment.Center]">
36-
</TextBlock>
36+
Text="@[Text:String:Hey!]" Foreground="Black"
37+
FontSize="@[FontSize:Slider:12:10-30]"
38+
VerticalAlignment="@[Vertical Alignment:Enum:VerticalAlignment.Center]">
39+
</TextBlock>
3740
</Grid>
3841
```
3942

@@ -86,12 +89,14 @@ Value="@[Value:Slider:0:0-180]@"
8689
```
8790

8891
## 3. Have a *'Shallow Copy'* of your example in the sample page
92+
8993
Even though the sample page content is ignored and the dynamic template injected, for the XamlReader to access some classes, a reference to the item is sometimes needed in the hosting app for it to be accessible. (I assume it's an optimization thing.)
9094

9195
Therefore, for any new control/extension, you should still have a simplified snippet of it contained in the sample page compiled/loaded by the app. You should remove names, events, and properties (unless extensions) from these so the namespace isn't accidentally polluted. If you re-use the same control, you don't have to include it twice.
9296

9397

9498
## 4. For Events/Resource Templates: Have your sample page implement the **IXamlRendererListener** interface
99+
95100
This gets called whenever the template gets parsed (due to loading or user modification). Here you can use the [LogicalTree](https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/main/Microsoft.Toolkit.Uwp.UI/Extensions/Tree/LogicalTree.cs) extensions to grab named controls in the template and register their events. **Check for null first** as the developer may have removed the name from the element.
96101

97102
```csharp
@@ -106,6 +111,7 @@ You'll have to register all events and grab **control.Resources** for templates
106111

107112

108113
## 5. For Interactive Buttons: Use **SampleController.Current.RegisterNewCommand**
114+
109115
Buttons can be added through this command and are accessible in the main panel so they can be clicked when changing properties or editing XAML. It's important instead of using buttons in your sample (as events can't be directly used, see above) to register these commands.
110116

111117
```csharp
@@ -129,10 +135,12 @@ if (resources?.ContainsKey("ThingStyle") == true)
129135
```
130136

131137
## 6. *Optional:* If you need *extra stuff* around the sample
138+
132139
Now, the sample page content in the app is ignored, but you can override that behavior by adding a `<Grid x:Name="XamlRoot"/>` element to the page. If this element is found, it will serve as the host to the dynamic .bind content instead. In this manner you can have a status/warning message outside of the control of the developer in the XAML sample tab.
133140

134141

135142
# Update Samples.json
143+
136144
After creating your page and the binding text, you just need to reference it in the /SamplePages/samples.json file.
137145
Select the category where you want your page to be listed and add the following information:
138146

@@ -179,7 +187,6 @@ The value is a string which is the fully-qualified typename to check for the pre
179187

180188
If the specified type is not found on the system running the sample app the sample will not appear in the sample list.
181189

182-
183190
### Adding documentation
184191

185192
Every API must be accompanied by Markdown documentation in the [documentation repository](..\contributing.md#docs).
@@ -193,6 +200,7 @@ Use the DocumentationUrl property to add a link to the raw documentation in *sam
193200
> NOTE: The documentation is also packaged with the sample app. If there is no network connection, or the documentation is not yet on GitHub, the sample app will use the packaged version
194201

195202
> NOTE: To test your documentation in the sample app while running in debug mode, the docs repository will need to be cloned in the same folder as this repository and named **WindowsCommunityToolkitDocs**. For example, this folder structure works best:
203+
196204
> ```
197205
> repositories
198206
> ├── WindowsCommunityToolkit

0 commit comments

Comments
 (0)