markus / KCOM / Messenger / StyleDictionary.xaml @ 787a4489
이력 | 보기 | 이력해설 | 다운로드 (10.7 KB)
1 |
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
---|---|
2 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 |
xmlns:local="clr-namespace:KCOM.Messenger"> |
4 |
|
5 |
|
6 |
<SolidColorBrush x:Key="PhoneAccentBrush" Color="#0084ff"/> |
7 |
<Style TargetType="TextBlock" x:Key="TextBlockStyle"> |
8 |
<Setter Property="Foreground" Value="#3d3d3d"/> |
9 |
<Setter Property="Margin" Value="5"/> |
10 |
<Setter Property="TextWrapping" Value="Wrap"/> |
11 |
</Style>
|
12 |
|
13 |
<Style TargetType="TextBlock" x:Key="TimestampStyle"> |
14 |
<Setter Property="Foreground" Value="#a6a6a4"/> |
15 |
<Setter Property="Margin" Value="5"/> |
16 |
<Setter Property="FontSize" Value="10"/> |
17 |
<!--<Setter Property="HorizontalAlignment" Value="Right"/>-->
|
18 |
</Style>
|
19 |
<DataTemplate x:Key="MeTemplate"> |
20 |
<Grid Margin="30, 10, 5, 0" HorizontalAlignment="Right"> |
21 |
<Grid.ColumnDefinitions>
|
22 |
<ColumnDefinition Width="2*"/> |
23 |
<ColumnDefinition Width="8*"/> |
24 |
</Grid.ColumnDefinitions>
|
25 |
<Grid.RowDefinitions>
|
26 |
<RowDefinition Height="*"/> |
27 |
<RowDefinition Height="Auto"/> |
28 |
</Grid.RowDefinitions>
|
29 |
<Border Background="{StaticResource PhoneAccentBrush}" Grid.RowSpan="1" CornerRadius="5" BorderThickness="1" Grid.Column="1" MinHeight="40"> |
30 |
<Grid>
|
31 |
<Grid.RowDefinitions>
|
32 |
<RowDefinition Height="Auto"/> |
33 |
<RowDefinition Height="*"/> |
34 |
</Grid.RowDefinitions>
|
35 |
<TextBlock Text="{Binding Path=TEXT}" Style="{StaticResource TextBlockStyle}" Grid.Column="1" TextWrapping="Wrap" HorizontalAlignment="Stretch" Grid.Row="1" Foreground="White"/> |
36 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" Style="{StaticResource TimestampStyle}" Foreground="White" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"/> |
37 |
</Grid>
|
38 |
</Border>
|
39 |
</Grid>
|
40 |
</DataTemplate>
|
41 |
|
42 |
<DataTemplate x:Key="YouTemplate_V2"> |
43 |
<Grid Margin="5, 10, 30, 0" HorizontalAlignment="Left"> |
44 |
<Grid.ColumnDefinitions>
|
45 |
<ColumnDefinition Width="Auto"/> |
46 |
<ColumnDefinition Width="*"/> |
47 |
<ColumnDefinition Width="Auto"/> |
48 |
</Grid.ColumnDefinitions>
|
49 |
<Grid.RowDefinitions>
|
50 |
<RowDefinition Height="Auto"/> |
51 |
<RowDefinition Height="*"/> |
52 |
<!--<RowDefinition Height="Auto"/>-->
|
53 |
</Grid.RowDefinitions>
|
54 |
<Border Background="White" Grid.RowSpan="2" CornerRadius="5" BorderThickness="1" Grid.Row="1" Grid.Column="1"> |
55 |
|
56 |
</Border>
|
57 |
<TextBlock Text="{Binding Path=MEMBER_NAME}" Grid.Row="0" Grid.Column="1" Margin="0,5"/> |
58 |
<TextBlock Text="{Binding Path=TEXT}" Grid.Row="1" Grid.Column="1" |
59 |
Style="{StaticResource TextBlockStyle}"/> |
60 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" HorizontalAlignment="Right" |
61 |
Style="{StaticResource TimestampStyle}" Margin="5,0" |
62 |
Grid.Row="1" Grid.Column="2" VerticalAlignment="Bottom"/> |
63 |
</Grid>
|
64 |
</DataTemplate>
|
65 |
|
66 |
<DataTemplate x:Key="YouTemplate"> |
67 |
<Grid Margin="5, 10, 30, 0" HorizontalAlignment="Left"> |
68 |
<Grid.ColumnDefinitions>
|
69 |
<ColumnDefinition Width="Auto"/> |
70 |
<ColumnDefinition Width="*"/> |
71 |
<ColumnDefinition Width="Auto"/> |
72 |
</Grid.ColumnDefinitions>
|
73 |
<Grid.RowDefinitions>
|
74 |
<RowDefinition Height="Auto"/> |
75 |
<RowDefinition Height="*"/> |
76 |
<!--<RowDefinition Height="Auto"/>-->
|
77 |
</Grid.RowDefinitions>
|
78 |
|
79 |
<Ellipse Height="32" Width="32" Name="elipsemedia" Margin="5" Grid.RowSpan="3" VerticalAlignment="Top"> |
80 |
<Ellipse.Fill>
|
81 |
<ImageBrush ImageSource="user.png"/> |
82 |
</Ellipse.Fill>
|
83 |
</Ellipse>
|
84 |
<!--<Path Data="m 0,0 l 0,16 l 16,0 l -16,-16"
|
85 |
Fill="{StaticResource PhoneAccentBrush}"
|
86 |
Margin="0,0,0,0" Grid.Row="0"
|
87 |
HorizontalAlignment="Left"/>-->
|
88 |
<Border Background="White" Grid.RowSpan="2" CornerRadius="5" BorderThickness="1" Grid.Row="1" Grid.Column="1"> |
89 |
<Grid>
|
90 |
<Grid.RowDefinitions>
|
91 |
<RowDefinition Height="Auto"/> |
92 |
<RowDefinition Height="*"/> |
93 |
</Grid.RowDefinitions>
|
94 |
<TextBlock Text="{Binding Path=MEMBER_NAME}" Grid.Row="0" Grid.Column="1" Margin="5,5" |
95 |
FontSize="12" VerticalAlignment="Bottom" Foreground="#FF828080"/> |
96 |
<TextBlock Text="{Binding Path=TEXT}" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/> |
97 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" HorizontalAlignment="Right" |
98 |
Style="{StaticResource TimestampStyle}" Margin="5,5" Grid.Column="1" VerticalAlignment="Center"/> |
99 |
</Grid>
|
100 |
</Border>
|
101 |
|
102 |
|
103 |
</Grid>
|
104 |
</DataTemplate>
|
105 |
|
106 |
<DataTemplate x:Key="MeTemplate_Anchor"> |
107 |
<Grid Margin="30, 10, 5, 0" HorizontalAlignment="Right"> |
108 |
<Grid.ColumnDefinitions>
|
109 |
<ColumnDefinition Width="2*"/> |
110 |
<ColumnDefinition Width="8*"/> |
111 |
</Grid.ColumnDefinitions>
|
112 |
<Grid.RowDefinitions>
|
113 |
<RowDefinition Height="*"/> |
114 |
<RowDefinition Height="Auto"/> |
115 |
</Grid.RowDefinitions>
|
116 |
<Border Background="{StaticResource PhoneAccentBrush}" Grid.RowSpan="1" CornerRadius="5" BorderThickness="1" Grid.Column="1" MinHeight="40"> |
117 |
<Grid>
|
118 |
<Grid.RowDefinitions>
|
119 |
<RowDefinition Height="Auto"/> |
120 |
<RowDefinition Height="*"/> |
121 |
<RowDefinition Height="Auto"/> |
122 |
</Grid.RowDefinitions>
|
123 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" Style="{StaticResource TimestampStyle}" Foreground="White" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"/> |
124 |
<TextBlock Text="{Binding Path=TEXT}" Style="{StaticResource TextBlockStyle}" Grid.Column="1" TextWrapping="Wrap" HorizontalAlignment="Stretch" Grid.Row="1" Foreground="White"/> |
125 |
<Border Background="#2263b0" CornerRadius="3" HorizontalAlignment="Right" Grid.Row="2" Margin="5"> |
126 |
<Button BorderThickness="0" Content="코멘트 확인" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Background="Transparent" Padding="5" |
127 |
Command="{Binding ClickAnchorCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ConversationView}}}" CommandParameter="{Binding}"/> |
128 |
</Border>
|
129 |
</Grid>
|
130 |
</Border>
|
131 |
<!--<StackPanel Grid.Row="0" Grid.Column="1">
|
132 |
<TextBlock Text="{Binding Path=TEXT}" Style="{StaticResource TextBlockStyle}" Grid.Row="0" Grid.Column="1"
|
133 |
TextWrapping="Wrap" Foreground="White" HorizontalAlignment="Stretch"/>
|
134 |
<Button Background="Transparent" Content="[앵커 확인하기]" Margin="10,0,10,5" Foreground="#FF0381F9" HorizontalAlignment="Center"
|
135 |
Command="{Binding ClickAnchorCommand}" CommandParameter="{Binding}"/>
|
136 |
</StackPanel>
|
137 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" Style="{StaticResource TimestampStyle}" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>-->
|
138 |
</Grid>
|
139 |
</DataTemplate>
|
140 |
|
141 |
<DataTemplate x:Key="YouTemplate_Anchor"> |
142 |
<Grid Margin="5, 10, 30, 0" HorizontalAlignment="Left"> |
143 |
<Grid.ColumnDefinitions>
|
144 |
<ColumnDefinition Width="2*"/> |
145 |
<ColumnDefinition Width="8*"/> |
146 |
</Grid.ColumnDefinitions>
|
147 |
<Grid.RowDefinitions>
|
148 |
<RowDefinition Height="*"/> |
149 |
<RowDefinition Height="Auto"/> |
150 |
</Grid.RowDefinitions>
|
151 |
<Ellipse Height="32" Width="32" Name="elipsemedia" Margin="5" Grid.RowSpan="3" VerticalAlignment="Top"> |
152 |
<Ellipse.Fill>
|
153 |
<ImageBrush ImageSource="user.png"/> |
154 |
</Ellipse.Fill>
|
155 |
</Ellipse>
|
156 |
|
157 |
<Border Background="White" Grid.RowSpan="1" CornerRadius="5" BorderThickness="1" Grid.Column="1" MinHeight="40"> |
158 |
<Grid>
|
159 |
<Grid.RowDefinitions>
|
160 |
<RowDefinition Height="Auto"/> |
161 |
<RowDefinition Height="*"/> |
162 |
<RowDefinition Height="Auto"/> |
163 |
</Grid.RowDefinitions>
|
164 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" Style="{StaticResource TimestampStyle}" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"/> |
165 |
<TextBlock Text="{Binding Path=MEMBER_NAME}" Grid.Row="0" Grid.Column="1" Margin="5,5" |
166 |
FontSize="12" VerticalAlignment="Bottom" Foreground="#FF828080"/> |
167 |
<TextBlock Text="{Binding Path=TEXT}" Style="{StaticResource TextBlockStyle}" Grid.Column="1" TextWrapping="Wrap" HorizontalAlignment="Stretch" Grid.Row="1"/> |
168 |
<Border Background="#2263b0" CornerRadius="3" HorizontalAlignment="Right" Grid.Row="2" Margin="5"> |
169 |
<Button BorderThickness="0" Content="코멘트 확인" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Background="Transparent" Padding="5" |
170 |
Command="{Binding ClickAnchorCommand}" CommandParameter="{Binding}"/> |
171 |
</Border>
|
172 |
</Grid>
|
173 |
</Border>
|
174 |
<!--<StackPanel Grid.Row="0" Grid.Column="1">
|
175 |
<TextBlock Text="{Binding Path=TEXT}" Style="{StaticResource TextBlockStyle}" Grid.Row="0" Grid.Column="1"
|
176 |
TextWrapping="Wrap" Foreground="White" HorizontalAlignment="Stretch"/>
|
177 |
<Button Background="Transparent" Content="[앵커 확인하기]" Margin="10,0,10,5" Foreground="#FF0381F9" HorizontalAlignment="Center"
|
178 |
Command="{Binding ClickAnchorCommand}" CommandParameter="{Binding}"/>
|
179 |
</StackPanel>
|
180 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" Style="{StaticResource TimestampStyle}" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>-->
|
181 |
</Grid>
|
182 |
</DataTemplate>
|
183 |
|
184 |
</ResourceDictionary>
|