lab2
This commit is contained in:
parent
af1250005a
commit
a2ec9a0f88
9
lab2/App.xaml
Normal file
9
lab2/App.xaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Application x:Class="lab2.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="clr-namespace:lab2"
|
||||||
|
StartupUri="MainWindow.xaml">
|
||||||
|
<Application.Resources>
|
||||||
|
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
17
lab2/App.xaml.cs
Normal file
17
lab2/App.xaml.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace lab2
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for App.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
10
lab2/AssemblyInfo.cs
Normal file
10
lab2/AssemblyInfo.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
53
lab2/MainWindow.xaml
Normal file
53
lab2/MainWindow.xaml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<Window x:Class="lab2.MainWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:lab2"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="MainWindow" Height="450" Width="800">
|
||||||
|
<Grid Background="#FF8DECC3">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
|
<RowDefinition Height="10*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="5*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Border BorderBrush="Black" BorderThickness="4" Grid.Column="2" Grid.Row="0" Grid.RowSpan="1">
|
||||||
|
<Image Source="/free-icon-clover-6365303.png"/>
|
||||||
|
</Border>
|
||||||
|
<Border BorderBrush="Black" BorderThickness="4" Grid.Column="2" Grid.Row="1" Grid.RowSpan="1">
|
||||||
|
<StackPanel Margin="0,20,0,0">
|
||||||
|
<Button Margin="5" Foreground="Black" BorderBrush="Black" BorderThickness="2" Background="#FF8DECC3">
|
||||||
|
<TextBlock TextWrapping="Wrap" FontFamily="Bahnschrift">Выбрать видео</TextBlock>
|
||||||
|
</Button>
|
||||||
|
<Button Margin="5" Foreground="Black" BorderBrush="Black" BorderThickness="2" Background="#FF8DECC3">
|
||||||
|
<TextBlock TextWrapping="Wrap" FontFamily="Bahnschrift">Пуск</TextBlock>
|
||||||
|
</Button>
|
||||||
|
<Button Margin="5" Foreground="Black" BorderBrush="Black" BorderThickness="2" Background="#FF8DECC3">
|
||||||
|
<TextBlock TextWrapping="Wrap" FontFamily="Bahnschrift">Пауза</TextBlock>
|
||||||
|
</Button>
|
||||||
|
<Button Margin="5" Foreground="Black" BorderBrush="Black" BorderThickness="2" Background="#FF8DECC3">
|
||||||
|
<TextBlock TextWrapping="Wrap" FontFamily="Bahnschrift">Вкл. звук</TextBlock>
|
||||||
|
</Button>
|
||||||
|
<Button Margin="5" Foreground="Black" BorderBrush="Black" BorderThickness="2" Background="#FF8DECC3">
|
||||||
|
<TextBlock TextWrapping="Wrap" FontFamily="Bahnschrift">Выкл. звук</TextBlock>
|
||||||
|
</Button>
|
||||||
|
<Button Margin="5" Foreground="Black" BorderBrush="Black" BorderThickness="2" Background="#FF8DECC3">
|
||||||
|
<TextBlock TextWrapping="Wrap" FontFamily="Bahnschrift">Рестарт</TextBlock>
|
||||||
|
</Button>
|
||||||
|
<Button Margin="5" Foreground="Black" BorderBrush="Black" BorderThickness="2" Background="#FF8DECC3">
|
||||||
|
<TextBlock TextWrapping="Wrap" FontFamily="Bahnschrift">Очистить</TextBlock>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
<Border BorderBrush="Black" BorderThickness="4" Grid.Column="0" Grid.Row="0" Grid.RowSpan="1" Grid.ColumnSpan="2">
|
||||||
|
<TextBlock TextWrapping="Wrap" TextAlignment="Center" FontSize="18" FontFamily="Bahnschrift" VerticalAlignment="Center">Лютий видеохостинг</TextBlock>
|
||||||
|
</Border>
|
||||||
|
<Border BorderBrush="Black" BorderThickness="4" Grid.Column="0" Grid.Row="1" Grid.RowSpan="1" Grid.ColumnSpan="2">
|
||||||
|
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
28
lab2/MainWindow.xaml.cs
Normal file
28
lab2/MainWindow.xaml.cs
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace lab2
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for MainWindow.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainWindow : Window
|
||||||
|
{
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
lab2/free-icon-clover-6365303.png
Normal file
BIN
lab2/free-icon-clover-6365303.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
18
lab2/lab2.csproj
Normal file
18
lab2/lab2.csproj
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="free-icon-clover-6365303.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="free-icon-clover-6365303.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user