Skip to content

Commit 12d6a44

Browse files
committed
Initial commit for wasdk file-folder content
1 parent cd04e56 commit 12d6a44

12 files changed

+110
-17
lines changed

hub/apps/develop/data-and-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The [Windows App SDK](../windows-app-sdk/index.md) provides the following featur
2222

2323
Windows 10 and later OS releases provide a wide variety of APIs related to data and files scenarios for apps. These features are available via a combination of WinRT and Win32 (C++ and COM) APIs provided by the [Windows SDK](https://developer.microsoft.com/windows/downloads/windows-sdk).
2424

25-
#### WinRT APIs
25+
### WinRT APIs
2626

2727
The following articles provide information about features available via WinRT APIs provided by the Windows SDK.
2828

@@ -32,7 +32,7 @@ The following articles provide information about features available via WinRT AP
3232
| [Data binding](/windows/uwp/data-binding/) | Learn how to bind your app's UI to data and keep the UI in sync with changes to the data. |
3333
| [Files, folders, and libraries](/windows/uwp/files/) | Learn how to read and write text and other data formats in files, and to manage files and folders. |
3434

35-
#### Win32 (C++ and COM) APIs
35+
### Win32 (C++ and COM) APIs
3636

3737
The following articles provide information about features available via Win32 (C++ and COM) APIs provided by the Windows SDK.
3838

hub/apps/develop/data-binding/bind-to-hierarchical-data-and-create-a-master-details-view.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
ms.assetid: 6c563dd4-3dd0-4175-a1ab-7a1103fc9559
3-
title: Bind hierarchical data and create a master/details view
3+
title: Bind hierarchical data and create a master/details view with Windows App SDK
44
description: You can make a multi-level master/details (also known as list-details) view of hierarchical data by binding items controls to CollectionViewSource instances that are bound together in a chain.
55
ms.date: 12/13/2022
66
ms.topic: article
77
keywords: windows 10, windows 11, winui, windows app sdk, windows ui, xBind
88
ms.localizationpriority: medium
99
---
1010

11-
# Bind hierarchical data and create a master/details view
11+
# Bind hierarchical data and create a master/details view with Windows App SDK
1212

1313
> [!NOTE]
1414
> Also see the [Master/detail UWP sample](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/XamlMasterDetail).

hub/apps/develop/data-binding/data-binding-and-mvvm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
ms.assetid: b7a8ec88-3013-4e5a-a110-fab3f20ee4bf
3-
title: Data binding and MVVM
3+
title: Windows data binding and MVVM
44
description: Data binding is at the core of the Model-View-ViewModel (MVVM) UI architectural design pattern, and enables loose coupling between UI and non-UI code.
55
ms.date: 12/13/2022
66
ms.topic: article
77
keywords: windows 10, windows 11, windows app sdk, winui, windows ui, mvvm
88
ms.localizationpriority: medium
99
---
1010

11-
# Data binding and MVVM
11+
# Windows data binding and MVVM
1212

1313
Model-View-ViewModel (MVVM) is a UI architectural design pattern for decoupling UI and non-UI code. With MVVM, you define your UI declaratively in XAML and use data binding markup to link it to other layers containing data and commands. The data binding infrastructure provides a loose coupling that keeps the UI and the linked data synchronized and routes user input to the appropriate commands.
1414

hub/apps/develop/data-binding/data-binding-in-depth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
ms.assetid: 2a50c798-6244-4fda-9091-a10a9e87fae2
3-
title: Data binding in depth
3+
title: Windows data binding in depth
44
description: Learn how to use data binding in Windows App SDK applications
55
ms.date: 12/12/2022
66
ms.topic: article
@@ -11,7 +11,7 @@ dev_langs:
1111
- cppwinrt
1212
---
1313

14-
# Data binding in depth
14+
# Windows data binding in depth
1515

1616
In this article, we will describe the Windows App SDK data binding features for the APIs that reside in the [**Microsoft.UI.Xaml.Data** namespace](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data).
1717

hub/apps/develop/data-binding/data-binding-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
ms.assetid: 02a08657-285d-4804-a006-168c22aa4904
3-
title: Data binding overview
3+
title: Windows data binding overview
44
description: This topic shows you how to bind a control (or other UI element) to a single item or bind an item's control to a collection of items in a Windows App SDK app.
55
ms.date: 12/12/2022
66
ms.topic: article
@@ -10,7 +10,7 @@ dev_langs:
1010
- csharp
1111
---
1212

13-
# Data binding overview
13+
# Windows data binding overview
1414

1515
This topic shows you how to bind a control (or other UI element) to a single item or bind an items control to a collection of items in a Windows App SDK app. In addition, we show how to control the rendering of items, implement a details view based on a selection, and convert data for display. For more detailed info, see [Data binding in depth](data-binding-in-depth.md).
1616

hub/apps/develop/data-binding/function-bindings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
description: Learn about using functions as the leaf step of the data binding path in the xBind markup extension.
3-
title: Functions in x:Bind
3+
title: Functions in x:Bind with Windows App SDK
44
ms.date: 12/13/2022
55
ms.topic: article
66
keywords: windows 10, windows 11, windows app sdk, xaml, winui, windows ui, xBind
77
ms.localizationpriority: medium
88
---
99

10-
# Functions in x:Bind
10+
# Functions in x:Bind with Windows App SDK
1111

1212
> [!NOTE]
1313
> For general info about using data binding in your app with `{x:Bind}` (and for an all-up comparison between `{x:Bind}` and `{Binding}`), see [Data binding in depth](data-binding-in-depth.md) and [{x:Bind} Markup Extension](/windows/uwp/xaml-platform/x-bind-markup-extension).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
ms.assetid: 5931d63c-6b80-4e47-b371-ee299e308b8e
3+
title: Access files and folders with Windows App SDK and .NET
4+
description: Learn about reading and writing files, working with folders, and reading drive and volume information with .NET APIs and the Windows App SDK.
5+
ms.date: 06/16/2023
6+
ms.topic: article
7+
keywords: windows 10, windows 11, windows, winui, windows app sdk, dotnet
8+
ms.localizationpriority: medium
9+
---
10+
# Access files and folders with Windows App SDK and .NET
11+
12+
## Read and write files with .NET APIs
13+
14+
## Working with drives and folders in .NET
15+
16+
## See also

hub/apps/develop/files/index.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
ms.assetid: 33d8df1e-898d-48b7-9399-1aee673490d9
3+
title: Files, folders, and libraries with Windows App SDK
4+
description: Learn about reading and writing app settings, file and folder pickers, and special sand-boxed locations such as the Video/Music library with Windows App SDK apps.
5+
ms.date: 06/16/2023
6+
ms.topic: article
7+
keywords: windows 10, windows 11, windows, winui, windows app sdk, winrt, dotnet
8+
ms.localizationpriority: medium
9+
---
10+
# Files, folders, and libraries with Windows App SDK
11+
12+
Packaged Windows App SDK apps can use the APIs in the [Windows.Storage](/uwp/api/Windows.Storage), [Windows.Storage.Streams](/uwp/api/Windows.Storage.Streams), and [Windows.Storage.Pickers](/uwp/api/Windows.Storage.Pickers) namespaces to read and write text and other data formats in files, and to manage files and folders. In this section, you'll also learn about reading and writing app settings, about file and folder pickers, and about special sand-boxed locations such as the Video/Music library.
13+
14+
Windows 10 and later OS releases provide a wide variety of APIs related to files, folders, libraries, and settings for apps. These features are available via a combination of WinRT and .NET APIs provided by the [Windows SDK](https://developer.microsoft.com/windows/downloads/windows-sdk) and [.NET SDK](https://dotnet.microsoft.com/en-us/download).
15+
16+
## Read and write data with WinRT storage APIs
17+
18+
Packaged apps have access to all the WinRT storage APIs available to UWP apps. Whether you're migrating an existing UWP app or creating a new app, you can use these APIs to read and write data. For examples of using the storage APIs in a WinUI app, see [Access files and folders with Windows App SDK and WinRT APIs](winrt-files.md).
19+
20+
## Read and write data with .NET file APIs
21+
22+
In addition to the WinRT APIs, packaged apps can use the .NET APIs in the [System.IO](/dotnet/api/system.io) namespace to read and write data. When a new WinUI 3 project is created, its `Package.appxmanifest` file contains the following setting:
23+
24+
``` xml
25+
<Capabilities>
26+
<rescap:Capability Name="runFullTrust" />
27+
</Capabilities>
28+
```
29+
30+
Declaring this restricted capability provides full access to the file system, registry, and other restricted capabilities. For more info, see [Restricted capability declarations](/windows/uwp/packaging/app-capability-declarations#restricted-capability-declarations). In other words, the app has the same access to the file system as any other .NET desktop app when using the .NET file APIs.
31+
32+
For examples of using the .NET APIs in a WinUI app, see [Access files and folders with Windows App SDK and .NET APIs](dotnet-files.md).
33+
34+
## Additional resources for working with files and folders
35+
36+
| Topic | Description |
37+
|-------|-------------|
38+
| [Enumerate and query files and folders](/windows/uwp/files/quickstart-listing-files-and-folders) | Access files and folders in either a folder, library, device, or network location. You can also query the files and folders in a location by constructing file and folder queries. |
39+
| [Create, write, and read a file](/windows/uwp/files/quickstart-reading-and-writing-files) | Read and write a file using a [StorageFile](/uwp/api/Windows.Storage.StorageFile) object. |
40+
| [Best practices for writing to files](/windows/uwp/files/best-practices-for-writing-to-files) | Learn best practices for using various file writing methods of the [FileIO](/uwp/api/windows.storage.fileio) and [PathIO](/uwp/api/windows.storage.pathio) classes. |
41+
| [Get file properties](/windows/uwp/files/quickstart-getting-file-properties) | Get properties—top-level, basic, and extended—for a file represented by a [StorageFile](/uwp/api/Windows.Storage.StorageFile) object. |
42+
| [Open files and folders with a picker](/windows/uwp/files/quickstart-using-file-and-folder-pickers) | Access files and folders by letting the user interact with a picker. You can use the [FolderPicker](/uwp/api/Windows.Storage.Pickers.FolderPicker) to gain access to a folder. |
43+
| [Save a file with a picker](/windows/uwp/files/quickstart-save-a-file-with-a-picker) | Use [FileSavePicker](/uwp/api/Windows.Storage.Pickers.FileSavePicker) to let users specify the name and location where they want your app to save a file. |
44+
| [Accessing HomeGroup content](/windows/uwp/files/quickstart-accessing-homegroup-content) | Access content stored in the user's HomeGroup folder, including pictures, music, and videos. |
45+
| [Determining availability of Microsoft OneDrive files](/windows/uwp/files/quickstart-determining-availability-of-microsoft-onedrive-files) | Determine if a Microsoft OneDrive file is available using the [StorageFile.IsAvailable](/uwp/api/windows.storage.storagefile.isavailable) property. |
46+
| [Files and folders in the Music, Pictures, and Videos libraries](/windows/uwp/files/quickstart-managing-folders-in-the-music-pictures-and-videos-libraries) | Add existing folders of music, pictures, or videos to the corresponding libraries. You can also remove folders from libraries, get the list of folders in a library, and discover stored photos, music, and videos. |
47+
| [Track recently used files and folders](/windows/uwp/files/how-to-track-recently-used-files-and-folders) | Track files that your user accesses frequently by adding them to your app's most recently used list (MRU). The platform manages the MRU for you by sorting items based on when they were last accessed, and by removing the oldest item when the list's 25-item limit is reached. All apps have their own MRU. |
48+
| [Track file system changes in the background](/windows/uwp/files/change-tracking-filesystem) | Track changes to the file system, even when the app isn't running.|
49+
| [Access the SD card](/windows/uwp/files/access-the-sd-card) | You can store and access non-essential data on an optional microSD card, especially on low-cost mobile devices that have limited internal storage. |
50+
| [Fast access to file properties](/windows/uwp/files/fast-file-properties) | Efficiently gather a list of files and their properties from a library to use via the Windows Runtime APIs. |
51+
52+
## See also

hub/apps/develop/files/winrt-files.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
ms.assetid: 385ede76-fb55-4ef4-a16b-3d9ccfc7367a
3+
title: Access files and folders with Windows App SDK and WinRT APIs
4+
description: Learn about using WinRT APIs with Windows App SDK apps for reading and writing app settings, file and folder pickers, and special sand-boxed locations such as the Video/Music library.
5+
ms.date: 06/16/2023
6+
ms.topic: article
7+
keywords: windows 10, windows 11, windows, winui, windows app sdk, winrt
8+
ms.localizationpriority: medium
9+
---
10+
# Access files and folders with Windows App SDK and WinRT APIs
11+
12+
## Query files and folders
13+
14+
## Get file properties
15+
16+
## Files and folders in Windows libraries
17+
18+
## See also

hub/apps/toc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,14 @@ items:
441441
href: develop/data-binding/bind-to-hierarchical-data-and-create-a-master-details-view.md
442442
- name: Data binding and MVVM
443443
href: develop/data-binding/data-binding-and-mvvm.md
444+
- name: Files, folders, and libraries
445+
items:
446+
- name: Files, folders, and libraries
447+
href: develop/files/index.md
448+
- name: Access files and folders with .NET
449+
href: develop/files/dotnet-files.md
450+
- name: File access with Windows Runtime APIs
451+
href: develop/files/winrt-files.md
444452
- name: Data and files overview
445453
href: develop/data-and-files.md
446454
- name: Communication

0 commit comments

Comments
 (0)