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

  • 相关阅读:
    Remove Duplicates from Sorted Array
    Longest Valid Parentheses
    Valid Parentheses
    Java [Leetcode 112]Path Sum
    Java [Leetcode 119]Pascal's Triangle II
    Java [Leetcode 102]Binary Tree Level Order Traversal
    Java [Leetcode 172]Factorial Trailing Zeroes
    奇异值分解(转载)
    Java [Leetcode 118]Pascal's Triangle
    Java [Leetcode 66]Plus One
  • 原文地址:https://www.cnblogs.com/androllen/p/3822159.html
Copyright © 2020-2023  润新知