Multiple improvments

This commit is contained in:
Stone_Red
2024-01-02 14:11:31 +01:00
parent 888c017a82
commit ab64e2c987
4 changed files with 84 additions and 18 deletions
+4 -4
View File
@@ -5,17 +5,17 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:BeatDetector" d:DataContext="{d:DesignInstance Type=local:MainWindow}"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
Title="MainWindow" Height="450" Width="800" KeyUp="Window_KeyUp" ResizeMode="NoResize">
<Grid Name="MainGrid">
<ItemsControl ItemsSource="{Binding BeatLights}" Background="Green">
<ItemsControl ItemsSource="{Binding BeatLights}" Background="Black">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Background="{Binding Color}" Margin="10" Width="100" Height="100"></Grid>
<Grid Background="{Binding Color}" Margin="5" Width="100" Height="100"></Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel/>
<WrapPanel />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>