프로젝트

일반

사용자정보

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

markus / KCOM / Controls / thumbnailControl.xaml @ 71208c63

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

1
<UserControl x:Class="KCOM.Controls.thumbnailControl"
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" 
6
             xmlns:local="clr-namespace:KCOM.Controls"
7
             mc:Ignorable="d"  xmlns:controls="clr-namespace:KCOM.Controls"
8
             d:DesignHeight="300" d:DesignWidth="300">
9
             <!--d:DesignHeight="110" d:DesignWidth="80">-->
10
    
11
    <Grid x:Name="LayoutRoot">
12
        <Grid.Resources>
13
            <Storyboard x:Key="FadeImageStoryboard" RepeatBehavior="Forever">
14
                <DoubleAnimation From="1.0" 
15
                                 To="0.0" 
16
                                 Duration="0:0:0.1"
17
                                 AutoReverse="True" 
18
                                 Storyboard.TargetName="LayoutRoot"
19
                                 Storyboard.TargetProperty="Opacity" />
20
            </Storyboard>
21
        </Grid.Resources>
22
        
23
        <!--d:LayoutOverrides="Width, Height"-->
24
        <!--<Grid  RenderTransformOrigin="0.5,0.5">
25
            <Grid.RowDefinitions>
26
                <RowDefinition Height="*"/>
27
                <RowDefinition Height="Auto"/>
28
            </Grid.RowDefinitions>
29
            <Grid.RenderTransform>
30
                <RotateTransform Angle="{Binding Angle}"/>
31
            </Grid.RenderTransform>
32
            <Border Margin="10,5" HorizontalAlignment="Stretch" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" BorderThickness="1,1,1.5,1.5">
33
                <Image Stretch="Uniform" Source="{Binding ImageUri}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
34
            </Border>
35
            
36
            <Border HorizontalAlignment="Stretch"  Background="Transparent" BorderBrush="Black" BorderThickness="0.2" VerticalAlignment="Bottom" Grid.Row="1">
37
                <Grid>
38
                    <Rectangle Fill="{DynamicResource KCOMColor_ActiveBrush}"/>
39
                    <TextBlock Text="{Binding PageNumber, FallbackValue=PageNo}" FontStyle="Italic" FontSize="14" HorizontalAlignment="Center"/>
40
                </Grid>
41
            </Border>
42
        </Grid>-->
43
        <!--강인구 수정-->
44
        <Grid>
45
            <Grid.RowDefinitions>
46
                <RowDefinition Height="*"/>
47
                <RowDefinition Height="Auto"/>
48
            </Grid.RowDefinitions>
49

    
50
            <Grid Grid.Row="0"  RenderTransformOrigin="0.5,0.5">
51
                <Grid.RenderTransform>
52
                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay}"/>
53
                </Grid.RenderTransform>
54
                <Border Margin="20,15" HorizontalAlignment="Stretch" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" BorderThickness="1,1,1.5,1.5">
55
                <!--<Border Margin="10,5" HorizontalAlignment="Stretch" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" BorderThickness="0">-->
56
                    <!--<Image Stretch="Uniform" Source="{Binding ImageUri}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>-->
57
                    <Grid RenderTransformOrigin="0.5,0.5">
58
                        
59
                        <!--<Image Stretch="Uniform" Source="{Binding ImageUri}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="10"/>-->
60
                        <Image Stretch="Uniform" Source="{Binding ImageUri}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
61
                    </Grid>
62
                </Border>
63
            </Grid>
64

    
65
            <Border HorizontalAlignment="Stretch"  Background="Transparent" BorderBrush="Black" BorderThickness="0.2" VerticalAlignment="Bottom" Grid.Row="1">
66
                <Grid>
67
                    <TextBlock Text="{Binding PageNumber, FallbackValue=PageNo}" FontStyle="Italic" FontSize="14" HorizontalAlignment="Center"/>
68
                </Grid>
69
            </Border>
70
        </Grid>
71
        <Border Width="30" Height="20" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,5">
72
            <controls:MarkupColorList  ColorList="{Binding DisplayColorItems}"  Opacity="90"/>
73
        </Border>
74
    </Grid>
75
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)