-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddPortfolio.xaml
39 lines (37 loc) · 1.98 KB
/
AddPortfolio.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<Window x:Class="Фотостудия.AddPortfolio"
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:Фотостудия"
mc:Ignorable="d"
Title="Запись в портфолио фотографа" Height="250" Width="400" WindowStartupLocation="CenterScreen" Icon="AppImgs/Лого.png">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Height" Value="30"/>
</Style>
</Window.Resources>
<Grid>
<StackPanel Width="300" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10">
<Label>Фото</Label>
<ComboBox Name="cbImagePath" SelectedValuePath="Изображение" SelectedValue="{Binding Изображение}">
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding ImageForWins}" Width="40"/>
<Label Content="{Binding Изображение}"/>
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Content="Добавить..." Width="80" HorizontalAlignment="Right" Click="bt_files" Style="{x:Null}"/>
<Border Style="{StaticResource forAddWin}">
<Button Content="Сохранить" Click="bt_SaveClick"/>
</Border>
</StackPanel>
</Grid>
</Window>