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>

  • 相关阅读:
    pyinstaller 打包后无法运行
    Android Uiautomator2 gradlew 坑
    JNDI 在 J2EE 中的角色
    23种设计模式
    Struts2工作原理
    SpringMVC工作原理
    堆内存设置
    安装和使用 memcached
    SQL面试题及答案
    30多条mysql数据库优化方法,千万级数据库记录查询轻松解决
  • 原文地址:https://www.cnblogs.com/androllen/p/3822159.html
Copyright © 2011-2022 走看看