Skip to content

Commit 0e91ed8

Browse files
author
Qiutong Shen (from Dev Box)
committed
fix typo
1 parent 67c9703 commit 0e91ed8

20 files changed

Lines changed: 26 additions & 27 deletions

hub/apps/design/layout/attached-layouts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ The snippet below shows the additional logic that could be added to the MeasureO
597597

598598
for (int i = state.LastRealizedIndex; i < newLastRealizedIndex; i++)
599599
{
600-
context.RecycleElement(context.IndexElementMap.Get(i));
600+
context.RecycleElement(state.IndexToElementMap.Get(i));
601601
state.IndexToElementMap.Clear(i);
602602
}
603603

hub/apps/develop/dispatcherqueue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void RunCustomMessageLoop()
5555
{
5656
if (!ContentPreTranslateMessage(&msg))
5757
{
58-
TranslateMesasge(&msg);
58+
TranslateMessage(&msg);
5959
DispatchMessage(&msg);
6060
}
6161
}

hub/apps/develop/input/focus-navigation-programmatic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Here, we show how to specify that the buttons of a CommandBar have a wrap-around
306306
```csharp
307307
private void OnLosingFocus(UIElement sender, LosingFocusEventArgs args)
308308
{
309-
if (IsNotAChildOf(MyCommandBar, args.NewFocussedElement))
309+
if (IsNotAChildOf(MyCommandBar, args.NewFocusedElement))
310310
{
311311
DependencyObject candidate = null;
312312
if (args.Direction == FocusNavigationDirection.Left)

hub/apps/develop/launch/launch-the-default-app-for-a-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void MainPage::DefaultLaunch()
105105
{
106106
auto installFolder = Windows::ApplicationModel::Package::Current->InstalledLocation;
107107

108-
concurrency::task<Windows::Storage::StorageFile^getFileOperation(installFolder->GetFileAsync("images\\test.png"));
108+
concurrency::task<Windows::Storage::StorageFile^> getFileOperation(installFolder->GetFileAsync("images\\test.png"));
109109
getFileOperation.then([](Windows::Storage::StorageFile^ file)
110110
{
111111
if (file != nullptr)

hub/apps/develop/motion/motion-in-practice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ There may be times when the system does not yet provide an exact motion solution
2929
:::row:::
3030
:::column:::
3131
<b>Direction Forward Out:</b><br>
32-
Fade out: 150m; Easing: Default Accelerate
32+
Fade out: 150ms; Easing: Default Accelerate
3333
<b>Direction Forward In:</b><br>
3434
Slide up 150px: 300ms; Easing: Default Decelerate
3535
:::column-end:::

hub/apps/develop/motion/parallax.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ This example creates a parallax effect for a list:
6767
<x:String>Item 9</x:String>
6868
<x:String>Item 10</x:String>
6969
<x:String>Item 11</x:String>
70+
<x:String>Item 12</x:String>
7071
<x:String>Item 13</x:String>
7172
<x:String>Item 14</x:String>
7273
<x:String>Item 15</x:String>

hub/apps/develop/notifications/app-notifications/app-notifications-content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ The images you use in your app notification can be sourced from...
217217

218218
For http and https remote web images, there are limits on the file size of each individual image. The limit is 3 MB on normal connections and 1 MB on metered connections.
219219

220-
| Normal connection | Metered connection |
221-
| - | - |
220+
| Normal connection | Metered connection |
221+
| - | - |
222222
| 3 MB | 1 MB |
223223

224224
If an image exceeds the file size, or fails to download, or times out, the image will be dropped and the rest of the notification will be displayed.
@@ -239,7 +239,7 @@ On older versions of Windows that don't support attribution text, the text will
239239
var builder = new AppNotificationBuilder()
240240
.AddText("Marry Anne")
241241
.AddText("Check out where we camped last night!")
242-
.SetAttributionText("via SMS");
242+
.SetAttributionText("via SMS")
243243
.SetHeroImage(new Uri("ms-appx:///Images/HeroImage.png"));
244244
```
245245

hub/apps/develop/notifications/choosing-a-notification-delivery-method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This table summarizes the notification delivery types.
5151
<td align="left"><ul>
5252
<li>A music app updates its tile to show what's &quot;Now Playing&quot;.</li>
5353
<li>A game app updates its tile with the user's high score when the user leaves the game.</li>
54-
<li>A badge whose glyph indicates that there's new info int the app is cleared when the app is activated.</li>
54+
<li>A badge whose glyph indicates that there's new info in the app is cleared when the app is activated.</li>
5555
</ul></td>
5656
</tr>
5757
<tr class="even">

hub/apps/develop/notifications/push-notifications/push-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ request.AddHeader("Content-Type", "application/octet-stream");
480480
request.AddHeader("X-WNS-Type", "wns/raw");
481481
request.AddHeader("Authorization", "Bearer [your access token]");
482482
request.AddBody("Notification body");
483-
RestResponse response = await client.ExecutePostAsync(request);");
483+
RestResponse response = await client.ExecutePostAsync(request);
484484
```
485485

486486
### Step 3: Send a cloud-sourced app notification

hub/apps/develop/platform/xaml/themeresource-markup-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ As with **StaticResource**, a **ThemeResource** must not attempt to make a forwa
3838

3939
Attempting to specify a **ThemeResource** to a key that cannot resolve throws a XAML parse exception at run time. Design tools may also offer warnings or errors.
4040

41-
In the Windows Runtime XAML processor implementation, there is no backing class representation for **ThemeResource**. The closest equivalent in code is to use the collection API of a [**ResourceDictionary**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.ResourceDictionary), for example calling **Contains** or **TryGetValue*.
41+
In the Windows Runtime XAML processor implementation, there is no backing class representation for **ThemeResource**. The closest equivalent in code is to use the collection API of a [**ResourceDictionary**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.ResourceDictionary), for example calling **Contains** or **TryGetValue**.
4242

4343
**ThemeResource** is a markup extension. Markup extensions are typically implemented when there is a requirement to escape attribute values to be other than literal values or handler names, and the requirement is more global than just putting type converters on certain types or properties. All markup extensions in XAML use the "{" and "}" characters in their attribute syntax, which is the convention by which a XAML processor recognizes that a markup extension must process the attribute.
4444

0 commit comments

Comments
 (0)