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. 高级数组-ArrayList

    可以放入任意类型的数据 ArrayList alist=new ArrayList(); alist.Add(440;//装箱,讲int类型的值转换为引用类型 int i1=(int)alist[0] ...

  2. C语言拾遗(一)

    越来越体会到C语言的重要性,不管是在计算机底层的理解上,还是在算法数据结构上,所以遂决定重新拾起C语言,不定期更新一些知识点. 推荐博客:http://blog.csdn.net/itcastcpp ...

  3. 解决:Win 10安装软件时提示:文件系统错误 (-1073740940)

    1.win+R输入 gpedit.msc 2.左边计算机配置 windows设置——安全设置——本地策略——安全选项 3.在安全选项右边选择 用户账户控制:管理员批准模式中管理员的提升权限提示的行为, ...

  4. Bzoj2154 Crash的数字表格 乘法逆元+莫比乌斯反演(TLE)

    题意:求sigma{lcm(i,j)},1<=i<=n,1<=j<=m 不妨令n<=m 首先把lcm(i,j)转成i*j/gcd(i,j) 正解不会...总之最后化出来的 ...

  5. hibernate-cascade级联关系

    <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBL ...

  6. 如何将Emmet安装到到 Sublime text 3?

    看清楚哦~~这是Sublime text 3不是2的版本,两者的安装还是有区别的,下面的方法是我感觉比较简单的,其他的要命令什么的感觉太复杂了,经测试是OK的. ONE:建议到官方下载Sublime  ...

  7. vim编辑器的使用

    I 在光标所在行的行首插入 A 在光标所在行的行尾插入 { 移动到上一段 } 移动到下一段 空格向后移动一格 H 屏幕顶部 M 屏幕中间 L 屏幕下方 n| 使光标移动到第几个字符处 ngg 移动到制 ...

  8. [Unity3D] Normal map、Diffuse map 和 Speculer map

    Normal map : Normal map (法线贴图) 它的作用是模拟出高模上的一些细节纹理,特别是将高模上的圆滑和粗糙度投射到低模上,让低模也有高模的效果. 因为高模的面数非常多,导入引擎后电 ...

  9. js高级群的一些整理6月

    https://github.com/the5fire/backbonejs-learning-note/blob/master/chapters/01-hello-backbonejs.rst Ba ...

  10. poj1062 昂贵的聘礼

    Description 年轻的探险家来到了一个印第安部落里.在那里他和酋长的女儿相爱了,于是便向酋长去求亲.酋长要他用10000个金币作为聘礼才答应把女儿嫁给他.探险家拿不出这么多金币,便请求酋长降低 ...