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