프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Messenger / ConversationView.xaml @ e7dd7ae8

이력 | 보기 | 이력해설 | 다운로드 (7.4 KB)

1 787a4489 KangIngu
<UserControl x:Class="KCOM.Messenger.ConversationView"
2
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
5
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  xmlns:common="clr-namespace:KCOM.Common"
6
             xmlns:local="clr-namespace:KCOM.Messenger" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
7
             mc:Ignorable="d" 
8
             d:DesignHeight="500" d:DesignWidth="400" >
9
    <!--<Grid x:Name="LayoutRoot">
10
        <Grid.RowDefinitions>
11
            <RowDefinition Height="*"/>
12
            <RowDefinition Height="30"/>
13
            <RowDefinition Height="60"/>
14
        </Grid.RowDefinitions>
15
        <ScrollViewer telerik:StyleManager.Theme="Office2016" BorderThickness="0" Background="#fafafa" HorizontalScrollBarVisibility="Disabled">
16
            <ItemsControl ItemsSource="{Binding k_talkMessageSet, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}">
17
            <ItemsControl.ItemTemplate>
18
                <DataTemplate>               
19
                <local:MessageContentPresenter Content="{Binding}">
20
                    <local:MessageContentPresenter.MeTemplate>
21
                        <DataTemplate>
22
                            <Grid Margin="30, 10, 5, 0" Width="420">
23
                                <Rectangle Fill="{StaticResource PhoneAccentBrush}"  Grid.RowSpan="2"/>
24
                                <TextBlock Text="{Binding Path=Text}"
25
                             Style="{StaticResource TextBlockStyle}"/>
26
                                    <TextBlock Text="{Binding Path=Timestamp}" Style="{StaticResource TimestampStyle}" Grid.Row="1"/>
27
                                    <Path Data="m 0,0 l 16,0 l 0,16 l -16,-16"
28
                                                Fill="{StaticResource PhoneAccentBrush}"
29
                                                Margin="0,0,5,0"
30
                                                HorizontalAlignment="Right"
31
                                                Grid.Row="2"/>
32
                                </Grid>
33
                        </DataTemplate>
34
                    </local:MessageContentPresenter.MeTemplate>
35
                    <local:MessageContentPresenter.YouTemplate>
36
                        <DataTemplate>
37
                            <Grid Margin="5, 10, 30, 0" Width="420">
38

39
                                <Path Data="m 0,0 l 0,16 l 16,0 l -16,-16"
40
                        Fill="{StaticResource PhoneAccentBrush}"
41
                        Margin="5,0,0,0"
42
                        HorizontalAlignment="Left"/>
43
                                <Rectangle Fill="{StaticResource PhoneAccentBrush}"
44
                             Grid.Row="1" Grid.RowSpan="2"/>
45
                                <TextBlock Text="{Binding Path=Text}"
46
                             Style="{StaticResource TextBlockStyle}"
47
                             Grid.Row="1"/>
48
                                <TextBlock Text="{Binding Path=Timestamp}"
49
                             Style="{StaticResource TimestampStyle}"
50
                             Grid.Row="2"/>
51
                            </Grid>
52
                        </DataTemplate>
53
                    </local:MessageContentPresenter.YouTemplate>
54
                </local:MessageContentPresenter>
55
                </DataTemplate>
56
            </ItemsControl.ItemTemplate>
57
        </ItemsControl>
58
        </ScrollViewer>
59
        <Border Grid.Row="1" BorderThickness="0,1,0,0" BorderBrush="#FFCDCDCD">
60
            <Grid Width="{Binding Path=Width, ElementName=LayoutRoot}" Background="#fafafa">
61
                <StackPanel Orientation="Horizontal">
62
                    <telerik:RadButton Content="MARK" Margin="5" x:Name="btnMark"/>
63
                    <telerik:RadButton Content="FILE" Margin="5" x:Name="btnFile"/>
64
                    <telerik:RadButton Content="E-MAIL" Margin="5" x:Name="btnMail"/>
65
                </StackPanel>
66
            </Grid>
67
        </Border>
68
        <Border Grid.Row="2">
