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

SilverLight

开发平台:

HTML/CSS

  1. <UserControl x:Class="SFGS.ContactUs"
  2.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  4.     Width="500" Height="300">
  5.     <Grid x:Name="LayoutRoot" Background="AliceBlue" ShowGridLines="False">
  6.         <Grid.RowDefinitions>
  7.             <RowDefinition Height="15"/>
  8.             <RowDefinition Height="30"/>
  9.             <RowDefinition Height="15"/>
  10.             <RowDefinition Height="30"/>
  11.             <RowDefinition Height="15"/>
  12.             <RowDefinition Height="50"/>
  13.             <RowDefinition Height="15"/>
  14.             <RowDefinition Height="40"/>
  15.             <RowDefinition Height="*"/>
  16.         </Grid.RowDefinitions>
  17.         <Grid.ColumnDefinitions>
  18.             <ColumnDefinition Width="*"/>
  19.             <ColumnDefinition Width="45"/>
  20.             <ColumnDefinition Width="200"/>
  21.             <ColumnDefinition Width="*"/>
  22.         </Grid.ColumnDefinitions>
  23.         <TextBlock Grid.Row="1" Grid.Column="1" Text="Name:"  VerticalAlignment="Center" Foreground="Black"></TextBlock>
  24.         <TextBlock Grid.Row="3" Grid.Column="1" Text="Age:" VerticalAlignment="Center" Foreground="Black"></TextBlock>
  25.         <TextBlock Grid.Row="5" Grid.Column="1" Text="Query:" VerticalAlignment="Center" Foreground="Black"></TextBlock>
  26.         <TextBox x:Name="Name"  Grid.Row="1" Grid.Column="2" Width="200" Height="30" HorizontalAlignment="Left"></TextBox>
  27.         <TextBox x:Name="Age" Grid.Row="3" Grid.Column="2" Width="200" Height="30" HorizontalAlignment="Left"></TextBox>
  28.         <TextBox x:Name="Query" Grid.Row="5" ScrollViewer.VerticalScrollBarVisibility="Auto" Grid.Column="2" Width="200" Height="50" HorizontalAlignment="Left"></TextBox>
  29.         <TextBlock  Grid.Row="1" Grid.Column="3" Text="*"  VerticalAlignment="Center" Foreground="Red"></TextBlock>
  30.         <TextBlock Grid.Row="3" Grid.Column="3" Text="* Must be a number" VerticalAlignment="Center" Foreground="Red"></TextBlock>
  31.         <TextBlock Grid.Row="5" Grid.Column="3" Text="*" VerticalAlignment="Center" Foreground="Red"></TextBlock>
  32.         <Button x:Name="sub" Click="sub_Click" Grid.Row="7" Grid.Column="2" Width="150" Height="30" Content="Submit"></Button>
  33.     </Grid>
  34. </UserControl>