12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <UserControl x:Class="OOO_WriteAndClear.MVP.Views.FeaturesMenuUserControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:OOO_WriteAndClear.MVP.Views"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- d:Background="White"
- FontFamily="Comic Sans MS">
-
- <UserControl.Resources>
-
- <Style x:Key="ExitButtonStyle" TargetType="{x:Type Button}">
- <Setter Property="Width" Value="40"/>
- <Setter Property="Height" Value="40"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image Height="{TemplateBinding Height}"
- Width="{TemplateBinding Width}"
- Source="/Assets/Pictures/ExitIcon.png"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- </UserControl.Resources>
-
- <Border Padding="10">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition />
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition />
- </Grid.RowDefinitions>
- <Label Grid.Row="0"
- Content="Меню"
- HorizontalAlignment="Center"
- FontSize="18"/>
- <Button Style="{DynamicResource ExitButtonStyle}"
- HorizontalAlignment="Left"
- VerticalAlignment="Center" Click="Exit_ButtonClick"/>
- <Grid HorizontalAlignment="Right" VerticalAlignment="Top"
- Margin="0 0 10 0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Image Grid.Column="0" Grid.RowSpan="2"
- Height="40" Width="40"
- VerticalAlignment="Top"
- Margin="0 0 10 0"
- Source="/Assets/Pictures/LoginFieldIcon.png"/>
- <TextBlock x:Name="DisplayingUserName"
- Grid.Column="1" Grid.Row="0"
- Text="Гость"
- Margin="0 0 0 5"/>
- <TextBlock x:Name="DisplayingUserRole"
- Grid.Column="1" Grid.Row="1"
- Foreground="Gray"/>
- </Grid>
- <Button Grid.Row="2"
- Height="40" Width="400"
- Margin="0 0 0 20"
- Background="#498c51" BorderThickness="0" Foreground="White"
- Content="Заказы" Click="GoToOrdersUserControl_ButtonClick"/>
- <Button Grid.Row="3"
- Height="40" Width="400"
- Background="#498c51" BorderThickness="0" Foreground="White"
- Content="Продукты" Click="GoToProductsUserControl_ButtonClick"/>
- </Grid>
- </Border>
-
- </UserControl>
|