AddSurvery.xaml
上传用户:jxqhsy
上传日期:2020-12-31
资源大小:1793k
文件大小:5k
源码类别:

SilverLight

开发平台:

HTML/CSS

  1. <UserControl xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  x:Class="SFGS.AddSurvery"
  2.       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  4.     Width="960" Height="700">
  5.     <Grid x:Name="LayoutRoot1" Background="White" ShowGridLines="False">
  6.         <Grid.RowDefinitions>
  7.             <RowDefinition Height="100"/>
  8.            
  9.             <RowDefinition Height="40"/>
  10.            
  11.             <RowDefinition Height="40"/>
  12.            
  13.             <RowDefinition Height="40"/>
  14.             <RowDefinition Height="50"/>
  15.             <RowDefinition Height="40"/>
  16.             <RowDefinition Height="40"/>
  17.             <RowDefinition Height="*"/>
  18.         </Grid.RowDefinitions>
  19.         <Grid.ColumnDefinitions>
  20.             <ColumnDefinition Width="100"/>
  21.             <ColumnDefinition Width="375"/>
  22.             <ColumnDefinition Width="70"/>
  23.            <ColumnDefinition Width="70"/>
  24.         </Grid.ColumnDefinitions> 
  25.         <HyperlinkButton x:Name="start"      Grid.Row="1" Grid.Column="0" Click="start_Click"   Content="start"></HyperlinkButton>
  26.         <HyperlinkButton x:Name="entertitle"  Grid.Row="2" Grid.Column="0" Click="entertitle_Click"  Content="enter title"></HyperlinkButton>
  27.         <HyperlinkButton x:Name="enterdes"  Grid.Row="3" Grid.Column="0" Click="enterdes_Click"  Content="enter description"></HyperlinkButton>
  28.         <HyperlinkButton x:Name="addquestion"  Grid.Row="4" Grid.Column="0" Click="addquestion_Click"  Content="add question"></HyperlinkButton>
  29.         <HyperlinkButton x:Name="done"  Grid.Row="5" Grid.Column="0" Click="done_Click"  Content="done"></HyperlinkButton>
  30.         
  31.         <Canvas Visibility="Collapsed" Width="300" Height="200" Background="White" x:Name="cn2" Grid.RowSpan="5" Grid.Row="1" Grid.Column="1">
  32.             <TextBlock Canvas.Left="1" Canvas.Top="1">enter a title for survery</TextBlock>
  33.             <TextBox Canvas.Left="1" Canvas.Top="30"  ScrollViewer.VerticalScrollBarVisibility="Auto"  Width="300" Name="Title"></TextBox>
  34.         </Canvas>
  35.         <Canvas Visibility="Collapsed" Width="300" Height="200" Background="White" x:Name="cn1" Grid.RowSpan="5" Grid.Row="1" Grid.Column="1">
  36.             <TextBlock Canvas.Left="1" Canvas.Top="1">welcome to read ,As you can  add a survey</TextBlock>
  37.           </Canvas>
  38.         <Canvas Visibility="Collapsed" Width="300" Height="200" Background="White" x:Name="cn3" Grid.RowSpan="5" Grid.Row="1" Grid.Column="1">
  39.             <TextBlock Canvas.Left="1" Canvas.Top="1">enter a description for survery</TextBlock>
  40.             <TextBox Canvas.Left="1" Canvas.Top="30" Name="Description" Width="300" Height="100" ScrollViewer.VerticalScrollBarVisibility="Auto"></TextBox>
  41.         </Canvas>
  42.         
  43.         <Canvas Visibility="Collapsed" Width="300" Height="200" Background="White" x:Name="cn4" Grid.RowSpan="5" Grid.Row="1"  Grid.Column="1">
  44.             <TextBlock Canvas.Left="1" Canvas.Top="1">enter a query for survery</TextBlock>
  45.             <TextBox Canvas.Left="1" Canvas.Top="30" Width="300" Height="100" Name="Question" ScrollViewer.VerticalScrollBarVisibility="Auto"></TextBox>
  46.             <Grid  Canvas.Left="1" Canvas.Top="150" x:Name="LayoutRoot2" Background="White" ShowGridLines="True">
  47.                 <Grid.RowDefinitions>
  48.                     <RowDefinition Height="30"/>
  49.                     <RowDefinition Height="30"/>
  50.                     <RowDefinition Height="30"/>
  51.                     <RowDefinition Height="30"/>
  52.                     <RowDefinition Height="30"/>
  53.                     <RowDefinition Height="*"/>
  54.                 </Grid.RowDefinitions>
  55.                 <Grid.ColumnDefinitions>
  56.                     <ColumnDefinition Width="50"/>
  57.                     <ColumnDefinition Width="50"/>
  58.                 </Grid.ColumnDefinitions>
  59.                 <TextBlock Grid.Row="0" Grid.Column="0">A</TextBlock>
  60.                 <TextBox x:Name="questionA" Width="200" Grid.Row="0" Grid.Column="1"></TextBox>
  61.                 <TextBlock Grid.Row="1" Grid.Column="0">B</TextBlock>
  62.                 <TextBox x:Name="questionB" Width="200"  Grid.Row="1" Grid.Column="1"></TextBox>
  63.                 <TextBlock Grid.Row="2" Grid.Column="0">B</TextBlock>
  64.                 <TextBox x:Name="questionC" Width="200" Grid.Row="2" Grid.Column="1"></TextBox>
  65.                 <TextBlock Grid.Row="3" Grid.Column="0">D</TextBlock>
  66.                 <TextBox x:Name="questionD" Width="200" Grid.Row="3" Grid.Column="1"></TextBox>
  67.                 <Button x:Name="Save" Click="Save_Click" Grid.Row="4" Content="Save" Grid.ColumnSpan="2" Grid.Column="0"></Button>
  68.             </Grid>
  69.         </Canvas>
  70.         <TextBox  x:Name="id" Visibility="Collapsed" Text=""></TextBox>
  71.         <Button x:Name="preview" Content="preview" Click="preview_Click" Grid.Row="6" Grid.Column="2"></Button>
  72.         <Button x:Name="next"  Content="next"  Click="next_Click" Grid.Row="6" Grid.Column="3"></Button>
  73.     </Grid>
  74. </UserControl>