markus / KCOM / Messenger / StyleDictionary.xaml @ 53f99751
이력 | 보기 | 이력해설 | 다운로드 (14.4 KB)
1 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | |
6 | |||
7 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | </Style>
|
13 | |||
14 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | <!--<Setter Property="HorizontalAlignment" Value="Right"/>-->
|
19 | </Style>
|
||
20 | <DataTemplate x:Key="MeTemplate"> |
||
21 | 4fcb686a | taeseongkim | <Grid Margin="30,10,5,0" HorizontalAlignment="Right"> |
22 | 787a4489 | KangIngu | <Grid.ColumnDefinitions>
|
23 | 4fcb686a | taeseongkim | <ColumnDefinition Width="2*" /> |
24 | <ColumnDefinition Width="8*" /> |
||
25 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
26 | <Grid.RowDefinitions>
|
||
27 | 4fcb686a | taeseongkim | <RowDefinition Height="*" /> |
28 | <RowDefinition Height="Auto" /> |
||
29 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
30 | 4fcb686a | taeseongkim | <Border
|
31 | Grid.RowSpan="1" |
||
32 | Grid.Column="1" |
||
33 | MinHeight="40" |
||
34 | Background="{StaticResource PhoneAccentBrush}" |
||
35 | BorderThickness="1" |
||
36 | CornerRadius="5"> |
||
37 | 787a4489 | KangIngu | <Grid>
|
38 | <Grid.RowDefinitions>
|
||
39 | 4fcb686a | taeseongkim | <RowDefinition Height="Auto" /> |
40 | <RowDefinition Height="*" /> |
||
41 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
42 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | </Grid>
|
67 | </Border>
|
||
68 | </Grid>
|
||
69 | </DataTemplate>
|
||
70 | |||
71 | <DataTemplate x:Key="YouTemplate_V2"> |
||
72 | 4fcb686a | taeseongkim | <Grid Margin="5,10,30,0" HorizontalAlignment="Left"> |
73 | 787a4489 | KangIngu | <Grid.ColumnDefinitions>
|
74 | 4fcb686a | taeseongkim | <ColumnDefinition Width="Auto" /> |
75 | <ColumnDefinition Width="*" /> |
||
76 | <ColumnDefinition Width="Auto" /> |
||
77 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
78 | <Grid.RowDefinitions>
|
||
79 | 4fcb686a | taeseongkim | <RowDefinition Height="Auto" /> |
80 | <RowDefinition Height="*" /> |
||
81 | 787a4489 | KangIngu | <!--<RowDefinition Height="Auto"/>-->
|
82 | </Grid.RowDefinitions>
|
||
83 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | </Grid>
|
109 | </DataTemplate>
|
||
110 | |||
111 | <DataTemplate x:Key="YouTemplate"> |
||
112 | 4fcb686a | taeseongkim | <Grid Margin="5,10,30,0" HorizontalAlignment="Left"> |
113 | 787a4489 | KangIngu | <Grid.ColumnDefinitions>
|
114 | 4fcb686a | taeseongkim | <ColumnDefinition Width="Auto" /> |
115 | <ColumnDefinition Width="*" /> |
||
116 | <ColumnDefinition Width="Auto" /> |
||
117 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
118 | <Grid.RowDefinitions>
|
||
119 | 4fcb686a | taeseongkim | <RowDefinition Height="Auto" /> |
120 | <RowDefinition Height="*" /> |
||
121 | 787a4489 | KangIngu | <!--<RowDefinition Height="Auto"/>-->
|
122 | </Grid.RowDefinitions>
|
||
123 | |||
124 | 4fcb686a | taeseongkim | <Ellipse
|
125 | Name="elipsemedia" |
||
126 | Grid.RowSpan="3" |
||
127 | Width="32" |
||
128 | Height="32" |
||
129 | Margin="5" |
||
130 | VerticalAlignment="Top"> |
||
131 | 787a4489 | KangIngu | <Ellipse.Fill>
|
132 | 4fcb686a | taeseongkim | <ImageBrush ImageSource="user.png" /> |
133 | 787a4489 | KangIngu | </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 | 4fcb686a | taeseongkim | <Border
|
140 | Grid.Row="1" |
||
141 | Grid.RowSpan="2" |
||
142 | Grid.Column="1" |
||
143 | Background="White" |
||
144 | BorderThickness="1" |
||
145 | CornerRadius="5"> |
||
146 | 787a4489 | KangIngu | <Grid>
|
147 | <Grid.RowDefinitions>
|
||
148 | 4fcb686a | taeseongkim | <RowDefinition Height="Auto" /> |
149 | <RowDefinition Height="*" /> |
||
150 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
151 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | </Grid>
|
171 | </Border>
|
||
172 | |||
173 | |||
174 | </Grid>
|
||
175 | </DataTemplate>
|
||
176 | |||
177 | <DataTemplate x:Key="MeTemplate_Anchor"> |
||
178 | 4fcb686a | taeseongkim | <Grid Margin="30,10,5,0" HorizontalAlignment="Right"> |
179 | 787a4489 | KangIngu | <Grid.ColumnDefinitions>
|
180 | 4fcb686a | taeseongkim | <ColumnDefinition Width="2*" /> |
181 | <ColumnDefinition Width="8*" /> |
||
182 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
183 | <Grid.RowDefinitions>
|
||
184 | 4fcb686a | taeseongkim | <RowDefinition Height="*" /> |
185 | <RowDefinition Height="Auto" /> |
||
186 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
187 | 4fcb686a | taeseongkim | <Border
|
188 | Grid.RowSpan="1" |
||
189 | Grid.Column="1" |
||
190 | MinHeight="40" |
||
191 | Background="{StaticResource PhoneAccentBrush}" |
||
192 | BorderThickness="1" |
||
193 | CornerRadius="5"> |
||
194 | 787a4489 | KangIngu | <Grid>
|
195 | <Grid.RowDefinitions>
|
||
196 | 4fcb686a | taeseongkim | <RowDefinition Height="Auto" /> |
197 | <RowDefinition Height="*" /> |
||
198 | <RowDefinition Height="Auto" /> |
||
199 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
200 | 4fcb686a | taeseongkim | <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 | 224f1503 | djkim | |
217 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | </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 | 4fcb686a | taeseongkim | <Grid Margin="5,10,30,0" HorizontalAlignment="Left"> |
256 | 787a4489 | KangIngu | <Grid.ColumnDefinitions>
|
257 | 4fcb686a | taeseongkim | <ColumnDefinition Width="2*" /> |
258 | <ColumnDefinition Width="8*" /> |
||
259 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
260 | <Grid.RowDefinitions>
|
||
261 | 4fcb686a | taeseongkim | <RowDefinition Height="*" /> |
262 | <RowDefinition Height="Auto" /> |
||
263 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
264 | 4fcb686a | taeseongkim | <Ellipse
|
265 | Name="elipsemedia" |
||
266 | Grid.RowSpan="3" |
||
267 | Width="32" |
||
268 | Height="32" |
||
269 | Margin="5" |
||
270 | VerticalAlignment="Top"> |
||
271 | 787a4489 | KangIngu | <Ellipse.Fill>
|
272 | 4fcb686a | taeseongkim | <ImageBrush ImageSource="user.png" /> |
273 | 787a4489 | KangIngu | </Ellipse.Fill>
|
274 | </Ellipse>
|
||
275 | |||
276 | 4fcb686a | taeseongkim | <Border
|
277 | Grid.RowSpan="1" |
||
278 | Grid.Column="1" |
||
279 | MinHeight="40" |
||
280 | Background="White" |
||
281 | BorderThickness="1" |
||
282 | CornerRadius="5"> |
||
283 | 787a4489 | KangIngu | <Grid>
|
284 | <Grid.RowDefinitions>
|
||
285 | 4fcb686a | taeseongkim | <RowDefinition Height="Auto" /> |
286 | <RowDefinition Height="*" /> |
||
287 | <RowDefinition Height="Auto" /> |
||
288 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
289 | 4fcb686a | taeseongkim | <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 | 787a4489 | KangIngu | </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> |