[WPF]学习笔记二---主窗体

昨晚上简单的化了下界面。现在还比较简陋。

单击事件的参用的有问题,

使用了页面引用。

XAML

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="HpuShoots.UserUI"
        Title="摄影活动管理" Height="480" Width="640" Icon="shoots.ico">
    <Grid>
        <Grid x:Name="title" Margin="0,0,0,390">
            <Label Name="biaoti" Content="标题"></Label>    
        </Grid>
        <Grid x:Name="menu" Margin="0,60,512,0" >
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Button Content="活动管理" Name="shoot" Grid.Row="0" Background="White" Click="Button_Click"></Button>
            <Button Content="部门成员" Name="memner" Grid.Row="1" Background="White" Click="Button_Click"></Button>
            <Button Content="资料下载" Name="download" Grid.Row="2" Background="White" Click="Button_Click"></Button>
            <Button Content="个人中心" Name="user" Grid.Row="3" Background="White" Click="Button_Click"></Button>
            <Button Content="关于" Name="about" Grid.Row="4" Background="White" Click="Button_Click"></Button>
        </Grid>
        <Grid x:Name="page" Margin="120,60,0,0" >
            <!--<Label Content="内容页"></Label>-->
           
                
                <Frame Name="property" Source="Page\ShootPage.xaml" NavigationUIVisibility="Hidden" >  </Frame>
               
           
        </Grid>
    </Grid>
</Window>
View Code

效果图

 

posted on 2015-11-05 07:29  恋不恋  阅读(291)  评论(0)    收藏  举报

导航