프로젝트

일반

사용자정보

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

markus / KCOM / Controls / thumbnailControl.xaml @ 787a4489

이력 | 보기 | 이력해설 | 다운로드 (4.19 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
        <!--d:LayoutOverrides="Width, Height"-->
23
        <!--<Grid  RenderTransformOrigin="0.5,0.5">
24
            <Grid.RowDefinitions>
25
                <RowDefinition Height="*"/>
26
                <RowDefinition Height="Auto"/>
27
            </Grid.RowDefinitions>
28
            <Grid.RenderTransform>
29
                <RotateTransform Angle="{Binding Angle}"/>
30
            </Grid.RenderTransform>
31
            <Border Margin="10,5" HorizontalAlignment="Stretch" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" BorderThickness="1,1,1.5,1.5">
32
                <Image Stretch="Uniform" Source="{Binding ImageUri}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
33
            </Border>
34
            
35
            <Border HorizontalAlignment="Stretch"  Background="Transparent" BorderBrush="Black" BorderThickness="0.2" VerticalAlignment="Bottom" Grid.Row="1">
36
                <Grid>
37
                    <Rectangle Fill="{DynamicResource KCOMColor_ActiveBrush}"/>
38
                    <TextBlock Text="{Binding PageNumber, FallbackValue=PageNo}" FontStyle="Italic" FontSize="14" HorizontalAlignment="Center"/>
39
                </Grid>
40
            </Border>
41
        </Grid>-->
42
        <!--강인구 수정-->
43
        <Grid>
44
            <Grid.RowDefinitions>
45
                <RowDefinition Height="*"/>
46
                <RowDefinition Height="Auto"/>
47
            </Grid.RowDefinitions>
48

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

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