mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-23 00:17:58 +08:00
90 lines
3.8 KiB
Plaintext
90 lines
3.8 KiB
Plaintext
|
<!-- Copyright (c) Microsoft Corporation and Contributors. -->
|
||
|
<!-- Licensed under the MIT License. -->
|
||
|
|
||
|
<Page
|
||
|
x:Class="Microsoft.PowerToys.Settings.UI.Flyout.AppsListPage"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Flyout"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:viewmodels="using:Microsoft.PowerToys.Settings.UI.ViewModels"
|
||
|
mc:Ignorable="d">
|
||
|
|
||
|
<Grid Background="{ThemeResource LayerOnAcrylicFillColorDefaultBrush}">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid Padding="24,32,24,0">
|
||
|
<TextBlock
|
||
|
x:Uid="AllAppsTxt"
|
||
|
VerticalAlignment="Center"
|
||
|
Style="{StaticResource BodyStrongTextBlockStyle}" />
|
||
|
<Button
|
||
|
x:Uid="BackBtn"
|
||
|
Padding="8,4,8,4"
|
||
|
HorizontalAlignment="Right"
|
||
|
VerticalAlignment="Center"
|
||
|
Click="BackButton_Click">
|
||
|
<Button.Content>
|
||
|
<StackPanel
|
||
|
VerticalAlignment="Center"
|
||
|
Orientation="Horizontal"
|
||
|
Spacing="12">
|
||
|
<FontIcon
|
||
|
Margin="0,2,0,0"
|
||
|
FontSize="12"
|
||
|
Glyph="" />
|
||
|
<TextBlock x:Uid="BackLabel" Style="{StaticResource CaptionTextBlockStyle}" />
|
||
|
</StackPanel>
|
||
|
</Button.Content>
|
||
|
</Button>
|
||
|
</Grid>
|
||
|
<ListView
|
||
|
Grid.Row="1"
|
||
|
Margin="0,16,0,0"
|
||
|
ItemsSource="{x:Bind ViewModel.FlyoutMenuItems}"
|
||
|
SelectionMode="None">
|
||
|
<ListView.ItemsPanel>
|
||
|
<ItemsPanelTemplate>
|
||
|
<StackPanel Padding="0,0,0,16" Orientation="Vertical" />
|
||
|
</ItemsPanelTemplate>
|
||
|
</ListView.ItemsPanel>
|
||
|
|
||
|
<ListView.ItemTemplate>
|
||
|
<DataTemplate x:DataType="viewmodels:FlyoutMenuItem">
|
||
|
<Grid Height="40" Padding="24,0,24,0">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<!--<ViewBox VerticalAlignment="Center">-->
|
||
|
<Image
|
||
|
Width="20"
|
||
|
Margin="0,0,16,0">
|
||
|
<Image.Source>
|
||
|
<BitmapImage UriSource="{x:Bind Icon, Mode=OneWay}" />
|
||
|
</Image.Source>
|
||
|
</Image>
|
||
|
<!--</ViewBox>-->
|
||
|
<TextBlock
|
||
|
Grid.Column="1"
|
||
|
VerticalAlignment="Center"
|
||
|
Text="{x:Bind Label, Mode=OneWay}"
|
||
|
TextTrimming="CharacterEllipsis" />
|
||
|
<ToggleSwitch
|
||
|
Grid.Column="2"
|
||
|
Margin="0,0,0,0"
|
||
|
HorizontalAlignment="Right"
|
||
|
AutomationProperties.Name="{x:Bind Label, Mode=OneWay}"
|
||
|
IsOn="{x:Bind IsEnabled, Mode=TwoWay}"
|
||
|
Style="{StaticResource RightAlignedCompactToggleSwitchStyle}" />
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</ListView.ItemTemplate>
|
||
|
</ListView>
|
||
|
</Grid>
|
||
|
</Page>
|