/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Views/Settings/AboutPage.xaml
232 строки
8 KB
yair100
Feature: Replaced Settings Dialog with page (#18410)
23 апр 2026, 23:59
Не верифицирован
23 апр 2026, 23:59
65e4bf8
Код
Авторство
О чём код?
<!-- Copyright (c) Files Community. Licensed under the MIT License. --> <Page x:Class="Files.App.Views.Settings.AboutPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:CommunityToolkit.WinUI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:dataitems="using:Files.App.Data.Items" xmlns:helpers="using:Files.App.Helpers" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="using:Files.App.ViewModels.Settings" xmlns:wctcontrols="using:CommunityToolkit.WinUI.Controls" mc:Ignorable="d"> <Page.DataContext> <vm:AboutViewModel x:Name="ViewModel" /> </Page.DataContext> <Grid> <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Spacing="4"> <!-- Title --> <TextBlock Padding="0,0,0,12" Style="{StaticResource App.Theme.SubtitleTextBlockStyle}" Text="{helpers:ResourceString Name=About}" /> <!-- App Info --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Description="{x:Bind ViewModel.Version}" Header="{x:Bind ViewModel.AppName}"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <Button x:Name="CopyVersionInfo" Content="{helpers:ResourceString Name=Copy}"> <Button.Flyout> <MenuFlyout> <MenuFlyoutItem Command="{x:Bind ViewModel.CopyAppVersionCommand}" Text="{helpers:ResourceString Name=AppVersion}" /> <MenuFlyoutItem Command="{x:Bind ViewModel.CopyWindowsVersionCommand}" Text="{helpers:ResourceString Name=WindowsVersion}" /> <MenuFlyoutItem Command="{x:Bind ViewModel.CopyUserIDCommand}" Text="{helpers:ResourceString Name=UserID}" /> </MenuFlyout> </Button.Flyout> </Button> </wctcontrols:SettingsCard> <!-- GitHub Sponsor --> <wctcontrols:SettingsCard Command="{x:Bind ViewModel.SupportUsCommand}" Header="{helpers:ResourceString Name=SponsorUsOnGitHub}" IsClickEnabled="True"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> <!-- Help and support --> <TextBlock Padding="0,16,0,4" FontSize="16" FontWeight="Medium" Text="{helpers:ResourceString Name=HelpAndSupport}" /> <!-- Documentation --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.OpenDocumentationCommand}" Header="{helpers:ResourceString Name=Documentation}" IsClickEnabled="True"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> <!-- Questions & discussions --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.OpenDiscordCommand}" Header="{helpers:ResourceString Name=QuestionsAndDiscussions}" IsClickEnabled="True"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> <!-- Feedback --> <wctcontrols:SettingsExpander HorizontalAlignment="Stretch" Header="{helpers:ResourceString Name=Feedback}"> <wctcontrols:SettingsExpander.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsExpander.HeaderIcon> <wctcontrols:SettingsExpander.Items> <!-- Submit feature request --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.SubmitFeatureRequestCommand}" Header="{helpers:ResourceString Name=SubmitFeatureRequest}" IsClickEnabled="True"> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> <!-- Submit bug report --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.SubmitBugReportCommand}" Header="{helpers:ResourceString Name=SubmitBugReport}" IsClickEnabled="True"> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> </wctcontrols:SettingsExpander.Items> </wctcontrols:SettingsExpander> <!-- Open Log File Location --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.OpenLogLocationCommand}" Header="{helpers:ResourceString Name=OpenLogLocation}" IsClickEnabled="True"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> <!-- Open Source --> <TextBlock Padding="0,16,0,4" FontSize="16" FontWeight="Medium" Text="{helpers:ResourceString Name=OpenSource}" /> <!-- Translate --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.OpenCrowdinCommand}" Header="{helpers:ResourceString Name=ImproveTranslation}" IsClickEnabled="True"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> <!-- Third Party Licenses --> <wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=ThirdPartyLibraries}"> <wctcontrols:SettingsExpander.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsExpander.HeaderIcon> <wctcontrols:SettingsExpander.ItemsHeader> <Grid Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"> <ItemsRepeater Margin="58,16,16,16" ItemsSource="{x:Bind ViewModel.OpenSourceLibraries, Mode=OneWay}"> <ItemsRepeater.ItemTemplate> <DataTemplate x:DataType="dataitems:OpenSourceLibraryItem"> <TextBlock Margin="4,0" VerticalAlignment="Center"> <Hyperlink NavigateUri="{x:Bind Url}" UnderlineStyle="None"> <Run Text="{x:Bind Name}" /> </Hyperlink> </TextBlock> </DataTemplate> </ItemsRepeater.ItemTemplate> <ItemsRepeater.Layout> <UniformGridLayout ItemsStretch="Fill" MaximumRowsOrColumns="4" MinColumnSpacing="8" MinItemWidth="200" MinRowSpacing="8" Orientation="Horizontal" /> </ItemsRepeater.Layout> </ItemsRepeater> </Grid> </wctcontrols:SettingsExpander.ItemsHeader> </wctcontrols:SettingsExpander> <!-- Open GitHub repo --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.OpenGitHubRepoCommand}" Header="{helpers:ResourceString Name=OpenGitHubRepo}" IsClickEnabled="True"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> <!-- Privacy --> <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.OpenPrivacyPolicyCommand}" Header="{helpers:ResourceString Name=Privacy}" IsClickEnabled="True"> <wctcontrols:SettingsCard.HeaderIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.HeaderIcon> <wctcontrols:SettingsCard.ActionIcon> <FontIcon Glyph="" /> </wctcontrols:SettingsCard.ActionIcon> </wctcontrols:SettingsCard> </StackPanel> </Grid> </Page>