2019-03-13 16:45:38 +01:00
|
|
|
<Window x:Class="CzokoŚmieciarka.WPF.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:local="clr-namespace:CzokoŚmieciarka.WPF"
|
|
|
|
xmlns:models="clr-namespace:CzokoŚmieciarka.WPF.Models"
|
|
|
|
mc:Ignorable="d"
|
2019-03-27 00:49:55 +01:00
|
|
|
Title="MainWindow" Height="800" Width="1000"
|
2019-03-20 16:51:35 +01:00
|
|
|
KeyDown="MainWindow_OnKeyDown">
|
2019-03-14 16:24:37 +01:00
|
|
|
<ItemsControl ItemsSource="{Binding Tiles}">
|
2019-03-13 16:45:38 +01:00
|
|
|
<ItemsControl.Resources>
|
|
|
|
<DataTemplate DataType="{x:Type models:Tile}">
|
2019-03-20 16:02:05 +01:00
|
|
|
<Grid Background="{Binding Object.Image}">
|
2019-03-27 01:11:14 +01:00
|
|
|
<TextBlock Text="{Binding Object.Data}" Foreground="White"></TextBlock>
|
2019-03-13 16:45:38 +01:00
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.Resources>
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
2019-03-14 16:24:37 +01:00
|
|
|
<UniformGrid Rows="{Binding Rows}" Columns="{Binding Columns}"></UniformGrid>
|
2019-03-13 16:45:38 +01:00
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
</ItemsControl>
|
2019-03-27 00:49:55 +01:00
|
|
|
|
2019-03-13 16:45:38 +01:00
|
|
|
</Window>
|