You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n/ru/docusaurus-plugin-content-docs/current/basics/user-interface/file-dialogs.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,37 @@
1
1
---
2
2
id: file-dialogs
3
-
title: File Dialogs
3
+
title: Диалоговые окна файлов
4
4
---
5
5
6
-
The file dialog functionality is accessed through the[`StorageProvider`](../../concepts/services/storage-provider) service API, which is available from the `Window`or`TopLevel` classes. This page shows only basic usage and for more information about this API please visit StorageProvider page.
6
+
Функциональность диалоговых окон файлов доступна через API сервиса[`StorageProvider`](../../concepts/services/storage-provider), который доступен из классов `Window`или`TopLevel`. Эта страница показывает только базовое использование, а для получения дополнительной информации об этом API, пожалуйста, посетите страницу StorageProvider.
This method opens a file picker dialog, allowing the user to select a file. `FilePickerOpenOptions`defines options that are passed to the OS dialog.
12
+
Этот метод открывает диалоговое окно выбора файла, позволяющее пользователю выбрать файл. `FilePickerOpenOptions`определяет параметры, передаваемые в диалоговое окно операционной системы.
@@ -42,40 +42,40 @@ public class MyView : UserControl
42
42
43
43
## SaveFilePickerAsync
44
44
45
-
This method opens a file save dialog, allowing the user to save a file. `FilePickerSaveOptions`defines options that are passed to the OS dialog.
45
+
Этот метод открывает диалоговое окно сохранения файла, позволяющее пользователю сохранить файл. `FilePickerSaveOptions`определяет параметры, передаваемые в диалоговое окно операционной системы.
For more information on StorageProvider service including on how to keep access to the picked files and what possible options are supported, please visit [`StorageProvider`](../../concepts/services/storage-provider)documentation page and subpages.
75
+
Для получения дополнительной информации о сервисе StorageProvider, включая информацию о том, как сохранить доступ к выбранным файлам и какие возможные параметры поддерживаются, пожалуйста, посетите страницу документации [`StorageProvider`](../../concepts/services/storage-provider)и подстраницы.
76
76
77
77
:::note
78
-
The provided examples directly access the[`StorageProvider`](../../concepts/services/storage-provider)API inside the ViewModel for learning purposes. In a real-world application, it's recommended to adhere to MVVM principles by creating service classes and locating them with Dependency Injection / Inversion of Control (DI/IoC). Please refer to the [IoCFileOps](https://github.com/AvaloniaUI/AvaloniaUI.QuickGuides/tree/main/IoCFileOps)and DepInject projects for samples of how to achieve this.
78
+
Приведенные примеры напрямую обращаются к API[`StorageProvider`](../../concepts/services/storage-provider)внутри ViewModel в учебных целях. В реальном приложении рекомендуется придерживаться принципов MVVM, создавая сервисные классы и размещая их с помощью Dependency Injection / Inversion of Control (DI/IoC). Обратитесь к проектам [IoCFileOps](https://github.com/AvaloniaUI/AvaloniaUI.QuickGuides/tree/main/IoCFileOps)и DepInject для примеров того, как этого достичь.
0 commit comments