Skip to content

Commit c03ce47

Browse files
committed
update UWP to WinUI
1 parent a7fdc62 commit c03ce47

11 files changed

Lines changed: 31 additions & 31 deletions

hub/apps/develop/files/best-practices-writing-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Best practices for writing to files
33
description: Learn best practices for using various file writing methods of the FileIO and PathIO classes.
44
ms.date: 02/06/2019
55
ms.topic: best-practice
6-
keywords: windows 10, uwp
6+
keywords: windows 10, winui
77
ms.localizationpriority: medium
88
---
99
# Best practices for writing to files
@@ -55,7 +55,7 @@ To protect the integrity of the original file in case something goes wrong while
5555

5656
The following diagram illustrates the underlying tasks performed by the WriteTextAsync method in a successful write operation. This illustration provides a simplified view of the operation. For example, it skips steps such as text encoding and async completion on different threads.
5757

58-
![UWP API call sequence diagram for writing to a file](images/file-write-call-sequence.png)
58+
![WinRT API call sequence diagram for writing to a file](images/file-write-call-sequence.png)
5959

6060
The advantages of using the Write methods of the [FileIO](/uwp/api/Windows.Storage.FileIO) and [PathIO](/uwp/api/windows.storage.pathio) classes instead of the more complex four-step model using a stream are:
6161

hub/apps/develop/files/change-tracking-filesystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Track file system changes in the background
33
description: Describes how to track changes in files and folders in the background as users move them around the system.
44
ms.date: 12/19/2018
55
ms.topic: how-to
6-
keywords: windows 10, uwp
6+
keywords: windows 10, winui
77
ms.localizationpriority: medium
88
---
99

