Skip to content

Commit 9141943

Browse files
committed
repo sync private>public
1 parent ce0dda1 commit 9141943

266 files changed

Lines changed: 3274 additions & 1052 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

es-metadata.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
schemaVersion: 0.0.1
2+
isProduction: false
3+
accountableOwners:
4+
service: 889d777d-4106-4515-8a69-612f828aabbd
5+
routing:
6+
defaultAreaPath:
7+
org: ceapex
8+
path: Engineering\Contributor Experiences\Governance\Repository

windows.ai.actions/actionentityfactory_createtableentity_1260648862.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ The number of columns in the table. The system determines the number of rows by
2626

2727
## -returns
2828

29+
A new **TableActionEntity**.
30+
2931
## -remarks
3032

3133
## -see-also
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
-api-id: M:Windows.AI.Actions.ActionEntityFactory.CreateUriEntity(Windows.Foundation.Uri)
3+
-api-type: winrt method
4+
---
5+
6+
# Windows.AI.Actions.ActionEntityFactory.CreateUriEntity(Windows.Foundation.Uri)
7+
8+
<!--
9+
public Windows.AI.Actions.UriActionEntity CreateUriEntity (System.Uri Uri);
10+
-->
11+
12+
13+
## -description
14+
15+
Creates a new instance of [UriActionEntity](uriactionentity.md).
16+
17+
## -parameters
18+
19+
### -param Uri
20+
21+
The URI associated with the **UriActionEntity**.
22+
23+
## -returns
24+
25+
A new **UriActionEntity**.
26+
27+
## -remarks
28+
29+
## -see-also
30+
31+
## -examples
32+
33+

windows.ai.actions/actionentitykind.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,24 @@ The entity is a [RemoteFileActionEntity](remotefileactionentity.md).
4646

4747
### -field Table: 7
4848

49+
The entity is a [TableActionEntity](tableactionentity.md).
50+
4951
### -field Contact: 8
5052

53+
The entity is a [ContactActionEntity](contactactionentity.md).
54+
55+
### -field Uri: 9
56+
57+
The entity is a [UriActionEntity](uriactionentity.md).
58+
59+
### -field Array: 10
60+
61+
### -field Appointment: 11
62+
63+
### -field Date: 12
64+
65+
### -field CustomText: 13
66+
5167
## -remarks
5268

5369
This enumeration is used by the [ActionEntity.Kind](actionentity_kind.md) property.

windows.ai.actions/contactactionentity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public sealed class ContactActionEntity : Windows.AI.Actions.ActionEntity
1212

1313
## -description
1414

15-
A subtype of [ActionEntity](actionentity.md) that represents a document.
15+
A subtype of [ActionEntity](actionentity.md) that represents a contact.
1616

1717
## -remarks
1818

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
-api-id: T:Windows.AI.Actions.UriActionEntity
3+
-api-type: winrt class
4+
---
5+
6+
# Windows.AI.Actions.UriActionEntity
7+
8+
<!--
9+
public sealed class UriActionEntity : Windows.AI.Actions.ActionEntity
10+
-->
11+
12+
13+
## -description
14+
15+
A subtype of [ActionEntity](actionentity.md) that represents a URI.
16+
17+
## -remarks
18+
19+
Create an instance of this class by calling [ActionEntityFactory.CreateUriEntity](actionentityfactory_createurientity_492063993.md).
20+
21+
Actions can use a *where* clause in their input combination declaration to specify that they are able to operate on one or more [Uri.Scheme](/dotnet/api/system.uri.scheme) values. For more information, see [Action definition JSON schema for App Actions on Windows](/windows/ai/app-actions/actions-json).
22+
23+
## -see-also
24+
25+
## -examples
26+
27+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
-api-id: P:Windows.AI.Actions.UriActionEntity.Uri
3+
-api-type: winrt property
4+
---
5+
6+
# Windows.AI.Actions.UriActionEntity.Uri
7+
8+
<!--
9+
public System.Uri Uri { get; }
10+
-->
11+
12+
13+
## -description
14+
15+
Gets the URI associated with the **UriActionEntity**.
16+
17+
## -property-value
18+
19+
The URI associated with the **URIActionEntity**.
20+
21+
## -remarks
22+
23+
## -see-also
24+
25+
## -examples
26+
27+

windows.applicationmodel.activation/activationkind.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ The app was activated in response to a phone call.
203203

204204
The app is a VPN foreground app that was activated by the plugin. For more details, see [VpnChannel.ActivateForeground](../windows.networking.vpn/ivpnplugin_encapsulate_494498240.md).
205205

206+
### -field PrintSupportEnterpriseManagementUI: 1027
207+
208+
The app is a print support app that was activated by the Print Management Console.
209+
206210
## -remarks
207211

208212
Values are mutually exclusive and cannot be combined. Each one relates to a different type of activation, and an app instance can be activated in only one way at a time.

