프로젝트

일반

사용자정보

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

markus / KCOM / Controls / CAD / CadViewer.xaml @ f65e6c02

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

1 684ef11c ljiyeon
<Window x:Class="KCOM.Controls.CadViewer"
2
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
3
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
7
        xmlns:local="clr-namespace:KCOM.Controls"
8
        xmlns:controls="clr-namespace:KCOM.Controls"
9
        mc:Ignorable="d"
10
        Height="Auto" Width="Auto">
11
12
    <Grid Name="test">
13
        <Grid Name="grid1">
14
            <Grid.ColumnDefinitions>
15
                <ColumnDefinition Width="1*"/>
16
                <ColumnDefinition Width="250" />
17
            </Grid.ColumnDefinitions>
18
19
            <Grid Name="grid2">
20
                <Grid.RowDefinitions>
21
                    <RowDefinition Height="30"/>
22
                    <RowDefinition Height="100*"/>
23
                </Grid.RowDefinitions>
24
                <Grid Name="grid3" Grid.Row="0">
25
                    <Grid.ColumnDefinitions>
26
                        <ColumnDefinition Width="2.5*"/>
27
                        <ColumnDefinition Width="7.5*"/>
28
                    </Grid.ColumnDefinitions>
29
                    <Button Content="open" Grid.Column="0" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="button1" Click="button1_Click"/>
30
                    <!-- &#10; -->
31
                    <TextBox Margin="10,2,0,-2" Background="#FFF3F3F3" Grid.Column="1" BorderThickness="0.5" VerticalContentAlignment="Center" Text="" x:Name="filepath"/>
32
                </Grid>
33
                <local:CustomImage1 Grid.Row="1" x:Name="dwgControl" Grid.Column="0" SizeChanged="dwgControl_SizeChanged"  MouseDown="DwgControl_MouseDown" Background="Azure"/>
34
            </Grid>
35
            <telerik:RadPaneGroup telerik:StyleManager.Theme="Office2016" Grid.Column="1">
36
                <telerik:RadPane Margin="0,10,0,0" Header=" CAD Area Info" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="10" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016" x:Name="cadPanel">
37
                    <controls:cadPanel  x:Name="cadPanel_Instance"/>
38
                </telerik:RadPane>
39
            </telerik:RadPaneGroup>
40
        </Grid>
41
    </Grid>
42
</Window>
43
<!-- 
44
                <Grid Name="grid3" Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
45
                    <Grid.RowDefinitions>
46
                        <RowDefinition Height="20*" />
47
                        <RowDefinition Height="20*" />
48
                        <RowDefinition Height="20*" />
49
                        <RowDefinition Height="20*" />
50
                    </Grid.RowDefinitions>
51
                    <Grid Name="grid7" Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
52
                        <Grid.RowDefinitions>
53
                            <RowDefinition Height="20*"/>
54
                        </Grid.RowDefinitions>
55
                        <Button Grid.Row="0" Click="button1_Click" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="button1">Open</Button>
56
                    </Grid>
57
                    <Grid Name="grid4" Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
58
                        <Grid.RowDefinitions>
59
                            <RowDefinition Height="67*"/>
60
                            <RowDefinition Height="84*"/>
61
                        </Grid.RowDefinitions>
62
                        <Grid.ColumnDefinitions>
63
                            <ColumnDefinition Width="10*"/>
64
                            <ColumnDefinition Width="10*"/>
65
                        </Grid.ColumnDefinitions>
66
                        <Button Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="sp" Click="Sp_Click" Grid.RowSpan="2">(Left, Top)</Button>
67
                        <Label Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="spLabel" VerticalContentAlignment="Center" Grid.RowSpan="2">(0, 0)</Label>
68
                    </Grid>
69
                    <Grid Name="grid5" Grid.Row="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
70
                        <Grid.ColumnDefinitions>
71
                            <ColumnDefinition Width="10*"/>
72
                            <ColumnDefinition Width="10*"/>
73
                        </Grid.ColumnDefinitions>
74
                        <Button Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="ep" Click="Ep_Click" >(Right, Bottom)</Button>
75
                        <Label Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="epLabel" VerticalContentAlignment="Center">(0, 0)</Label>
76
                    </Grid>
77
                    <Grid Name="grid6" Grid.Row="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
78
                        <Grid.RowDefinitions>
79
                            <RowDefinition Height="20*"/>
80
                            <RowDefinition Height="20*"/>
81
                        </Grid.RowDefinitions>
82
                        <Button Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="Clear" Click="Clear_Click">Clear</Button>
83
                        <Button Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="Export" Click="Export_Click">Export</Button>
84
                    </Grid>
85

86

87
                     <Button Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="test1" Click="test1_Click">
88
                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
89
                            Draw <LineBreak/> Line
90
                        </TextBlock>
91
                    </Button>
92

93
                  <Button Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="test2" Click="test2_Click">
94
                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
95
                            Export <LineBreak/> to PDF
96
                        </TextBlock>
97
                    </Button>-->
98
99
<!-- <Button Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="lineAdd" Click="lineAdd_Click">lineAdd</Button>
100
                    <Button Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="rectAdd" Click="rectAdd_Click">rectAdd</Button>
101
                    <Button Grid.Row="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="export" Click="Export_Click">Export</Button>
102
                </Grid>-->
클립보드 이미지 추가 (최대 크기: 500 MB)