hub/apps/develop/files/create-read-write-files.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
ms.assetid: 27914C0A-2A02-473F-BDD5-C931E3943AA0
33
title: Create, write, and read a file
4-
description: Learn how to create, write, and read a file using the Universal Windows Platform (UWP) objects FileIO, StorageFolder, and StorageFile.
4+
description: Learn how to create, write, and read a file using the WinUI objects FileIO, StorageFolder, and StorageFile.
55
ms.date: 12/19/2018
66
ms.topic: article
7-
keywords: windows 10, uwp
7+
keywords: windows 10, winui
88
ms.localizationpriority: medium
99
dev_langs:
1010
- csharp
@@ -27,7 +27,7 @@ Read and write a file using a [StorageFile](/uwp/api/windows.storage.storagefile
2727
2828
## Prerequisites
2929

30-
- **Understand async programming for Universal Windows Platform (UWP) apps**
30+
- **Understand async programming for WinUI apps**
3131

3232
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++/WinRT, see [Concurrency and asynchronous operations with C++/WinRT](/windows/uwp/cpp-and-winrt-apis/concurrency). To learn how to write asynchronous apps in C++/CX, see [Asynchronous programming in C++/CX](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
3333

hub/apps/develop/files/determine-availability-microsoft-onedrive-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Determining availability of Microsoft OneDrive files
44
description: Determine if a Microsoft OneDrive file is available using the StorageFile.IsAvailable property.
55
ms.date: 02/08/2017
66
ms.topic: how-to
7-
keywords: windows 10, uwp
7+
keywords: windows 10, winui
88
ms.localizationpriority: medium
99
---
1010
# Determining availability of Microsoft OneDrive files
@@ -20,7 +20,7 @@ Determine if a Microsoft OneDrive file is available using the [StorageFile.IsAva
2020

2121
## Prerequisites
2222

23-
- **Understand async programming for Universal Windows Platform (UWP) apps**
23+
- **Understand async programming for WinUI apps**
2424

2525
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
2626

hub/apps/develop/files/fast-file-properties.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
title: Fast access to file properties in UWP
3-
description: Efficiently gather a list of files and their properties from a library to use in a UWP app.
2+
title: Fast access to file properties in WinUI
3+
description: Efficiently gather a list of files and their properties from a library to use in a WinUI app.
44
ms.date: 02/06/2019
55
ms.topic: article
6-
keywords: windows 10, uwp, file, properties
6+
keywords: windows 10, winui, file, properties
77
ms.localizationpriority: medium
88
---
9-
# Fast access to file properties in UWP 
9+
# Fast access to file properties in WinUI 
1010

1111
Learn how to quickly gather a list of files and their properties from a library and use those properties in an app.  
1212

1313
Prerequisites 
14-
- **Asynchronous programming for Universal Windows Platform (UWP) apps**  
14+
- **Asynchronous programming for WinUI apps**  
1515
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps)
1616
- **Access permissions to Libraries**  
1717
The code in these examples requires the picturesLibrary capability, but your file location may require a different capability, or no capability at all. To learn more, see [File access permissions](./file-access-permissions.md)

hub/apps/develop/files/file-access-permissions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: File access permissions
44
description: Apps can access certain file system locations by default. Apps can also access additional locations through the file picker, or by declaring capabilities.
55
ms.date: 01/28/2022
66
ms.topic: how-to
7-
keywords: windows 10, uwp
7+
keywords: windows 10, winui
88
ms.localizationpriority: medium
99
dev_langs:
1010
- csharp
@@ -15,9 +15,9 @@ dev_langs:
1515

1616
# File access permissions
1717

18-
Universal Windows Platform (UWP) apps can access certain file system locations by default. Apps can also access additional locations through the file picker, or by declaring capabilities.
18+
WinUI apps can access certain file system locations by default. Apps can also access additional locations through the file picker, or by declaring capabilities.
1919

20-
### Locations that UWP apps can access
20+
### Locations that WinUI apps can access
2121

2222
When you create a new app, you can access the following file system locations by default:
2323

@@ -86,7 +86,7 @@ There are two primary ways to access files and folders in your app's install dir
8686

8787
The "ms-appx:///" prefix in the URI refers to the app's install directory. You can learn more about using app URIs in [How to use URIs to reference content](/previous-versions/windows/apps/hh781215(v=win.10)).
8888

89-
In addition, and unlike other locations, you can also access files in your app install directory by using some [Win32 and COM for Universal Windows Platform (UWP) apps](/uwp/win32-and-com/win32-and-com-for-uwp-apps) and some [C/C++ Standard Library functions from Microsoft Visual Studio](/cpp/cpp/c-cpp-language-and-standard-libraries).
89+
In addition, and unlike other locations, you can also access files in your app install directory by using some [Win32 and COM for WinUI apps](/uwp/win32-and-com/win32-and-com-for-uwp-apps) and some [C/C++ Standard Library functions from Microsoft Visual Studio](/cpp/cpp/c-cpp-language-and-standard-libraries).
9090

9191
The app's install directory is a read-only location. You can't gain access to the install directory through the file picker.
9292

@@ -159,7 +159,7 @@ There are two primary ways to access files and folders from your app's data loca
159159

160160
The "ms-appdata:///local/" prefix in the URI refers to the app's local folder. To access files in the app's roaming or temporary folders use "ms-appdata:///roaming/" or "ms-appdata:///temporary/" instead. You can learn more about using app URIs in [How to load file resources](/previous-versions/windows/apps/hh781229(v=win.10)).
161161

162-
In addition, and unlike other locations, you can also access files in your app data locations by using some [Win32 and COM for UWP apps](/uwp/win32-and-com/win32-and-com-for-uwp-apps) and some C/C++ Standard Library functions from Visual Studio.
162+
In addition, and unlike other locations, you can also access files in your app data locations by using some [Win32 and COM for WinUI apps](/uwp/win32-and-com/win32-and-com-for-uwp-apps) and some C/C++ Standard Library functions from Visual Studio.
163163

164164
You can't access the local, roaming, or temporary folders through the file picker.
165165

hub/apps/develop/files/file-properties.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Get file properties
44
description: Get properties&\#8212;top-level, basic, and extended&\#8212;for a file represented by a StorageFile object.
55
ms.date: 12/19/2018
66
ms.topic: how-to
7-
keywords: windows 10, uwp
7+
keywords: windows 10, winui
88
ms.localizationpriority: medium
99
---
1010
# Get file properties
@@ -22,7 +22,7 @@ Get properties—top-level, basic, and extended—for a file represented by a [S
2222
2323
## Prerequisites
2424

25-
- **Understand async programming for Universal Windows Platform (UWP) apps**
25+
- **Understand async programming for WinUI apps**
2626

2727
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
2828

hub/apps/develop/files/list-files-folders.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Enumerate and query files and folders
44
description: 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.
55
ms.date: 12/19/2018
66
ms.topic: how-to
7-
keywords: windows 10, uwp
7+
keywords: windows 10, winui
88
ms.localizationpriority: medium
99
dev_langs:
1010
- csharp
@@ -16,14 +16,14 @@ dev_langs:
1616

1717
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.
1818

19-
For guidance on how to store your Universal Windows Platform app's data, see the [ApplicationData](/uwp/api/windows.storage.applicationdata) class.
19+
For guidance on how to store your WinUI app's data, see the [ApplicationData](/uwp/api/windows.storage.applicationdata) class.
2020

2121
> [!NOTE]
2222
> For a complete sample, see the [Folder enumeration sample](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/FolderEnumeration).
2323
2424
## Prerequisites
2525

26-
- **Understand async programming for Universal Windows Platform (UWP) apps**
26+
- **Understand async programming for WinUI apps**
2727

2828
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++/WinRT, see [Concurrency and asynchronous operations with C++/WinRT](/windows/uwp/cpp-and-winrt-apis/concurrency). To learn how to write asynchronous apps in C++/CX, see [Asynchronous programming in C++/CX](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
2929

hub/apps/develop/files/music-pictures-videos-libraries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Managing the Music, Pictures, and Videos libraries
44
description: 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.
55
ms.date: 06/18/2018
66
ms.topic: concept-article
7-
keywords: windows 10, uwp
7+
keywords: windows 10, winui
88
ms.localizationpriority: medium
99
---
1010
# Files and folders in the Music, Pictures, and Videos libraries
@@ -16,7 +16,7 @@ A library is a virtual collection of folders, which includes a known folder by d
1616
## Prerequisites
1717

1818

19-
- **Understand async programming for Universal Windows Platform (UWP) apps**
19+
- **Understand async programming for WinUI apps**
2020

2121
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
2222

hub/apps/develop/files/thumbnails.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: Guidelines for thumbnail images in UWP apps
3-
description: Learn how to use thumbnail images to help users preview files as they browse in a Universal Windows Platform (UWP) app.
2+
title: Guidelines for thumbnail images in WinUI apps
3+
description: Learn how to use thumbnail images to help users preview files as they browse in a WinUI app.
44
label: Thumbnail images
55
template: detail.hbs
66
ms.date: 3/25/2022
77
ms.topic: article
8-
keywords: windows 10, uwp
8+
keywords: windows 10, winui
99
ms.localizationpriority: medium
1010
---
1111
# Thumbnail images
1212

13-
These guidelines describe how to use thumbnail images to help users preview files as they browse in your UWP app.
13+
These guidelines describe how to use thumbnail images to help users preview files as they browse in your WinUI app.
1414

1515
**Important APIs**
1616

0 commit comments

Comments
 (0)