windows.applicationmodel.core/coreapplicationview_ishosted.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,47 @@ public bool IsHosted { get; }
1010
# Windows.ApplicationModel.Core.CoreApplicationView.IsHosted
1111

1212
## -description
13-
Gets the value that indicates whether this app view is hosted or not.
13+
14+
Gets the value that indicates whether this app view is hosted.
1415

1516
## -property-value
16-
If **true**, this app view is hosted; if **false**, it is not.
17+
18+
If **true**, this app view is hosted; if **false**, it isn't.
1719

1820
## -remarks
19-
An app view is considered hosted when the process that launched it controls its lifetime. For example, the window that opens when a [FileOpenPicker](../windows.storage.pickers/fileopenpicker.md) is launched is considered hosted.
21+
22+
An app view is hosted when the process that launches it controls its lifetime. For example, the window that opens when a [FileOpenPicker](../windows.storage.pickers/fileopenpicker.md) is launched is hosted.
2023

2124
## -examples
2225

26+
Here's a simple example that demonstrates how to use the `IsHosted` property:
27+
28+
```csharp
29+
using Windows.ApplicationModel.Core;
30+
using Windows.UI.Xaml;
31+
32+
namespace ExampleApp
33+
{
34+
public sealed partial class MainPage : Page
35+
{
36+
public MainPage()
37+
{
38+
this.InitializeComponent();
39+
40+
// Check if the current app view is hosted
41+
bool isHosted = CoreApplication.GetCurrentView().IsHosted;
42+
43+
// Display the result
44+
if (isHosted)
45+
{
46+
System.Diagnostics.Debug.WriteLine("The app view is hosted.");
47+
}
48+
else
49+
{
50+
System.Diagnostics.Debug.WriteLine("The app view is not hosted.");
51+
}
52+
}
53+
}
54+
}
55+
2356
## -see-also

windows.applicationmodel.datatransfer.dragdrop.core/coredragdropmanager.md

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,67 @@ public class CoreDragDropManager : Windows.ApplicationModel.DataTransfer.DragDro
1111
# Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager
1212

1313
## -description
14+
1415
Manages access for drag and drop within and between apps.
1516

1617
## -remarks
1718

1819
## -examples
20+
21+
The following example demonstrates how to use the `CoreDragDropManager` to set up a drag-and-drop target that filters incoming data and delegates handling to a specified control.
22+
1923
```csharp
24+
using System;
25+
using Windows.ApplicationModel.DataTransfer;
26+
using Windows.ApplicationModel.DataTransfer.DragDrop.Core;
27+
using Windows.UI.Xaml.Controls;
28+
2029
public sealed partial class MainPage : Page
2130
{
22-
private void DropOperationTargetRequested(CoreDragDropManager sender,
23-
CoreDropOperationTargetRequestedEventArgs evtArgs)
24-
{
25-
// Create a target (see above for more implementation details)
26-
var target = new DropTarget ();
27-
evtArgs.SetTarget(target);
28-
}
29-
30-
public MainPage()
31-
{
32-
InitializeComponents();
33-
var dragDropManager = DragDropManager.GetForCurrentView();
34-
dragDropManager.DropOperationTargetRequested += DropOperationTargetRequested;
35-
}
36-
}
31+
private void DropOperationTargetRequested(CoreDragDropManager sender, CoreDropOperationTargetRequestedEventArgs evtArgs)
32+
{
33+
// Create a target (see above for more implementation details)
34+
var target = new DropTarget();
3735

38-
```
36+
// Example filter: Only allow storage files
37+
target.DragOver += (s, e) =>
38+
{
39+
if (e.DataView.Contains(StandardDataFormats.StorageItems))
40+
{
41+
e.AcceptedOperation = DataPackageOperation.Copy;
42+
}
43+
else
44+
{
45+
e.AcceptedOperation = DataPackageOperation.None;
46+
}
47+
};
3948

49+
// Delegate handling to a specified control
50+
target.Drop += (s, e) =>
51+
{
52+
// Assuming 'specifiedControl' is a UI element in your app
53+
specifiedControl.HandleDrop(e);
54+
};
4055

56+
evtArgs.SetTarget(target);
57+
}
58+
59+
public MainPage()
60+
{
61+
InitializeComponent();
62+
var dragDropManager = CoreDragDropManager.GetForCurrentView();
63+
dragDropManager.TargetRequested += DropOperationTargetRequested;
64+
}
65+
}
66+
67+
// Example of a specified control handling the drop
68+
public class SpecifiedControl : UserControl
69+
{
70+
public void HandleDrop(CoreDragInfo dragInfo)
71+
{
72+
// Handle the drop operation here
73+
}
74+
}
75+
```
4176

4277
## -see-also

0 commit comments

Comments
 (0)