markus / KCOM / Messenger / StyleDictionary.xaml @ a9a82876
이력 | 보기 | 이력해설 | 다운로드 (14.4 KB)
1 |
<ResourceDictionary
|
---|---|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
xmlns:local="clr-namespace:KCOM.Messenger"> |
5 |
|
6 |
|
7 |
<SolidColorBrush x:Key="PhoneAccentBrush" Color="#0084ff" /> |
8 |
<Style x:Key="TextBlockStyle" TargetType="TextBlock"> |
9 |
<Setter Property="Foreground" Value="#3d3d3d" /> |
10 |
<Setter Property="Margin" Value="5" /> |
11 |
<Setter Property="TextWrapping" Value="Wrap" /> |
12 |
</Style>
|
13 |
|
14 |
<Style x:Key="TimestampStyle" TargetType="TextBlock"> |
15 |
<Setter Property="Foreground" Value="#a6a6a4" /> |
16 |
<Setter Property="Margin" Value="5" /> |
17 |
<Setter Property="FontSize" Value="10" /> |
18 |
<!--<Setter Property="HorizontalAlignment" Value="Right"/>-->
|
19 |
</Style>
|
20 |
<DataTemplate x:Key="MeTemplate"> |
21 |
<Grid Margin="30,10,5,0" HorizontalAlignment="Right"> |
22 |
<Grid.ColumnDefinitions>
|
23 |
<ColumnDefinition Width="2*" /> |
24 |
<ColumnDefinition Width="8*" /> |
25 |
</Grid.ColumnDefinitions>
|
26 |
<Grid.RowDefinitions>
|
27 |
<RowDefinition Height="*" /> |
28 |
<RowDefinition Height="Auto" /> |
29 |
</Grid.RowDefinitions>
|
30 |
<Border
|
31 |
Grid.RowSpan="1" |
32 |
Grid.Column="1" |
33 |
MinHeight="40" |
34 |
Background="{StaticResource PhoneAccentBrush}" |
35 |
BorderThickness="1" |
36 |
CornerRadius="5"> |
37 |
<Grid>
|
38 |
<Grid.RowDefinitions>
|
39 |
<RowDefinition Height="Auto" /> |
40 |
<RowDefinition Height="*" /> |
41 |
</Grid.RowDefinitions>
|
42 |
<TextBlock
|
43 |
Grid.Row="1" |
44 |
Grid.Column="1" |
45 |
HorizontalAlignment="Stretch" |
46 |
Foreground="White" |
47 |
Style="{StaticResource TextBlockStyle}" |
48 |
Text="{Binding Path=TEXT}" |
49 |
TextWrapping="Wrap" /> |
50 |
<TextBlock
|
51 |
Grid.Row="0" |
52 |
Grid.Column="1" |
53 |
HorizontalAlignment="Right" |
54 |
VerticalAlignment="Bottom" |
55 |
Foreground="White" |
56 |
Style="{StaticResource TimestampStyle}" |
57 |
Text="{Binding Path=TIMESTAMP, StringFormat='{}{0:g}'}" /> |
58 |
<TextBlock
|
59 |
Grid.Row="0" |
60 |
Grid.Column="0" |
61 |
HorizontalAlignment="Left" |
62 |
VerticalAlignment="Bottom" |
63 |
Foreground="White" |
64 |
Style="{StaticResource TextBlockStyle}" |
65 |
Text="{Binding Path=MEMBER_NAME, StringFormat='{}{0:g}'}" /> |
66 |
</Grid>
|
67 |
</Border>
|
68 |
</Grid>
|
69 |
</DataTemplate>
|
70 |
|
71 |
<DataTemplate x:Key="YouTemplate_V2"> |
72 |
<Grid Margin="5,10,30,0" HorizontalAlignment="Left"> |
73 |
<Grid.ColumnDefinitions>
|
74 |
<ColumnDefinition Width="Auto" /> |
75 |
<ColumnDefinition Width="*" /> |
76 |
<ColumnDefinition Width="Auto" /> |
77 |
</Grid.ColumnDefinitions>
|
78 |
<Grid.RowDefinitions>
|
79 |
<RowDefinition Height="Auto" /> |
80 |
<RowDefinition Height="*" /> |
81 |
<!--<RowDefinition Height="Auto"/>-->
|
82 |
</Grid.RowDefinitions>
|
83 |
<Border
|
84 |
Grid.Row="1" |
85 |
Grid.RowSpan="2" |
86 |
Grid.Column="1" |
87 |
Background="White" |
88 |
BorderThickness="1" |
89 |
CornerRadius="5" /> |
90 |
<TextBlock
|
91 |
Grid.Row="0" |
92 |
Grid.Column="1" |
93 |
Margin="0,5" |
94 |
Text="{Binding Path=MEMBER_NAME}" /> |
95 |
<TextBlock
|
96 |
Grid.Row="1" |
97 |
Grid.Column="1" |
98 |
Style="{StaticResource TextBlockStyle}" |
99 |
Text="{Binding Path=TEXT}" /> |
100 |
<TextBlock
|
101 |
Grid.Row="1" |
102 |
Grid.Column="2" |
103 |
Margin="5,0" |
104 |
HorizontalAlignment="Right" |
105 |
VerticalAlignment="Bottom" |
106 |
Style="{StaticResource TimestampStyle}" |
107 |
Text="{Binding Path=TIMESTAMP, StringFormat='{}{0:g}'}" /> |
108 |
</Grid>
|
109 |
</DataTemplate>
|
110 |
|
111 |
<DataTemplate x:Key="YouTemplate"> |
112 |
<Grid Margin="5,10,30,0" HorizontalAlignment="Left"> |
113 |
<Grid.ColumnDefinitions>
|
114 |
<ColumnDefinition Width="Auto" /> |
115 |
<ColumnDefinition Width="*" /> |
116 |
<ColumnDefinition Width="Auto" /> |
117 |
</Grid.ColumnDefinitions>
|
118 |
<Grid.RowDefinitions>
|
119 |
<RowDefinition Height="Auto" /> |
120 |
<RowDefinition Height="*" /> |
121 |
<!--<RowDefinition Height="Auto"/>-->
|
122 |
</Grid.RowDefinitions>
|
123 |
|
124 |
<Ellipse
|
125 |
Name="elipsemedia" |
126 |
Grid.RowSpan="3" |
127 |
Width="32" |
128 |
Height="32" |
129 |
Margin="5" |
130 |
VerticalAlignment="Top"> |
131 |
<Ellipse.Fill>
|
132 |
<ImageBrush ImageSource="user.png" /> |
133 |
</Ellipse.Fill>
|
134 |
</Ellipse>
|
135 |
<!--<Path Data="m 0,0 l 0,16 l 16,0 l -16,-16"
|
136 |
Fill="{StaticResource PhoneAccentBrush}"
|
137 |
Margin="0,0,0,0" Grid.Row="0"
|
138 |
HorizontalAlignment="Left"/>-->
|
139 |
<Border
|
140 |
Grid.Row="1" |
141 |
Grid.RowSpan="2" |
142 |
Grid.Column="1" |
143 |
Background="White" |
144 |
BorderThickness="1" |
145 |
CornerRadius="5"> |
146 |
<Grid>
|
147 |
<Grid.RowDefinitions>
|
148 |
<RowDefinition Height="Auto" /> |
149 |
<RowDefinition Height="*" /> |
150 |
</Grid.RowDefinitions>
|
151 |
<TextBlock
|
152 |
Grid.Row="0" |
153 |
Grid.Column="1" |
154 |
Margin="5,5" |
155 |
VerticalAlignment="Bottom" |
156 |
FontSize="12" |
157 |
Foreground="#FF828080" |
158 |
Text="{Binding Path=MEMBER_NAME}" /> |
159 |
<TextBlock
|
160 |
Grid.Row="1" |
161 |
Style="{StaticResource TextBlockStyle}" |
162 |
Text="{Binding Path=TEXT}" /> |
163 |
<TextBlock
|
164 |
Grid.Column="1" |
165 |
Margin="5,5" |
166 |
HorizontalAlignment="Right" |
167 |
VerticalAlignment="Center" |
168 |
Style="{StaticResource TimestampStyle}" |
169 |
Text="{Binding Path=TIMESTAMP, StringFormat='{}{0:g}'}" /> |
170 |
</Grid>
|
171 |
</Border>
|
172 |
|
173 |
|
174 |
</Grid>
|
175 |
</DataTemplate>
|
176 |
|
177 |
<DataTemplate x:Key="MeTemplate_Anchor"> |
178 |
<Grid Margin="30,10,5,0" HorizontalAlignment="Right"> |
179 |
<Grid.ColumnDefinitions>
|
180 |
<ColumnDefinition Width="2*" /> |
181 |
<ColumnDefinition Width="8*" /> |
182 |
</Grid.ColumnDefinitions>
|
183 |
<Grid.RowDefinitions>
|
184 |
<RowDefinition Height="*" /> |
185 |
<RowDefinition Height="Auto" /> |
186 |
</Grid.RowDefinitions>
|
187 |
<Border
|
188 |
Grid.RowSpan="1" |
189 |
Grid.Column="1" |
190 |
MinHeight="40" |
191 |
Background="{StaticResource PhoneAccentBrush}" |
192 |
BorderThickness="1" |
193 |
CornerRadius="5"> |
194 |
<Grid>
|
195 |
<Grid.RowDefinitions>
|
196 |
<RowDefinition Height="Auto" /> |
197 |
<RowDefinition Height="*" /> |
198 |
<RowDefinition Height="Auto" /> |
199 |
</Grid.RowDefinitions>
|
200 |
<TextBlock
|
201 |
Grid.Row="0" |
202 |
Grid.Column="1" |
203 |
HorizontalAlignment="Right" |
204 |
VerticalAlignment="Bottom" |
205 |
Foreground="White" |
206 |
Style="{StaticResource TimestampStyle}" |
207 |
Text="{Binding Path=TIMESTAMP, StringFormat='{}{0:g}'}" /> |
208 |
<TextBlock
|
209 |
Grid.Row="0" |
210 |
Grid.Column="0" |
211 |
HorizontalAlignment="Left" |
212 |
VerticalAlignment="Bottom" |
213 |
Foreground="White" |
214 |
Style="{StaticResource TextBlockStyle}" |
215 |
Text="{Binding Path=MEMBER_NAME, StringFormat='{}{0:g}'}" /> |
216 |
|
217 |
<TextBlock
|
218 |
Grid.Row="1" |
219 |
Grid.Column="1" |
220 |
HorizontalAlignment="Stretch" |
221 |
Foreground="White" |
222 |
Style="{StaticResource TextBlockStyle}" |
223 |
Text="{Binding Path=TEXT}" |
224 |
TextWrapping="Wrap" /> |
225 |
<Border
|
226 |
Grid.Row="2" |
227 |
Margin="5" |
228 |
HorizontalAlignment="Right" |
229 |
Background="#2263b0" |
230 |
CornerRadius="3"> |
231 |
<Button
|
232 |
Padding="5" |
233 |
HorizontalAlignment="Center" |
234 |
VerticalAlignment="Center" |
235 |
Background="Transparent" |
236 |
BorderThickness="0" |
237 |
Command="{Binding ClickAnchorCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ConversationView}}}" |
238 |
CommandParameter="{Binding}" |
239 |
Content="Review Comment" |
240 |
Foreground="White" /> |
241 |
</Border>
|
242 |
</Grid>
|
243 |
</Border>
|
244 |
<!--<StackPanel Grid.Row="0" Grid.Column="1">
|
245 |
<TextBlock Text="{Binding Path=TEXT}" Style="{StaticResource TextBlockStyle}" Grid.Row="0" Grid.Column="1"
|
246 |
TextWrapping="Wrap" Foreground="White" HorizontalAlignment="Stretch"/>
|
247 |
<Button Background="Transparent" Content="[앵커 확인하기]" Margin="10,0,10,5" Foreground="#FF0381F9" HorizontalAlignment="Center"
|
248 |
Command="{Binding ClickAnchorCommand}" CommandParameter="{Binding}"/>
|
249 |
</StackPanel>
|
250 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" Style="{StaticResource TimestampStyle}" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>-->
|
251 |
</Grid>
|
252 |
</DataTemplate>
|
253 |
|
254 |
<DataTemplate x:Key="YouTemplate_Anchor"> |
255 |
<Grid Margin="5,10,30,0" HorizontalAlignment="Left"> |
256 |
<Grid.ColumnDefinitions>
|
257 |
<ColumnDefinition Width="2*" /> |
258 |
<ColumnDefinition Width="8*" /> |
259 |
</Grid.ColumnDefinitions>
|
260 |
<Grid.RowDefinitions>
|
261 |
<RowDefinition Height="*" /> |
262 |
<RowDefinition Height="Auto" /> |
263 |
</Grid.RowDefinitions>
|
264 |
<Ellipse
|
265 |
Name="elipsemedia" |
266 |
Grid.RowSpan="3" |
267 |
Width="32" |
268 |
Height="32" |
269 |
Margin="5" |
270 |
VerticalAlignment="Top"> |
271 |
<Ellipse.Fill>
|
272 |
<ImageBrush ImageSource="user.png" /> |
273 |
</Ellipse.Fill>
|
274 |
</Ellipse>
|
275 |
|
276 |
<Border
|
277 |
Grid.RowSpan="1" |
278 |
Grid.Column="1" |
279 |
MinHeight="40" |
280 |
Background="White" |
281 |
BorderThickness="1" |
282 |
CornerRadius="5"> |
283 |
<Grid>
|
284 |
<Grid.RowDefinitions>
|
285 |
<RowDefinition Height="Auto" /> |
286 |
<RowDefinition Height="*" /> |
287 |
<RowDefinition Height="Auto" /> |
288 |
</Grid.RowDefinitions>
|
289 |
<TextBlock
|
290 |
Grid.Row="0" |
291 |
HorizontalAlignment="Right" |
292 |
VerticalAlignment="Bottom" |
293 |
Style="{StaticResource TimestampStyle}" |
294 |
Text="{Binding Path=TIMESTAMP, StringFormat='{}{0:g}'}" /> |
295 |
<TextBlock
|
296 |
Grid.Row="0" |
297 |
Grid.Column="1" |
298 |
Margin="5,5" |
299 |
VerticalAlignment="Bottom" |
300 |
FontSize="12" |
301 |
Foreground="#FF828080" |
302 |
Text="{Binding Path=MEMBER_NAME}" /> |
303 |
<TextBlock
|
304 |
Grid.Row="1" |
305 |
Grid.Column="1" |
306 |
HorizontalAlignment="Stretch" |
307 |
Style="{StaticResource TextBlockStyle}" |
308 |
Text="{Binding Path=TEXT}" |
309 |
TextWrapping="Wrap" /> |
310 |
<Border
|
311 |
Grid.Row="2" |
312 |
Margin="5" |
313 |
HorizontalAlignment="Right" |
314 |
Background="#2263b0" |
315 |
CornerRadius="3"> |
316 |
<Button
|
317 |
Padding="5" |
318 |
HorizontalAlignment="Center" |
319 |
VerticalAlignment="Center" |
320 |
Background="Transparent" |
321 |
BorderThickness="0" |
322 |
Command="{Binding ClickAnchorCommand}" |
323 |
CommandParameter="{Binding}" |
324 |
Content="코멘트 확인" |
325 |
Foreground="White" /> |
326 |
</Border>
|
327 |
</Grid>
|
328 |
</Border>
|
329 |
<!--<StackPanel Grid.Row="0" Grid.Column="1">
|
330 |
<TextBlock Text="{Binding Path=TEXT}" Style="{StaticResource TextBlockStyle}" Grid.Row="0" Grid.Column="1"
|
331 |
TextWrapping="Wrap" Foreground="White" HorizontalAlignment="Stretch"/>
|
332 |
<Button Background="Transparent" Content="[앵커 확인하기]" Margin="10,0,10,5" Foreground="#FF0381F9" HorizontalAlignment="Center"
|
333 |
Command="{Binding ClickAnchorCommand}" CommandParameter="{Binding}"/>
|
334 |
</StackPanel>
|
335 |
<TextBlock Text="{Binding Path=TIMESTAMP,StringFormat='{}{0:g}'}" Style="{StaticResource TimestampStyle}" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>-->
|
336 |
</Grid>
|
337 |
</DataTemplate>
|
338 |
|
339 |
</ResourceDictionary>
|