PageControl.xaml 1.4 KB

12345678910111213141516171819
  1. <UserControl x:Class="AIRS.usercontrol.PageControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:AIRS.usercontrol"
  7. mc:Ignorable="d"
  8. d:DesignHeight="40" d:DesignWidth="140">
  9. <Grid x:Name="pagegird" Background="#FF18253C">
  10. <Canvas Width="140" Height="40">
  11. <Border x:Name="border1" Width="140" Height="40" Margin="0,0,0,0" BorderThickness="2,2,2,0" BorderBrush="#FF18253C"></Border>
  12. <Image x:Name="imghomepage" Source="..\\img/closed1.png" Canvas.Left="126" Canvas.Top="2" Width="12" Height="12" Visibility="Visible"></Image>
  13. <Image x:Name="imghomepagered" Source="..\\img/closedred.png" Canvas.Left="126" Canvas.Top="2" Width="12" Height="12" Visibility="Hidden"></Image>
  14. <!--两个控件重叠,只想执行最上面的控件事件,则需要将下面控件的IsHitTestVisible属性置False即可-->
  15. <Label x:Name="lblhomepage" Content="测试页" Width="140" Height="40" Foreground="#FFAAAAAA" FontSize="19"
  16. VerticalContentAlignment="Top" HorizontalContentAlignment="Center"></Label>
  17. </Canvas>
  18. </Grid>
  19. </UserControl>