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