You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
5.9 KiB
123 lines
5.9 KiB
<Window x:Class="AIK.Views.MenuPages.Membership.MembershipOpenWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="{Binding WindowTitle}"
|
|
Width="520"
|
|
Height="640"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterOwner"
|
|
Background="#F7F8FA"
|
|
ShowInTaskbar="False"
|
|
Loaded="Window_Loaded">
|
|
<Window.Resources>
|
|
<Style x:Key="OpenButtonStyle" TargetType="Button">
|
|
<Setter Property="Width" Value="96"/>
|
|
<Setter Property="Height" Value="58"/>
|
|
<Setter Property="FontSize" Value="24"/>
|
|
<Setter Property="Foreground" Value="#344047"/>
|
|
<Setter Property="Background" Value="#20B8C8"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="border"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="8">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#18A9B8"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#1496A5"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="border" Property="Opacity" Value="0.5"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="72"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="48"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" Background="#F2F0F1">
|
|
<Grid>
|
|
<TextBlock Text="{Binding WindowTitle}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#33383D"/>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<ItemsControl Grid.Row="1"
|
|
ItemsSource="{Binding Modules}"
|
|
Margin="24,18,24,0">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="#E5E7EB"
|
|
BorderThickness="0,0,0,1"
|
|
Padding="0,24">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="1"/>
|
|
<ColumnDefinition Width="132"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Column="0" VerticalAlignment="Center">
|
|
<TextBlock Text="{Binding Name}"
|
|
FontSize="30"
|
|
FontWeight="Bold"
|
|
Foreground="#20B8C8"/>
|
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
|
<TextBlock Text="{Binding DataContext.FeeStandardText, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
FontSize="18"
|
|
Foreground="#66707A"/>
|
|
<TextBlock Text="{Binding IntegralPerYear}"
|
|
FontSize="20"
|
|
Foreground="#D33A2C"
|
|
Margin="2,0,0,0"/>
|
|
<TextBlock Text="{Binding DataContext.IntegralPerYearText, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
FontSize="20"
|
|
Foreground="#D33A2C"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<Rectangle Grid.Column="1"
|
|
Fill="#EEF0F2"
|
|
Height="84"
|
|
VerticalAlignment="Center"/>
|
|
|
|
<Button Grid.Column="2"
|
|
Content="{Binding DataContext.OpenButtonText, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Style="{StaticResource OpenButtonStyle}"
|
|
Command="{Binding DataContext.OpenModuleCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
CommandParameter="{Binding}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
|
|
<TextBlock Grid.Row="2"
|
|
Text="{Binding StatusMessage}"
|
|
Foreground="#D97706"
|
|
FontSize="13"
|
|
TextWrapping="Wrap"
|
|
VerticalAlignment="Center"
|
|
Margin="24,0"/>
|
|
</Grid>
|
|
</Window>
|
|
|