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">
8 <Style x:Key="PropertyTriggerExampleButtonStyle" TargetType="{x:Type Button}">
10 <Setter Property="Opacity" Value="0.25" />
13 <Trigger Property="IsMouseOver" Value="True">
15 <Trigger.EnterActions>
18 <DoubleAnimation Storyboard.TargetProperty="Opacity"
19 To="1" Duration="0:0:1" />
22 </Trigger.EnterActions>
26 <DoubleAnimation Storyboard.TargetProperty="Opacity"
27 To="0.25" Duration="0:0:1" />
30 </Trigger.ExitActions>
36 <Grid Background="Black" Height="181.484" Width="276.84" Name="Grid">
37 <Button Style="{StaticResource PropertyTriggerExampleButtonStyle}">
38 Move the mouse over me.
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">
45 <!-- Animates the rectangle's opacity. -->
46 <EventTrigger RoutedEvent="Button.Click">
47 <BeginStoryboard Name="btnStoryboard">
50 Storyboard.TargetName="workingImage"
51 Storyboard.TargetProperty="Angle"
52 From="0" To="360" Duration="0:0:5" />
55 Storyboard.TargetName="imageWork"
56 Storyboard.TargetProperty="Opacity"
57 From="0.0" To="1.0" Duration="0:0:5"/>
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">
69 </Image.RenderTransform>
72 <!-- Animates the rectangle's opacity. -->
73 <EventTrigger RoutedEvent="Image.Loaded">
74 <BeginStoryboard Name="imagStoryboard">
77 Storyboard.TargetName="workingImage"
78 Storyboard.TargetProperty="Angle"
79 From="0" To="360" Duration="0:0:5" />
81 Storyboard.TargetName="imageWork"
82 Storyboard.TargetProperty="Opacity"
83 From="0.0" To="1.0" Duration="0:0:5"/>
91 <Button HorizontalAlignment="Left" Margin="12,70,0,88" Name="buttonStop" Width="75" Click="buttonStop_Click">Stop</Button>
93 <StackPanel Margin="8,72,12,-52">
101 <!-- Animates the rectangle's opacity. -->
102 <!-- <EventTrigger RoutedEvent="Rectangle.Loaded">
106 Storyboard.TargetName="MyRectangle"
107 Storyboard.TargetProperty="Opacity"
108 From="1.0" To="0.0" Duration="0:0:5"
109 AutoReverse="True" RepeatBehavior="Forever" />
113 </Rectangle.Triggers>