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>

  • 相关阅读:
    (Vedctor经典)A
    C++ map用法
    (约瑟夫应用)5.4.1 Roman Roulette
    部分题集代码
    随机生成数
    如何在AutoCAD中实现鼠标双击事件
    浅谈JS之Error对象
    自定义微信小程序swiper轮播图面板指示点的样式
    物理像素与逻辑像素相关概念
    微信小程序中padding-right和margin-right无效
  • 原文地址:https://www.cnblogs.com/luquanmingren/p/3822159.html
Copyright © 2011-2022 走看看