mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
|
|
<!-- Copyright (c) Microsoft Corporation and Contributors. -->
|
||
|
|
<!-- Licensed under the MIT License. -->
|
||
|
|
|
||
|
|
<winuiex:WindowEx
|
||
|
|
x:Class="Peek.UI.MainWindow"
|
||
|
|
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:fp="using:Peek.FilePreviewer"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:views="using:Peek.UI.Views"
|
||
|
|
xmlns:winuiex="using:WinUIEx"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<winuiex:WindowEx.Backdrop>
|
||
|
|
<winuiex:MicaSystemBackdrop />
|
||
|
|
</winuiex:WindowEx.Backdrop>
|
||
|
|
|
||
|
|
<Grid KeyboardAcceleratorPlacementMode="Hidden">
|
||
|
|
<Grid.KeyboardAccelerators>
|
||
|
|
<KeyboardAccelerator Key="Left" Invoked="LeftNavigationInvoked" />
|
||
|
|
<KeyboardAccelerator Key="Right" Invoked="RightNavigationInvoked" />
|
||
|
|
</Grid.KeyboardAccelerators>
|
||
|
|
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="48" />
|
||
|
|
<RowDefinition Height="*" />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<views:TitleBar
|
||
|
|
x:Name="TitleBarControl"
|
||
|
|
Grid.Row="0"
|
||
|
|
FileIndex="{x:Bind ViewModel.CurrentIndex, Mode=OneWay}"
|
||
|
|
IsMultiSelection="{x:Bind ViewModel.NeighboringItemsQuery.IsMultipleFilesActivation, Mode=OneWay}"
|
||
|
|
Item="{x:Bind ViewModel.CurrentItem, Mode=OneWay}"
|
||
|
|
NumberOfFiles="{x:Bind ViewModel.Items.Count, Mode=OneWay}" />
|
||
|
|
|
||
|
|
<fp:FilePreview
|
||
|
|
Grid.Row="1"
|
||
|
|
Item="{x:Bind ViewModel.CurrentItem, Mode=OneWay}"
|
||
|
|
PreviewSizeChanged="FilePreviewer_PreviewSizeChanged"
|
||
|
|
ScalingFactor="{x:Bind ViewModel.ScalingFactor, Mode=OneWay}" />
|
||
|
|
</Grid>
|
||
|
|
</winuiex:WindowEx>
|