Menu

[59aa80]: / FeedbackGeneratorQQ / Main.xaml  Maximize  Restore  History

Download this file

47 lines (41 with data), 2.2 kB

<Window x:Class="FeedbackGeneratorQQ.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"
        mc:Ignorable="d"
        WindowStartupLocation="CenterScreen"
        Title="Feedback Generator v1.0" 
        Height="550" MinHeight="550" 
        Width="620" MinWidth="620">
    <DockPanel>

        <Menu DockPanel.Dock="Top">
            <MenuItem Header="_FAQ" Click="HelpMenuItemClick"/>
        </Menu>

        <StackPanel Orientation="Horizontal" DockPanel.Dock="Top" HorizontalAlignment="Center">
            <Label DockPanel.Dock="Top" FontWeight="Bold">Basic Information</Label>
        </StackPanel>
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Top" HorizontalAlignment="Center">
            <Label DockPanel.Dock="Left">First Name</Label>
            <TextBox DockPanel.Dock="Right" x:Name="FirstName" Width="100" />
            <Label DockPanel.Dock="Left">Last Name</Label>
            <TextBox DockPanel.Dock="Right" x:Name="LastName" Width="100" />
            <Label DockPanel.Dock="Left">Gender</Label>
            <ComboBox DockPanel.Dock="Right" x:Name="Gender" Width="100">
                <ComboBoxItem>Male</ComboBoxItem>
                <ComboBoxItem>Female</ComboBoxItem>
            </ComboBox>
        </StackPanel>

        <StackPanel Orientation="Horizontal" DockPanel.Dock="Top" HorizontalAlignment="Center">
            <Label DockPanel.Dock="Top" FontWeight="Bold">Attributes</Label>
        </StackPanel>

        <WrapPanel   DockPanel.Dock="Top" Orientation="Horizontal" x:Name="AttributesPanel"/>

        <DockPanel DockPanel.Dock="Top" Margin="0 10 0 10">
            <Button x:Name="Generate" Click="ButtonGenerateClick" Content="Generate" Width="100" />
        </DockPanel>

        <DockPanel DockPanel.Dock="Top">
            <TextBox x:Name="Result" ScrollViewer.VerticalScrollBarVisibility="Auto" TextWrapping="Wrap"
                     IsReadOnly="True" AcceptsReturn="True"/>
        </DockPanel>
    </DockPanel>
</Window>
MongoDB Logo MongoDB