You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.8 KiB
42 lines
1.8 KiB
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:viewModels="clr-namespace:Mystify.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Mystify.Views.ControllableSelectionWindow"
|
|
Title="Select Controllable"
|
|
TransparencyLevelHint="AcrylicBlur"
|
|
ExtendClientAreaToDecorationsHint="True"
|
|
ExtendClientAreaChromeHints="NoChrome"
|
|
SizeToContent="WidthAndHeight">
|
|
|
|
<Design.DataContext>
|
|
<viewModels:ControllableSelectionViewModel/>
|
|
</Design.DataContext>
|
|
|
|
<Window.KeyBindings>
|
|
<KeyBinding Gesture="Escape" Command="{Binding CloseCommand}"/>
|
|
</Window.KeyBindings>
|
|
|
|
<Window.DataTemplates>
|
|
<DataTemplate DataType="viewModels:ControllableViewModel">
|
|
<Button Command="{Binding SelectCommand}" HorizontalAlignment="Stretch">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="{Binding IconPath}" Margin="10,5"/>
|
|
<TextBlock Text="{Binding Name}" Margin="10,5"/>
|
|
</StackPanel>
|
|
</Button>
|
|
</DataTemplate>
|
|
</Window.DataTemplates>
|
|
|
|
<Panel>
|
|
<ExperimentalAcrylicBorder IsHitTestVisible="False">
|
|
<ExperimentalAcrylicBorder.Material>
|
|
<ExperimentalAcrylicMaterial BackgroundSource="Digger" TintColor="Black" TintOpacity="1" MaterialOpacity="0.65"/>
|
|
</ExperimentalAcrylicBorder.Material>
|
|
</ExperimentalAcrylicBorder>
|
|
|
|
<ItemsControl Items="{Binding Controllables}"/>
|
|
</Panel>
|
|
</Window> |