Advertisement
Guest User

MainWindow.xaml

a guest
Dec 24th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.00 KB | None | 0 0
  1. <Window
  2.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.    x:Class="SO8WPF.MainWindow"
  5.    Title="Test" Height="150" Width="350">
  6.     <Grid>
  7.         <ItemsControl ItemsSource="{Binding}">
  8.             <ItemsControl.ItemsPanel>
  9.                 <ItemsPanelTemplate>
  10.                     <UniformGrid IsItemsHost="True" Rows="2" Columns="3"/>
  11.                 </ItemsPanelTemplate>
  12.             </ItemsControl.ItemsPanel>
  13.             <ItemsControl.ItemTemplate>
  14.                 <DataTemplate>
  15.                     <Button>
  16.                         <Button.Template>
  17.                             <ControlTemplate>
  18.                                 <Image Source="{Binding Path=Uri}" />
  19.                             </ControlTemplate>
  20.                         </Button.Template>
  21.                     </Button>
  22.                 </DataTemplate>
  23.             </ItemsControl.ItemTemplate>
  24.         </ItemsControl>
  25.     </Grid>
  26. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement