OSDN Git Service

.Net4対応
[filenamechenger/filenamechanger.git] / FileNameChenger / WindowMain.xaml
1 <Window x:Class="FileNameChenger.WindowMain"
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" Height="200" Width="280" ResizeMode="CanMinimize" Unloaded="Window_Unloaded" Closing="Window_Closing" AllowDrop="False">
6
7     <Window.Resources>
8
9         <Style x:Key="PropertyTriggerExampleCheckBoxStyle" TargetType="{x:Type CheckBox}">
10
11         </Style>
12     </Window.Resources>
13
14     <Grid Background="Black" Height="181.484" Width="276.84" Name="Grid" AllowDrop="True" DragEnter="Grid_DragEnter" Drop="Grid_Drop">
15         <Grid.BindingGroup>
16             <BindingGroup Name="{x:Null}" NotifyOnValidationError="False" />
17         </Grid.BindingGroup>
18         <Button Canvas.Left="110" Canvas.Top="110" Width="80" Height="80" Margin="0,0,15.708,7.14" Name="buttonRun" VerticalAlignment="Bottom" HorizontalAlignment="Right" ForceCursor="False" Click="buttonRun_Click">
19             <Button.RenderTransform>
20                 <RotateTransform CenterX="45" CenterY="45" Angle="10"/>
21             </Button.RenderTransform>
22
23             変換実行
24         </Button>
25         <Label Height="25.377" Margin="18.296,18.564,0,0" Name="labelFrom" VerticalAlignment="Top" ClipToBounds="False" Foreground="White" HorizontalAlignment="Left" Width="118.84">変換元</Label>
26         <Label Margin="18.296,72.114,0,82.824" Name="labelTo" Foreground="White" HorizontalAlignment="Left" Width="118.84">変換先</Label>
27         <CheckBox Height="14.28" Margin="12,0,111.522,24.276" Name="checkBoxInSubDir" VerticalAlignment="Bottom" Foreground="White" IsChecked="False" Background="Black" Visibility="Hidden">サブディレクトリ内を対象</CheckBox>
28         <Label Height="22.848" HorizontalAlignment="Right" Margin="0,12,-34.272,0" Name="labelSetup" VerticalAlignment="Top" Width="120" Foreground="White" MouseEnter="labelSetup_MouseEnter" Visibility="Hidden">詳細設定→</Label>
29         <Image Canvas.Left="110" Canvas.Top="100" Margin="52.122,65.688,0,35.7" Name="imageWork" Stretch="Fill" Source="file:///F:/リネージュ/fansiteKitThrone1/07.ロゴ/リネージュII.jpg" Opacity="0.25" HorizontalAlignment="Left" Width="79.776">
30             <Image.RenderTransform>
31                 <RotateTransform CenterX="45" CenterY="45" Angle="0" x:Name="workingImage"></RotateTransform>
32             </Image.RenderTransform>
33         </Image>
34         <ProgressBar Height="32.706" Margin="12,18.564,80.82,0" Name="progressBarWork" VerticalAlignment="Top" Background="#FFD4D0C8" Value="0" Foreground="Gray" SmallChange="0.1" FontSize="12" BorderBrush="Transparent" BorderThickness="1" />
35         <CheckBox Height="16" HorizontalAlignment="Left" Margin="17.136,0,0,39.27" Name="checkBoxViewControl" VerticalAlignment="Bottom" Width="120" Visibility="Hidden" Foreground="White" Style="{StaticResource PropertyTriggerExampleCheckBoxStyle}">
36             <CheckBox.Triggers>
37                 <!--                <Trigger Property="Content" Value="">-->
38                 <EventTrigger RoutedEvent="CheckBox.Checked">
39                     <BeginStoryboard>
40                         <Storyboard>
41                             <!--フェイドイン-->
42                             <DoubleAnimation
43                 Storyboard.TargetName="imageWork" 
44                 Storyboard.TargetProperty="Opacity"
45                 To="1.0" Duration="0:0:5"/>
46                             <DoubleAnimation 
47                 Storyboard.TargetName="progressBarWork" 
48                 Storyboard.TargetProperty="Opacity"
49                 To="1.0" Duration="0:0:5"/>
50
51                             <!--フェイドアウト-->
52                             <DoubleAnimation
53                 Storyboard.TargetName="labelFrom" 
54                 Storyboard.TargetProperty="Opacity"
55                 To="0.0" Duration="0:0:5"/>
56                             <DoubleAnimation
57                 Storyboard.TargetName="labelTo" 
58                 Storyboard.TargetProperty="Opacity"
59                 To="0.0" Duration="0:0:5"/>
60                             <DoubleAnimation 
61                 Storyboard.TargetName="textBoxFrom" 
62                 Storyboard.TargetProperty="Opacity"
63                  To="0.0" Duration="0:0:5"/>
64                             <DoubleAnimation
65                 Storyboard.TargetName="textBoxTo" 
66                 Storyboard.TargetProperty="Opacity"
67                  To="0.0" Duration="0:0:5"/>
68                          </Storyboard>
69                     </BeginStoryboard>
70                 </EventTrigger>
71             </CheckBox.Triggers> アニメーションのトリガー
72         </CheckBox>
73         <CheckBox Height="16" HorizontalAlignment="Left" Margin="17,0,0,20" Name="checkBoxViewControl_Run" VerticalAlignment="Bottom" Width="120" Visibility="Hidden" Foreground="White" Style="{StaticResource PropertyTriggerExampleCheckBoxStyle}">
74             <CheckBox.Triggers>
75                 <!--                <Trigger Property="Content" Value="">-->
76                 <EventTrigger RoutedEvent="CheckBox.Checked">
77                     <BeginStoryboard>
78                         <Storyboard>
79                             <!--フェイドアウト-->
80                             <DoubleAnimation
81                 Storyboard.TargetName="imageWork" 
82                 Storyboard.TargetProperty="Opacity"
83                 To="0.25" Duration="0:0:5"/>
84                             <DoubleAnimation 
85                 Storyboard.TargetName="progressBarWork" 
86                 Storyboard.TargetProperty="Opacity"
87                 To="0.0" Duration="0:0:5"/>
88
89                             <!--フェイドイン-->
90                             <DoubleAnimation
91                 Storyboard.TargetName="labelFrom" 
92                 Storyboard.TargetProperty="Opacity"
93                 To="1.0" Duration="0:0:5"/>
94                             <DoubleAnimation
95                 Storyboard.TargetName="labelTo" 
96                 Storyboard.TargetProperty="Opacity"
97                 To="1.0" Duration="0:0:5"/>
98                             <DoubleAnimation 
99                 Storyboard.TargetName="textBoxFrom" 
100                 Storyboard.TargetProperty="Opacity"
101                  To="1.0" Duration="0:0:5"/>
102                             <DoubleAnimation
103                 Storyboard.TargetName="textBoxTo" 
104                 Storyboard.TargetProperty="Opacity"
105                  To="1.0" Duration="0:0:5"/>
106                         </Storyboard>
107                     </BeginStoryboard>
108                 </EventTrigger>
109             </CheckBox.Triggers> アニメーションのトリガー
110         </CheckBox>
111         <Label Height="27.132" Margin="12,0,117.948,13.868" Name="labelNonFreeSpace" VerticalAlignment="Bottom" Visibility="Hidden" Foreground="Red">ディスク容量なし</Label>
112         <uc:UCFileSelectTextBox Name="textBoxFrom" Margin="17.136,40.698,109.704,0" Height="25" VerticalAlignment="Top"></uc:UCFileSelectTextBox>
113         <uc:UCFileSelectTextBox Name="textBoxTo" Margin="17.136,0,109.704,61.404" Height="25" VerticalAlignment="Bottom"></uc:UCFileSelectTextBox>
114     </Grid>
115 </Window>