OSDN Git Service

.Net4対応
[filenamechenger/filenamechanger.git] / FileNameChenger / WorkView.xaml
1 <Window x:Class="FileNameChenger.WorkView"
2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     xmlns:uc="clr-namespace:UserControls;assembly=UserControls"
5     Title="FileNameChenger(WorkView)" Height="200" Width="280" ResizeMode="CanMinimize">
6     <Window.Resources>
7
8         <Style x:Key="PropertyTriggerExampleButtonStyle" TargetType="{x:Type Button}">
9
10             <Setter Property="Opacity" Value="0.25" />
11
12             <Style.Triggers>
13                 <Trigger Property="IsMouseOver" Value="True">
14
15                     <Trigger.EnterActions>
16                         <BeginStoryboard>
17                             <Storyboard>
18                                 <DoubleAnimation Storyboard.TargetProperty="Opacity"
19                   To="1" Duration="0:0:1" />
20                             </Storyboard>
21                         </BeginStoryboard>
22                     </Trigger.EnterActions>
23                     <Trigger.ExitActions>
24                         <BeginStoryboard>
25                             <Storyboard>
26                                 <DoubleAnimation Storyboard.TargetProperty="Opacity"
27                   To="0.25" Duration="0:0:1" />
28                             </Storyboard>
29                         </BeginStoryboard>
30                     </Trigger.ExitActions>
31                 </Trigger>
32             </Style.Triggers>
33         </Style>
34     </Window.Resources>
35
36     <Grid Background="Black" Height="181.484" Width="276.84" Name="Grid">
37         <Button Style="{StaticResource PropertyTriggerExampleButtonStyle}">
38             Move the mouse over me.
39         </Button>
40         <uc:UCFileSelectTextBox Margin="34,0,72.84,32" Opacity="1" Height="23" VerticalAlignment="Bottom" />
41         <Button Height="23" Margin="0,0,50,32" Name="buttonCancel" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="74.84" Click="buttonCancel_Click">キャンセル</Button>
42         <ProgressBar Height="10" Margin="34,0,59,61" Name="progressBarWork" VerticalAlignment="Bottom" />
43          <Button Height="23" HorizontalAlignment="Left" Margin="12,20,0,0" Name="buttonRun" VerticalAlignment="Top" Width="75" Click="buttonRun_Click">
44             <Button.Triggers>
45                 <!-- Animates the rectangle's opacity. -->
46                 <EventTrigger RoutedEvent="Button.Click">
47                     <BeginStoryboard Name="btnStoryboard">
48                         <Storyboard>
49                             <!--<DoubleAnimation
50                 Storyboard.TargetName="workingImage" 
51                 Storyboard.TargetProperty="Angle"
52                 From="0" To="360" Duration="0:0:5" />
53 -->
54                             <DoubleAnimation
55                 Storyboard.TargetName="imageWork" 
56                 Storyboard.TargetProperty="Opacity"
57                 From="0.0" To="1.0" Duration="0:0:5"/>
58                         </Storyboard>
59
60                     </BeginStoryboard>
61                 </EventTrigger>
62             </Button.Triggers>
63             Run</Button>
64         <Image Canvas.Left="110" Canvas.Top="100" Width="80" Height="80" Margin="27,0,50,77" Name="imageWork" Stretch="Fill" Source="file:///F:/リネージュ/fansiteKitThrone1/07.ロゴ/リネージュII.jpg" Opacity="1" Loaded="imageWork_Loaded">
65            <Image.RenderTransform>
66                 <RotateTransform CenterX="45" CenterY="45" Angle="0" x:Name="workingImage">
67
68                 </RotateTransform>
69             </Image.RenderTransform>
70
71             <Image.Triggers>
72                 <!-- Animates the rectangle's opacity. -->
73                 <EventTrigger RoutedEvent="Image.Loaded">
74                     <BeginStoryboard Name="imagStoryboard">
75                         <Storyboard>
76                             <!--<DoubleAnimation
77                 Storyboard.TargetName="workingImage" 
78                 Storyboard.TargetProperty="Angle"
79                 From="0" To="360" Duration="0:0:5" />
80                             <DoubleAnimation
81                 Storyboard.TargetName="imageWork" 
82                 Storyboard.TargetProperty="Opacity"
83                 From="0.0" To="1.0" Duration="0:0:5"/>
84  -->
85                        </Storyboard>
86
87                     </BeginStoryboard>
88                 </EventTrigger>
89             </Image.Triggers>
90         </Image>
91         <Button HorizontalAlignment="Left" Margin="12,70,0,88" Name="buttonStop" Width="75" Click="buttonStop_Click">Stop</Button>
92         <!--
93         <StackPanel Margin="8,72,12,-52">
94             <Rectangle
95       Name="MyRectangle"
96       Width="100" 
97       Height="100"
98       Fill="Blue">
99                 <Rectangle.Triggers>
100 -->        
101                     <!-- Animates the rectangle's opacity. -->
102 <!--                    <EventTrigger RoutedEvent="Rectangle.Loaded">
103                         <BeginStoryboard>
104                             <Storyboard>
105                                 <DoubleAnimation
106                 Storyboard.TargetName="MyRectangle" 
107                 Storyboard.TargetProperty="Opacity"
108                 From="1.0" To="0.0" Duration="0:0:5" 
109                 AutoReverse="True" RepeatBehavior="Forever" />
110                             </Storyboard>
111                         </BeginStoryboard>
112                     </EventTrigger>
113                 </Rectangle.Triggers>
114             </Rectangle>
115         </StackPanel>
116 -->
117
118     </Grid>
119 </Window>