Compare commits
1 Commits
db3cd55efd
...
LabWork03
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
941d2a2535 |
@@ -15,19 +15,9 @@
|
||||
<Setter Property="FontSize" Value="18"/>
|
||||
<Setter Property="Margin" Value="20"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="checkboxStyle" TargetType="CheckBox">
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter Property="Background" Value="Green"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid ShowGridLines="True" Margin="0,0,0,0">
|
||||
<Grid ShowGridLines="True">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
<RowDefinition Height="2*"></RowDefinition>
|
||||
@@ -42,81 +32,12 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Vertical">
|
||||
<CheckBox Style="{StaticResource checkboxStyle}" Margin="10" Content=" Я согласен с пользовательским соглашением"/>
|
||||
<CheckBox Style="{StaticResource checkboxStyle}" Margin="10" Content="Я согласен на обработку данных"/>
|
||||
<CheckBox FontSize="16" Margin="10" Content=" Я согласен с пользовательским соглашением"/>
|
||||
<CheckBox FontSize="16" Margin="10" Content="Я согласен на обработку данных"/>
|
||||
</StackPanel>
|
||||
|
||||
<Button x:Name="shakingbutton" Style="{StaticResource buttonDesicion}" Background="{StaticResource BrushWheat}" MinHeight="50" MinWidth="50" Grid.Row="3" Grid.Column="1" Content="Установить">
|
||||
<Button.RenderTransform>
|
||||
<TranslateTransform/>
|
||||
</Button.RenderTransform>
|
||||
|
||||
<Button.Triggers>
|
||||
<EventTrigger RoutedEvent="MouseEnter">
|
||||
<BeginStoryboard Name="MouseEnter_BeginStoryboard">
|
||||
<Storyboard>
|
||||
<DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" Storyboard.TargetProperty="RenderTransform.(TranslateTransform.Y)">
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:0" Value="0" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:0.50" Value="-5" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:1" Value="0" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:1.50" Value="5" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:2" Value="0" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
<ColorAnimation Storyboard.TargetName="shakingbutton"
|
||||
Storyboard.TargetProperty="(Button.Foreground).(SolidColorBrush.Color)"
|
||||
To="Green"
|
||||
Duration="0:0:0.1"/>
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger>
|
||||
<EventTrigger RoutedEvent="MouseLeave">
|
||||
<StopStoryboard BeginStoryboardName="MouseEnter_BeginStoryboard"/>
|
||||
</EventTrigger>
|
||||
</Button.Triggers>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button x:Name="cancelbutton" Background="{StaticResource BrushWheat}" MinHeight="50" MinWidth="50" Grid.Row="3" Grid.Column="2" Content="Отмена" FontSize="18" Margin="20">
|
||||
<Button.RenderTransform>
|
||||
<TranslateTransform/>
|
||||
</Button.RenderTransform>
|
||||
|
||||
<Button.Triggers>
|
||||
<EventTrigger RoutedEvent="MouseEnter">
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" Storyboard.TargetProperty="RenderTransform.(TranslateTransform.Y)">
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:0" Value="0" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:0.50" Value="-5" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:1" Value="0" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:1.50" Value="5" />
|
||||
<SplineDoubleKeyFrame KeyTime="0:0:2" Value="0" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
<ColorAnimation Storyboard.TargetName="shakingbutton"
|
||||
Storyboard.TargetProperty="(Button.Foreground).(SolidColorBrush.Color)"
|
||||
To="Green"
|
||||
Duration="0:0:0.1"/>
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger>
|
||||
<EventTrigger RoutedEvent="MouseLeave">
|
||||
<StopStoryboard BeginStoryboardName="MouseEnter_BeginStoryboard"/>
|
||||
</EventTrigger>
|
||||
</Button.Triggers>
|
||||
|
||||
<Button.Style>
|
||||
<Style>
|
||||
<Style.Triggers>
|
||||
<EventTrigger RoutedEvent="Button.Click">
|
||||
<EventTrigger.Actions>
|
||||
<SoundPlayerAction Source="sounds/button_cancel.wav"></SoundPlayerAction>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Button.Style>
|
||||
|
||||
</Button>
|
||||
<Button Style="{StaticResource buttonDesicion}" Background="{StaticResource BrushWheat}" MinHeight="50" MinWidth="50" Grid.Row="3" Grid.Column="1">Принять</Button>
|
||||
<Button Style="{StaticResource buttonDesicion}" Background="{StaticResource BrushWheat}" MinHeight="50" MinWidth="50" Grid.Row="3" Grid.Column="2">Отмена</Button>
|
||||
|
||||
<Label Content="Установка" Grid.Row="0" Grid.Column="0" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
|
||||
@@ -126,14 +47,12 @@
|
||||
<Run>Путь установки: C:\Users\Ilyas\AppData\Local\hgv</Run>
|
||||
</Paragraph>
|
||||
<Paragraph>
|
||||
<Run>Требуемого места: 148Т</Run>
|
||||
<Run>Требуемого места: 148Т </Run>
|
||||
</Paragraph>
|
||||
</FlowDocument>
|
||||
</RichTextBox>
|
||||
|
||||
<Image Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Source="images/hgvstrgtavc.png" Stretch="Fill" Margin="0,10"/>
|
||||
|
||||
<MediaElement Source="videos/pixel_loading_bar.mp4" LoadedBehavior="Play" Grid.Row="3" Grid.Column="0" Margin="14,10,265,10" Grid.ColumnSpan="2"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Media;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
@@ -21,9 +20,5 @@ namespace WPF
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void LoginShowBox(object parameter)
|
||||
{
|
||||
MessageBox.Show("Вход");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,23 +10,12 @@
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="images\hgvstrgtavc.png" />
|
||||
<None Remove="sounds\button_cancel.wav" />
|
||||
<None Remove="videos\pixel_loading_bar.mp4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="images\hgvstrgtavc.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Content Include="videos\pixel_loading_bar.mp4">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="sounds\button_cancel.wav">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user