Skip to content

Commit f583c44

Browse files
committed
Minor updates
1 parent 233a4b7 commit f583c44

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

active/Win32/Window_and_Application_API_Spec.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ it designates a TextBlock as the title bar.
203203
```CS
204204
private Window m_window;
205205

206-
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
206+
protected override void OnLaunched(Microsoft.UI.Xaml.XamlLaunchActivatedEventArgs args)
207207
{
208208
m_window = new MainWindow();
209209

@@ -307,7 +307,7 @@ This interface is implemented by `Window`, and in a Desktop app can be used to g
307307
the Window's underlying HWND.
308308

309309
```CS
310-
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs e)
310+
protected override void OnLaunched(Microsoft.UI.Xaml.XamlLaunchActivatedEventArgs e)
311311
{
312312
m_window = new MainWindow();
313313
m_window.Activate();
@@ -367,7 +367,7 @@ Invoked when the application is launched. Override this method to perform applic
367367
and to display initial content in the associated Window (UWP apps) or create a new Window (Desktop apps).
368368

369369
```CS
370-
protected virtual void OnLaunched(LaunchActivatedEventArgs args)
370+
protected virtual void OnLaunched(XamlLaunchActivatedEventArgs args)
371371
```
372372

373373
> This method is typically created automatically when a project is created.
@@ -378,7 +378,7 @@ You can then modify it or remove it.
378378
In a Desktop app, use OnLaunched to create the main window and pass it the first command line argument.
379379

380380
```CS
381-
protected override void OnLaunched(LaunchActivatedEventArgs e)
381+
protected override void OnLaunched(XamlLaunchActivatedEventArgs e)
382382
{
383383
MainWindow mainWindow = new MainWindow();
384384

@@ -396,7 +396,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
396396
In a UWP app,
397397

398398
```CS
399-
protected override void OnLaunched(LaunchActivatedEventArgs e)
399+
protected override void OnLaunched(XamlLaunchActivatedEventArgs e)
400400
{
401401
MainPage page = new MainPage();
402402

@@ -496,7 +496,7 @@ Windows.UI.Core.[WindowSizeChangedEventArgs](https://docs.microsoft.com/uwp/api/
496496

497497
Contains the argument returned by a window size change event.
498498

499-
### XamlWindowSizeChangedEventArgs
499+
### XamlWindowSizeChangedEventArgs Properties
500500

501501
**Handled**
502502

@@ -527,11 +527,13 @@ In a UWP app, this is equivalent to LaunchActivatedEventArgs.Arguments.
527527
public String Arguments { get; };
528528
```
529529

530-
**UWPLaunchActivatedEventArgs**
531-
Gets the LaunchActivatedEventArgs from UWP. This property is null in a Desktop app.
530+
**LaunchActivatedEventArgs**
531+
Gets the
532+
[LaunchActivatedEventArgs](https://docs.microsoft.com/uwp/api/Windows.ApplicationModel.Activation.LaunchActivatedEventArgs)
533+
in a UWP app. This property is null in a Desktop app.
532534

533535
```CS
534-
public Windows.ApplicationModel.Activation.LaunchActivatedEventArgs UWPLaunchActivatedEventArgs { get; };
536+
public Windows.ApplicationModel.Activation.LaunchActivatedEventArgs LaunchActivatedEventArgs { get; };
535537
```
536538

537539
# API Details
@@ -552,7 +554,7 @@ unsealed runtimeclass Window
552554

553555
// These APIs match the system Xaml versions, except the event args are now from the Xaml namespace
554556
event Windows.Foundation.TypedEventHandler<Object,Microsoft.UI.Xaml.XamlWindowActivatedEventArgs> Activated;
555-
event Windows.Foundation.TypedEventHandler<Object,Microsoft.UI.Xaml.XamlWindowEventArgs> Closed;
557+
event Windows.Foundation.TypedEventHandler<Object,Microsoft.UI.Xaml.XamlWindowClosedEventArgs> Closed;
556558
event Windows.Foundation.TypedEventHandler<Object,Microsoft.UI.Xaml.XamlWindowSizeChangedEventArgs> SizeChanged;
557559
event Windows.Foundation.TypedEventHandler<Object,Microsoft.UI.Xaml.XamlWindowVisibilityChangedEventArgs> VisibilityChanged;
558560

@@ -643,4 +645,11 @@ runtimeclass XamlWindowVisibilityChangedEventArgs
643645
};
644646
```
645647

648+
```cs
649+
[webhosthidden]
650+
runtimeclass XamlWindowClosedEventArgs
651+
{
652+
Boolean Handled;
653+
};
654+
```
646655

0 commit comments

Comments
 (0)