Files
MesenCE/UI/Debugger/Views/ControllerListView.axaml
Sour d208fdc6a7 UI: Support for NativeAOT
Added Windows & Linux builds using AOT compilation
2024-06-05 20:23:31 +09:00

34 lines
1.1 KiB
XML

<UserControl
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:l="using:Mesen.Localization"
xmlns:u="using:Mesen.Utilities"
xmlns:dvm="using:Mesen.Debugger.ViewModels"
xmlns:dv="using:Mesen.Debugger.Views"
mc:Ignorable="d" d:DesignWidth="200" d:DesignHeight="60"
x:Name="root"
HorizontalAlignment="Stretch"
x:DataType="dvm:ControllerListViewModel"
x:Class="Mesen.Debugger.Views.ControllerListView"
>
<Design.DataContext>
<dvm:ControllerListViewModel />
</Design.DataContext>
<ScrollViewer AllowAutoHide="False">
<ItemsControl ItemsSource="{Binding Controllers}" VerticalAlignment="Center">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<dv:ControllerInputView DataContext="{Binding}" Margin="1 1" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</UserControl>