-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyCardsView.xaml
56 lines (49 loc) · 2.49 KB
/
MyCardsView.xaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<UserControl x:Class="trello.Views.MyCardsView"
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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cm="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
xmlns:telerikCore="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Core"
xmlns:triggers="clr-namespace:trello.Views.Triggers;assembly=trello"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
d:DesignHeight="480" d:DesignWidth="480">
<Grid x:Name="LayoutRoot" d:DataContext="{Binding Source={StaticResource SampleDataSource}}">
<ScrollViewer>
<ItemsControl Margin="12,0,12,0" ItemsSource="{Binding Cards}">
<ItemsControl.Background>
<ImageBrush Stretch="Fill"/>
</ItemsControl.Background>
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Margin="0,0,0,45">
<TextBlock Text="{Binding Key}" FontSize="{StaticResource PhoneFontSizeExtraLarge}" FontFamily="{StaticResource PhoneFontFamilyLight}" Foreground="{StaticResource PhoneForegroundBrush}" />
<Border Margin="25,0,0,0" BorderThickness="0,0,0,0" BorderBrush="{StaticResource PhoneSubtleBrush}">
<ItemsControl ItemsSource="{Binding}" Margin="10,0,0,0">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel>
<ContentControl cm:View.Model="{Binding}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
<i:Interaction.Triggers>
<triggers:GestureServiceTrigger Gesture="Tap">
<cm:ActionMessage MethodName="Open" />
</triggers:GestureServiceTrigger>
</i:Interaction.Triggers>
</ContentControl>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Border>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Grid>
</UserControl>