/ src / modules / cmdpal / Microsoft.CmdPal.UI / MainWindow.xaml
MainWindow.xaml
 1  <winuiex:WindowEx
 2      x:Class="Microsoft.CmdPal.UI.MainWindow"
 3      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 4      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 5      xmlns:controls="using:Microsoft.CmdPal.UI.Controls"
 6      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 7      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 8      xmlns:pages="using:Microsoft.CmdPal.UI.Pages"
 9      xmlns:viewModels="using:Microsoft.CmdPal.UI.ViewModels"
10      xmlns:winuiex="using:WinUIEx"
11      Width="800"
12      Height="480"
13      MinWidth="320"
14      MinHeight="240"
15      Activated="MainWindow_Activated"
16      Closed="MainWindow_Closed"
17      mc:Ignorable="d">
18      <Grid x:Name="RootElement">
19  
20          <controls:BlurImageControl
21              HorizontalAlignment="Stretch"
22              VerticalAlignment="Stretch"
23              BlurAmount="{x:Bind ViewModel.BackgroundImageBlurAmount, Mode=OneWay}"
24              ImageBrightness="{x:Bind ViewModel.BackgroundImageBrightness, Mode=OneWay}"
25              ImageOpacity="{x:Bind ViewModel.BackgroundImageOpacity, Mode=OneWay}"
26              ImageSource="{x:Bind ViewModel.BackgroundImageSource, Mode=OneWay}"
27              ImageStretch="{x:Bind ViewModel.BackgroundImageStretch, Mode=OneWay}"
28              IsHitTestVisible="False"
29              IsHoldingEnabled="False"
30              TintColor="{x:Bind ViewModel.BackgroundImageTint, Mode=OneWay}"
31              TintIntensity="{x:Bind ViewModel.BackgroundImageTintIntensity, Mode=OneWay}"
32              Visibility="{x:Bind ViewModel.ShowBackgroundImage, Mode=OneWay}" />
33  
34          <pages:ShellPage />
35      </Grid>
36  </winuiex:WindowEx>