• 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>

  • 相关阅读:
    php源码学习——开篇
    springMvc入门一
    spring 整合 servlet
    java jar包下载地址
    java spring学习
    Servlet 学习
    JRE_HOME environment variable is not defined correctly This environment variableis needed to run this program
    java JBDC操作
    Java 自定义异常
    JAVA的日期类DATE
  • 原文地址:https://www.cnblogs.com/androllen/p/3822159.html
Copyright © 2020-2023  润新知