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