프로젝트

일반

사용자정보

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

markus / KCOM / Controls / Panorama.xaml @ 2a824927

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

1
<UserControl x:Class="KCOM.Controls.Panorama" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
2
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
3
             
4
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  xmlns:system="clr-namespace:System;assembly=mscorlib"
5
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
6
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  xmlns:converter="clr-namespace:KCOM.Common.Converter"
7
             xmlns:local="clr-namespace:KCOM.Controls"
8
             mc:Ignorable="d" 
9
             d:DesignHeight="600" d:DesignWidth="600">
10
    <UserControl.Resources>
11
        <converter:ImageUrlConverter x:Key="imageConverter"/>
12
        <DataTemplate x:Key="contentTemplate">
13
            <Border Background="#FFB2B2B2" MouseLeftButtonDown="Border_MouseLeftButtonDown">
14
                <Image Source="{Binding ImageUri}"  Stretch="Uniform" RenderTransformOrigin="0.5,0.5">
15
                    <Image.RenderTransform>
16
                        <RotateTransform Angle="{Binding Angle}"/>
17
                    </Image.RenderTransform>
18
                </Image>
19
                <!--<Leadtools_Windows_Controls:RasterImageViewer BorderThickness="0" Image="{Binding ImageUri,Converter={StaticResource imageConverter}}" 
20
                                                              ScrollViewer.HorizontalScrollBarVisibility="Disabled"
21
                                                              SizeMode="FitAlways">
22
                    <Leadtools_Windows_Controls:RasterImageViewer.RenderTransform>
23
                        <RotateTransform Angle="{Binding Angle}"/>
24
                    </Leadtools_Windows_Controls:RasterImageViewer.RenderTransform>
25
                </Leadtools_Windows_Controls:RasterImageViewer>-->
26
            </Border>
27
        </DataTemplate>
28
        <DataTemplate x:Key="headerTemplate">
29
            <StackPanel Orientation="Horizontal">
30
                <TextBlock Text="{Binding PageNumber}" VerticalAlignment="Center"/>
31
                <TextBlock Text=" Pages" VerticalAlignment="Center"/>
32
            </StackPanel>
33
            
34
        </DataTemplate>
35
    </UserControl.Resources>
36
    <Grid>
37
        <Grid.RowDefinitions>
38
            <RowDefinition Height="Auto"/>
39
            <RowDefinition Height="*"/>
40
        </Grid.RowDefinitions>
41
        <StackPanel Grid.Row="0" HorizontalAlignment="Right" Margin="5" Orientation="Horizontal">
42
            <!--<TextBlock Text="View Mode" VerticalAlignment="Center"/>
43
            <telerik:RadComboBox x:Name="cbViewZoom" Margin="5,0,10,0" SelectedIndex="2">
44
                <telerik:RadComboBox.Items>
45
                    <telerik:RadComboBoxItem Content="Normal">
46
                        <telerik:RadComboBoxItem.Tag>
47
                            <system:Int32>0</system:Int32>
48
                        </telerik:RadComboBoxItem.Tag>
49
                    </telerik:RadComboBoxItem>
50
                    <telerik:RadComboBoxItem Content="Fit">
51
                        <telerik:RadComboBoxItem.Tag>
52
                            <system:Int32>1</system:Int32>
53
                        </telerik:RadComboBoxItem.Tag>
54
                    </telerik:RadComboBoxItem>
55
                    <telerik:RadComboBoxItem Content="FitAlways">
56
                        <telerik:RadComboBoxItem.Tag>
57
                            <system:Int32>2</system:Int32>
58
                        </telerik:RadComboBoxItem.Tag>
59
                    </telerik:RadComboBoxItem>
60
                    <telerik:RadComboBoxItem Content="FitWidth">
61
                        <telerik:RadComboBoxItem.Tag>
62
                            <system:Int32>3</system:Int32>
63
                        </telerik:RadComboBoxItem.Tag>
64
                    </telerik:RadComboBoxItem>
65
                    <telerik:RadComboBoxItem Content="Stretch">
66
                        <telerik:RadComboBoxItem.Tag>
67
                            <system:Int32>4</system:Int32>
68
                        </telerik:RadComboBoxItem.Tag>
69
                    </telerik:RadComboBoxItem>
70
                </telerik:RadComboBox.Items>
71
            </telerik:RadComboBox>-->
72
            <TextBlock Text="Panorama Level (Max : 10)" VerticalAlignment="Center"/>
73
            <telerik:RadSlider Minimum="1" TickFrequency="0.5"  Value="3" Maximum="10" x:Name="columnsCount" MinWidth="100" telerik:StyleManager.Theme="Office2016" Margin="5"/> 
74
            <!--<Slider Minimum="1" Value="3" Maximum="10" x:Name="columnsCount" MinWidth="100"/>-->
75
        </StackPanel>
76
        <telerik:RadTileView IsAutoScrollingEnabled="False" x:Name="tileList" Grid.Row="1"
77
                             IsDockingEnabled="False" IsItemDraggingEnabled="False" IsItemsAnimationEnabled="False"
78
                             Grid.Column="1" telerik:StyleManager.Theme="Fluent"
79
                             ItemTemplate="{StaticResource headerTemplate}"  
80
                             ColumnsCount="{Binding ElementName=columnsCount, Path=Value}" ContentTemplate="{StaticResource contentTemplate}" 
81
                                 ColumnWidth="*" MinimizedColumnWidth="200" MinimizedRowHeight="Auto" PreservePositionWhenMaximized="True"
82
                                 RowHeight="Auto"/>
83
    </Grid>
84
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)