-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add VB samples to docs #1977
Add VB samples to docs #1977
Conversation
And fixed some errors in C# samples Also fixed some typos
Also some typo fixes
Also fixed some typos and standardized spacing around codeblocks
ping @Vijay-Nirmal for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -35,6 +38,12 @@ anim.SetDurationForAll(2500); | |||
anim.SetDelay(250); | |||
anim.Start(); | |||
``` | |||
```vb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The XAML and C# titles should be removed since each code block already specifies the language.
@Vijay-Nirmal, should this be done in your PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
docs/services/Twitter.md
Outdated
' Open a connection with the stream service in order to receive live tweets and events | ||
ListView.ItemsSource = _tweets | ||
Await TwitterService.Instance.StartUserStreamAsync(Async Sub(tweet) | ||
Await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, Sub() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this normal to be indented like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VS auto indents like this. If it's unreadable on the docs site I can try and reformat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix submitted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Update .template.md file.
This PR should be open untill #1748 because that PR has some C# code.
…VBSamplesToDocs # Conflicts: # docs/animations/AnimationSet.md # docs/animations/FadeHeader.md # docs/animations/Saturation.md # docs/controls/BladeView.md # docs/controls/Carousel.md # docs/controls/HamburgerMenu.md # docs/controls/InAppNotification.md # docs/controls/RangeSelector.md # docs/helpers/AdvancedCollectionView.md # docs/helpers/BackgroundTaskHelper.md # docs/helpers/Colors.md # docs/helpers/DeepLinkParsers.md # docs/helpers/HttpHelper.md # docs/helpers/HttpHelperRequest.md # docs/helpers/HttpHelperResponse.md # docs/helpers/PrintHelper.md # docs/helpers/StorageFiles.md # docs/helpers/Streams.md # docs/services/Bing.md # docs/services/Facebook.md # docs/services/Linkedin.md # docs/services/MicrosoftGraph.md # docs/services/OneDrive.md # docs/services/Twitter.md
@nmetulev merge issues addressed and I've added VB versions of the new C# samples too |
@mrlacey Update .template.md file with the info to add VB codes. |
Looks good. Agree with @Vijay-Nirmal, should update the template with guidance around adding VB code, can you add it @mrlacey ? |
Plus, fixed a couple of other typos
I've updated the template as I feel is appropriate. |
Good point. How about we add a comment above the VB code block specifying that it is optional and ask the developer to add the dev lang at the top if they include VB? |
@nmetulev the comment I added to the template was
|
If we want to make it more optional, we should ask the developer to add the |
@nmetulev I've updated the template to make VB samples optional. Is this more in line with what you were thinking? |
This PR is linked to unclosed issues. Please check if one of these issues should be closed: #1865 |
Perfect, thank you, merged :) |
Issue: #1865
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Code samples are C# only
What is the new behavior?
Code samples for the website are now in C# and VB.Net
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
I've separately tested with @nmetulev that these changes will create the behavior on the website where a person can choose their preferred language from a menu on the side of the screen and then all samples will switch to that language.
Changes to the code included in the sample app will follow in a separate PR.