-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
36 lines (35 loc) · 1.69 KB
/
Copy pathMainWindow.xaml
File metadata and controls
36 lines (35 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Window x:Class="Binding_Object.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:local1="clr-namespace:Binding_Object.ViewModel"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
mc:Ignorable="d" WindowStartupLocation="CenterScreen"
Title="TileViewControl - Binding Objects" Height="550" Width="500">
<Window.DataContext>
<local1:ViewModel/>
</Window.DataContext>
<Grid>
<syncfusion:TileViewControl MinimizedItemsPercentage="40" Margin="30"
ItemsSource="{Binding TileViewItems}"
Name="tileViewControl">
<!--Custom header UI-->
<syncfusion:TileViewControl.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding Header}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</DataTemplate>
</syncfusion:TileViewControl.HeaderTemplate>
<!--Custom content UI-->
<syncfusion:TileViewControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Content}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</DataTemplate>
</syncfusion:TileViewControl.ItemTemplate>
</syncfusion:TileViewControl>
</Grid>
</Window>