zoukankan      html  css  js  c++  java
  • wp8 入门到精通 仿QQPivot 提示数量

    <Grid x:Name="LayoutRoot" Background="White">
    <Grid Width="480" Height="320" VerticalAlignment="Top" Background="#FF2B579A">
    <Grid Name="bgrid" Width="480" Height="200" VerticalAlignment="Bottom" Background="White" RenderTransformOrigin="0.5,0.5" Visibility="Visible">
    <Grid.RenderTransform>
    <CompositeTransform/>
    </Grid.RenderTransform>
    </Grid>
    </Grid>
    <phone:Pivot x:Name="pivot" Foreground="Black" Margin="0"
    Style="{StaticResource DiaosbookPivotStyle}"
    SelectionChanged="Pivot_SelectionChanged">
    <phone:Pivot.Title>
    <TextBlock Text="自定义Pivot样式" FontSize="22"/>
    </phone:Pivot.Title>
    <phone:PivotItem >
    <phone:PivotItem.Header>
    <Grid Width="136">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="100*"/>
    <ColumnDefinition Width="36"/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <TextBlock Text="啊啊" FontSize="50" Grid.Column="0"/>
    <Rectangle RadiusX="3" RadiusY="3" Fill="White" Height="30" Width="36" Grid.Column="1" Grid.Row="0"
    VerticalAlignment="Top"/>
    <Rectangle RadiusX="3" RadiusY="3" Fill="Red" Height="28" Width="34" Grid.Column="1" Grid.Row="0"
    VerticalAlignment="Top" Margin="0,1"/>
    <TextBlock Text="999" FontSize="20" Height="30" Grid.Column="1" Grid.Row="0"
    HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0"/>
    </Grid>
    </phone:PivotItem.Header>
    <Grid>
    <Rectangle Fill="Red" Margin="0"/>
    </Grid>
    </phone:PivotItem>
    <phone:PivotItem>
    <phone:PivotItem.Header>
    <StackPanel Orientation="Horizontal" Width="100">
    <TextBlock Text="哈哈" FontSize="50"/>
    </StackPanel>
    </phone:PivotItem.Header>
    <Grid>
    <Rectangle Fill="Yellow"/>
    </Grid>
    </phone:PivotItem>
    <phone:PivotItem>
    <phone:PivotItem.Header>
    <StackPanel Orientation="Horizontal" Width="100">
    <TextBlock Text="嘻嘻" FontSize="50"/>
    </StackPanel>
    </phone:PivotItem.Header>
    <Grid>
    <Rectangle Fill="Gray"/>
    </Grid>
    </phone:PivotItem>
    <phone:PivotItem>
    <phone:PivotItem.Header>
    <StackPanel Orientation="Horizontal" Width="100">
    <TextBlock Text="呵呵" FontSize="50"/>
    </StackPanel>
    </phone:PivotItem.Header>
    <Grid>
    <Rectangle Fill="Green"/>
    </Grid>
    </phone:PivotItem>
    <phone:PivotItem>
    <phone:PivotItem.Header>
    <StackPanel Orientation="Horizontal" Width="100">
    <TextBlock Text="嘿嘿" FontSize="50"/>
    </StackPanel>
    </phone:PivotItem.Header>
    <Grid>
    <Rectangle Fill="Blue"/>
    </Grid>
    </phone:PivotItem>
    </phone:Pivot>
    </Grid>

  • 相关阅读:
    单选框和复选框(radiobox、checkbox)
    三种alertconfirmprompt弹窗的处理方法
    iframe的切换
    python的class(类)中的object是什么意思?
    loadrunner12自带的机票预订服务,解决httpd: Could not reliably determine the server's fully qualified domain name 问题
    使用错误的用户名和密码也能运行通过
    win10删除IE某些文件导致不可用恢复的方法
    win10系统删除需要Trustedlnstaller权限的文件
    loadrunner各版本对应的ie浏览器版本
    vue之vue-router加深印象
  • 原文地址:https://www.cnblogs.com/luquanmingren/p/3822159.html
Copyright © 2011-2022 走看看