johnson:silverlight登录界面的设计

<Grid x:Name="LayoutRoot" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<Grid.Background>
<ImageBrush ImageSource="Images/LogInBackGroud.png" Stretch="Fill"></ImageBrush>
</Grid.Background>
<StackPanel Width="Auto" Height="Auto" Orientation="Horizontal" HorizontalAlignment="Center">
<StackPanel.Background>
<ImageBrush ImageSource="Images/LogIn.png" Stretch="None"></ImageBrush>
</StackPanel.Background>
<StackPanel Width="600" Height="270" Orientation="Vertical" HorizontalAlignment="Center">
<Grid Width="300" Height="200" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="109,65,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="97*" />
<ColumnDefinition Width="203*" />
</Grid.ColumnDefinitions>
<Grid x:Name="LayoutRoot3" Grid.ColumnSpan="2">
<Grid.RowDefinitions>
<RowDefinition Height="160"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<Grid x:Name="contgrid" Margin="10,10,10,11">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.7*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition Height="35"/>
<RowDefinition Height="35"/>
<RowDefinition Height="35" />
<RowDefinition Height="35" />
</Grid.RowDefinitions>
<Grid Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">
<sdk:Label Height="auto" HorizontalAlignment="Left" Margin="0,0,10,0" Name="label1" VerticalAlignment="Top" Width="auto" Content="用户类型" />
</Grid>
<Grid Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">
<sdk:Label Height="auto" HorizontalAlignment="Left" Margin="0,0,10,0" Name="label2" VerticalAlignment="Top" Width="auto" Content="用户名" />
</Grid>
<Grid Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">
<sdk:Label Height="auto" HorizontalAlignment="Left" Margin="0,0,10,0" Name="label3" VerticalAlignment="Top" Width="auto" Content="密码" />
</Grid>
<Grid Grid.Row="3" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">
<sdk:Label Height="auto" HorizontalAlignment="Left" Margin="0,0,10,0" Name="label4" VerticalAlignment="Top" Width="auto" Content="验证码" />
</Grid>

<Grid Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center">
<ComboBox Height="25" HorizontalAlignment="Left" Margin="10,0,0,0" Name="cmbType" VerticalAlignment="Center" Width="170" >
<ComboBoxItem Content="aa" IsSelected="True"/>
<ComboBoxItem Content="bb"/>
<ComboBoxItem Content="cc"/>
</ComboBox>

</Grid>
<Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center">
<TextBox Text="{Binding Uuserid,Mode=TwoWay}" Height="25" HorizontalAlignment="Left" Margin="10,0,0,0" Name="txtName" VerticalAlignment="Center" Width="170" />
</Grid>
<Grid Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center">
<PasswordBox Height="25" x:Name="txtPsw" Margin="10,0,0,0" Password="" Width="170"/>
</Grid>
<Grid Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" Margin="10,0,0,0">
<TextBox Height="23" Name="validate" Width="80" />
<Grid Background="White" Margin="10,0,0,0">
<Image x:Name="imgSource" Height="30" Width="100" ToolTipService.ToolTip="点击刷新验证码" Stretch="None"/>
</Grid>
</StackPanel>
</Grid>
</Grid>
<Grid x:Name="gridbut" Grid.Row="1" Grid.Column="0" Margin="0,0,0,0">
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,0,20,0">
<Button x:Name="btnOk" Content="确定" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,4,0,3"
Command="{Binding Path=ToMainCommand}" CommandParameter="Main"/>
</StackPanel>
</Grid>
</Grid>
</Grid>
</StackPanel>
</StackPanel>
</Grid>

你可能感兴趣的:(silverlight)