69
            <Grid Width="{Binding Path=Width, ElementName=LayoutRoot}">
70
                <Grid.ColumnDefinitions>
71
                    <ColumnDefinition Width="*"/>
72
                    <ColumnDefinition Width="Auto"/>
73
                </Grid.ColumnDefinitions>
74
                --><!--<Border  Grid.Column="0" BorderBrush="#dcdcdc"  Background="#fafafa" Margin="5"/>--><!--
75

76
                
77
                <telerik:RadButton Content="Send" BorderThickness="0" telerik:StyleManager.Theme="VisualStudio2013" Background="#4586ec" Foreground="White" CornerRadius="0" Grid.Column="1" Width="50"/>
78
                <TextBox Grid.Column="0" BorderBrush="#dcdcdc"  Background="#fafafa" BorderThickness="0"  TextWrapping="Wrap"
79
              x:Name="tbContent" 
80
             AcceptsTab="True" VerticalScrollBarVisibility="Auto"
81
             HorizontalScrollBarVisibility="Disabled"
82
             HorizontalAlignment="Stretch"   />
83
            </Grid>
84
        </Border>
85
    </Grid>-->
86
    <Grid >
87
        <!--<DataGrid ItemsSource="{Binding MessageSet}" AutoGenerateColumns="True"/>-->
88
        <Grid.RowDefinitions>
89
            <RowDefinition Height="*"/>
90
            <RowDefinition Height="30"/>
91
            <RowDefinition Height="80"/>
92
        </Grid.RowDefinitions>
93
94
        <ScrollViewer BorderThickness="0" Background="#e9ecf2"  HorizontalScrollBarVisibility="Disabled" IsTabStop="False">
95
            <ItemsControl ItemsSource="{Binding k_talkMessageSet, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" x:Name="lstMessage">
96
                <ItemsControl.ItemTemplate>
97
                    <DataTemplate>
98
                        <!--<TextBlock Text="{Binding UserName}"/>-->
99
                        <local:MessageContentPresenter Content="{Binding}"/>
100
                    </DataTemplate>
101
                </ItemsControl.ItemTemplate>
102
            </ItemsControl>
103
        </ScrollViewer>
104
        <Border BorderBrush="#e0e2e2" BorderThickness="0,2,0,0" Grid.Row="1" Background="#fbfcfd">
105
            <StackPanel Orientation="Horizontal">
106 c460df05 djkim
                <Image Source="clip.png" Width="18" Height="18" Margin="5,0" x:Name="btnFile" Visibility="Collapsed"/>
107 787a4489 KangIngu
                <Image Source="check_pen.png" Width="18" Height="18" Margin="5,0" x:Name="btnMark"/>
108 c460df05 djkim
                <Image Source="email.png" Width="18" Height="18" Margin="5,0" x:Name="btnMail" Visibility="Collapsed"/>
109 787a4489 KangIngu
            </StackPanel>
110
        </Border>
111
        <Border  Grid.Row="2" Background="#fbfcfd">
112
            <Grid>
113
                <Grid.ColumnDefinitions>
114
                    <ColumnDefinition Width="*"/>
115
                    <ColumnDefinition Width="80"/>
116
                </Grid.ColumnDefinitions>
117
                <TextBox Grid.Column="0" BorderBrush="#dcdcdc"  Background="#fafafa" BorderThickness="0"  TextWrapping="Wrap"
118
                         x:Name="tbContent"  Foreground="#888d91" Margin="10,10" AcceptsTab="True" VerticalScrollBarVisibility="Auto"
119
                         HorizontalScrollBarVisibility="Disabled" HorizontalAlignment="Stretch"   />
120
                <Border Grid.Column="1" Background="#616d7a" CornerRadius="5" Margin="10,10" VerticalAlignment="Top" MinHeight="40">
121
                    <Button Background="Transparent" BorderThickness="0" Foreground="White" Content="Send" x:Name="btnSend" telerik:StyleManager.Theme="VisualStudio2013"/>
122
                </Border>
123
            </Grid>
124
        </Border>
125
    </Grid>
126
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)