Admin.xaml
上传用户:jxqhsy
上传日期:2020-12-31
资源大小:1793k
文件大小:8k
- <UserControl xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" x:Class="SFGS.Admin"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
- Width="960" Height="700" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
-
- <StackPanel Margin="10,10,10,10" Background="White">
- <TextBlock Text="Existing Surverys" Margin="0,20,10,20"
- FontFamily="Verdana" FontSize="18" FontWeight="Bold"
- Foreground="#FF5C9AC9" />
- <data:DataGrid x:Name="dataGrid4" Height="160" Margin="0,5,0,10" RowHeight="40" AutoGenerateColumns="False" >
- <data:DataGrid.Columns>
-
- <data:DataGridTemplateColumn Header="Name" Width="100">
- <data:DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Name}" />
- </StackPanel>
- </DataTemplate>
- </data:DataGridTemplateColumn.CellTemplate>
- </data:DataGridTemplateColumn>
-
- <data:DataGridTemplateColumn Header="Description" Width="200">
- <data:DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Description}" />
- </StackPanel>
- </DataTemplate>
- </data:DataGridTemplateColumn.CellTemplate>
- </data:DataGridTemplateColumn>
-
- <data:DataGridTemplateColumn Header="Responses" Width="100">
- <data:DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Responses}" />
- </StackPanel>
- </DataTemplate>
- </data:DataGridTemplateColumn.CellTemplate>
- </data:DataGridTemplateColumn>
-
- <data:DataGridTemplateColumn>
- <data:DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <HyperlinkButton x:Name="Result" Tag="{Binding ID}" Width="80" Height="30" FontSize="10" Foreground="Blue" Content="{Binding Result}" Click="Result_Click" />
- </StackPanel>
- </DataTemplate>
- </data:DataGridTemplateColumn.CellTemplate>
- </data:DataGridTemplateColumn>
-
- <data:DataGridTemplateColumn>
- <data:DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <HyperlinkButton x:Name="Question" Tag="{Binding ID}" Width="80" Height="30" FontSize="10" Foreground="Blue" Content="{Binding Question}" Click="Question_Click" />
- <HyperlinkButton x:Name="Edit" Tag="{Binding ID}" Width="80" Height="30" FontSize="10" Foreground="Blue" Content="{Binding Edit}" Click="Edit_Click" />
- </StackPanel>
- </DataTemplate>
- </data:DataGridTemplateColumn.CellTemplate>
- </data:DataGridTemplateColumn>
-
- <data:DataGridTemplateColumn>
- <data:DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <HyperlinkButton x:Name="Delete" Tag="{Binding ID}" Width="80" Height="30" FontSize="10" Foreground="Blue" Content="{Binding Delete}" Click="Delete_Click" />
- </StackPanel>
- </DataTemplate>
- </data:DataGridTemplateColumn.CellTemplate>
- </data:DataGridTemplateColumn>
-
- <data:DataGridTemplateColumn>
- <data:DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <HyperlinkButton x:Name="theNew" Tag="{Binding ID}" Width="80" Height="30" FontSize="10" Foreground="Blue" Content="{Binding theNew}" Click="theNew_Click" />
- </StackPanel>
- </DataTemplate>
- </data:DataGridTemplateColumn.CellTemplate>
- </data:DataGridTemplateColumn>
-
- </data:DataGrid.Columns>
- </data:DataGrid>
- <Grid x:Name="LayoutRoot" Width="1000" Height="800" ShowGridLines="False">
- <Grid.RowDefinitions>
- <RowDefinition Height="260" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="450" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
-
- <Border BorderThickness="20,50,40,130" CornerRadius="20,20,20,20" Grid.Row="0" Grid.Column="0">
- <Border BorderBrush="Black" CornerRadius="20,20,20,20" BorderThickness="1,1,1,1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="35" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <TextBlock Text="Click here to Add a New Survey" Margin="20,0,0,0" FontSize="20" Grid.Row="0"/>
- <HyperlinkButton x:Name="addNewSurvey" Foreground="Blue" Content="New..." Margin="-270,0,0,0" FontSize="20" Grid.Row="1" Width="80" Height="30" Click="addNewSurvey_Click" />
- </Grid>
- </Border>
- </Border>
-
- <Border BorderThickness="20,50,120,20" CornerRadius="20,20,20,20" Grid.Row="0" Grid.Column="1">
- <Border BorderBrush="Black" CornerRadius="20,20,20,20" BorderThickness="1,1,1,1" Height="183">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="35" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <TextBlock Text="Currently Displayed Survey:" Margin="20,0,0,0" FontSize="20" Grid.Row="0"/>
- <ComboBox x:Name="theDisplayedSurvey" Grid.Row="1" Height="30" Margin="20,4.5,89,0" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
- <Button x:Name="btnSaveDisSurvey" HorizontalAlignment="Left" Margin="23,59,0,54" Width="120" Content="Save" Grid.Row="1" Click="btnSaveDisSurvey_Click" />
- <TextBlock x:Name="theMessage" Margin="159,68,17,54" TextWrapping="Wrap" Grid.Row="1" FontSize="16" Foreground="#FFFA0707" />
- </Grid>
- </Border>
- </Border>
-
- <HyperlinkButton x:Name="logout" Content="Logout" Grid.Row="1" Grid.Column="1" Height="32" Margin="0,29,98,0" Background="{x:Null}" VerticalAlignment="Top" Foreground="#FF0000FF" FontSize="20" Width="88" HorizontalAlignment="Right" Click="logout_Click" />
- </Grid>
- </StackPanel>
- </UserControl>