static bool isbool = false;
private void BindGameDelete()
{
Tile tile = new Tile(); List<Color> list = new List<Color>();
list.Add(Colors.Blue);
list.Add(Colors.Brown);
if (isbool)
{
tile.Background = new SolidColorBrush(list[]);
isbool = false;
}
else
{
tile.Background = new SolidColorBrush(list[]);
isbool = true;
} tile.Width = ;
tile.Height = ; ContextMenu cm = new ContextMenu();
cm.IsZoomEnabled = false;
RoutedEventHandler clickHandler = new RoutedEventHandler(GameDelete_Click); // Add "edit" entry
MenuItem menuItem = new MenuItem()
{
Header = "取消关注",
Tag = "Delete"
}; menuItem.Click += clickHandler;
cm.Items.Add(menuItem); ContextMenuService.SetContextMenu(tile, cm); addTile.Children.Add(tile);
}
private void GameDelete_Click(object sender, RoutedEventArgs e)
{
var gameToDelte = ((MenuItem)sender).CommandParameter;
}
private void Tile_Hold(object sender, System.Windows.Input.GestureEventArgs e)
{
BindGameDelete(); }
           <StackPanel x:Name="addTile" Grid.Row="" Orientation="Vertical">
<c4f:Tile Background="Red" Content="" Width="" Height="" Hold="Tile_Hold"/>
<!--<c4f:Tile Background="Gray" Content="" Width="" Height=""/>
<c4f:Tile Background="Green" Content="" Width="" Height=""/>
<c4f:Tile Background="Yellow" Content="" Width="" Height=""/>
<c4f:Tile Background="Violet" Content="" Width="" Height=""/>
<c4f:Tile Background="Tomato" Content="" Width="" Height=""/>
<c4f:Tile Background="YellowGreen" Content="" Width="" Height=""/>
<c4f:Tile Background="Thistle" Content="" Width="" Height=""/>
<c4f:Tile Background="Turquoise" Content="" Width="" Height=""/>
<c4f:Tile Background="Tomato" Content="" Width="" Height=""/>
<c4f:Tile Background="Teal" Content="" Width="" Height=""/>
<c4f:Tile Background="Tan" Content="" Width="" Height=""/>
<c4f:Tile Background="SteelBlue" Content="" Width="" Height=""/>-->
</StackPanel>

wp8 入门到精通 仿美拍评论黑白列表思路的更多相关文章

  1. wp8 入门到精通 仿QQPivot 提示数量

    <Grid x:Name="LayoutRoot" Background="White"> <Grid Width="480&quo ...

  2. wp8 入门到精通 高仿微信发信息 键盘不消失

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> < ...

  3. wp8 入门到精通 虚拟标示符 设备ID

    //获得设备虚拟标示符 wp8 public string GetWindowsLiveAnonymousID() { object anid = new object(); string anony ...

  4. wp8 入门到精通 抓包

    抓包工具Fiddler的使用 Fiddler是一款免费且功能强大的数据包抓取软件.它通过代理的方式获取程序http通讯的数据.我们可以利用它来检测网页和服务器的交互情况.下面,我们以http://bl ...

  5. wp8 入门到精通 LINQ to SQL

    http://msdn.microsoft.com/zh-cn/library/bb397924.aspx LINQ 查询操作中的类型关系 (C#) 使用一个人类发明快速检索的方法 // Northw ...

  6. wp8 入门到精通 生命周期

  7. wp8 入门到精通 定时更新瓷贴

    public class ScheduledAgent : ScheduledTaskAgent { static ScheduledAgent() { Deployment.Current.Disp ...

  8. wp8 入门到精通 ImageCompress 图片压缩

    //实例化选择器 PhotoChooserTask photoChooserTask = new PhotoChooserTask(); BitmapImage bimg; int newPixelW ...

  9. wp8 入门到精通 Gallery

    <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.Resources> ...

随机推荐

  1. 【USACO 2.4 】Bessie Come Home

    题意:给出n条有权的双向边(10000),求到达Z最近的大写字母,及其距离. 题解:即求Z出发的最短路,用dijstra就可以了,注意边要开到20000以上. /* TASK: comehome LA ...

  2. the pipeline of call SNP

    ######################################## ############### Mapping ################ ################## ...

  3. 【BZOJ-1419】Red is good 概率期望DP

    1419: Red is good Time Limit: 10 Sec  Memory Limit: 64 MBSubmit: 660  Solved: 257[Submit][Status][Di ...

  4. ionic 白屏

    昨天在发布新app的时候发现app在高版本的android的时候发现没有问题,在低版本的android 的时候发现存在白屏的情况,在run中alert,不能弹框,run不能运行, 参考这篇文章  ht ...

  5. ssh保持链接

    修改/etc/ssh/sshd_config配置文件 ClientAliveInterval 300(默认为0), 参数的是意思是每5分钟,服务器向客户端发一个消息,用于保持连接,使用service ...

  6. 几款开源ESB总线的比较

    现有的开源ESB总线中,自从2003年第一个开源总线Mule出现后,现在已经是百花争鸣的景象了.现在我就对现有的各种开源ESB总线依据性能.可扩展性.资料文档完整程度以及整合难易程度等方面展开. CX ...

  7. 转载:postgresql分区与优化

    --对于分区表constraint_exclusion 这个参数需要配置为partition或on postgres=# show constraint_exclusion ; constraint_ ...

  8. glusterFS系统中文管理手册(转载)

    GlusterFS系统中文管理手册       1文档说明 该文档主要内容出自 www.gluster.org 官方提供的英文系统管理手册<Gluster File System 3.3.0 A ...

  9. 解决在ScrollView中套用ListView显示不正常

    最近在设计Android程序时,因为需要在ScrollView中添加一个ListView列表来显示一些信息.刚开始并没有想太多,但添加进去后才发现ListView不论怎样定义都只能显示一行,显示效果很 ...

  10. PCA本质和SVD

    一.一些概念 线性相关:其中一个向量可以由其他向量线性表出. 线性无关:其中一个向量不可以由其他向量线性表出,或者另一种说法是找不到一个X不等于0,能够使得AX=0.如果对于一个矩阵A来说它的列是线性 ...