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

SilverLight

开发平台:

HTML/CSS

  1. <UserControl x:Class="SFGS.Page"
  2.              xmlns:uc="clr-namespace:SFGS"
  3.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  4.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     
  5.     >
  6.     <ScrollViewer HorizontalScrollBarVisibility="Hidden"  VerticalScrollBarVisibility="Visible">
  7.     <Grid x:Name="LayoutRoot" Background="#FF5c7590" Width="1000" Height="800" ShowGridLines="True">
  8.         <Grid.RowDefinitions>
  9.             <RowDefinition Height="Auto" />
  10.             <RowDefinition Height="*" />            
  11.         </Grid.RowDefinitions>
  12.         <!--导航条-->
  13.         <StackPanel Background="Green" Margin="20,10" Grid.Row="0" Grid.Column="0">
  14.             <Grid ShowGridLines="False" Width="400" Height="50">
  15.                 <Grid.ColumnDefinitions>
  16.                     <ColumnDefinition Width="*" />
  17.                     <ColumnDefinition Width="*" />
  18.                     <ColumnDefinition Width="130" />
  19.                     <ColumnDefinition Width="*" />                    
  20.                 </Grid.ColumnDefinitions>                
  21.                 <HyperlinkButton x:Name="hbHome"  Content="Home" Width="70" Height="40"  Margin="10" FontSize="20"  Grid.Column="0" Grid.Row="0" Click="hbHome_Click" />
  22.                 <HyperlinkButton x:Name="hbAbout" Content="About" Width="70" Height="40"  Margin="10" FontSize="20"  Grid.Column="1" Grid.Row="0" Click="hbAbout_Click" />
  23.                 <HyperlinkButton x:Name="hbContact"  Content="Contact Us" Width="120" Height="40"  Margin="10" FontSize="20"  Grid.Column="2" Grid.Row="0" Click="hbContact_Click" />
  24.                 <HyperlinkButton x:Name="hbAdmin"  Content="Admin" Width="70" Height="40"  Margin="10" FontSize="20"  Grid.Column="3" Grid.Row="0" Click="hbAdmin_Click" />
  25.            </Grid>
  26.         </StackPanel>
  27.         
  28.         <!--页面内容-->
  29.         <Canvas x:Name="containerCanvas"  Grid.Row="1" Grid.Column="0" Margin="20,10">
  30.             <uc:Welcome x:Name="welcome"></uc:Welcome>
  31.         </Canvas>
  32.     </Grid>
  33.         </ScrollViewer>
  34. </UserControl>