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. 用gulp打包带参数资源做法与asp.net/java项目结合的自动构建方案探讨

    先探讨方案,后续再实现. gulp打包前端教程配置:http://www.cnblogs.com/EasonJim/p/6209951.html 可能存在以下场景: 1.整个服务端采用接口的形式暴露给 ...

  2. git push如何至两个git仓库

    分别有仓库 A(github),B(JAE 的 git),本机为C. 假设以 a 仓库作为最终的使用仓库, b为发布仓库.分支都为 dev 第一步,增加远程仓库 git remote add orig ...

  3. Java开发面试

    有很多文章说面试相关的问题,有国内也有国外的,但是我相信不少人,特   别是新人看完后还是觉得比较虚比较泛,似乎好像懂了,但是一遇到面试还   是有些手无足措或者重复犯一些错误.本篇文章正是结合实际经 ...

  4. Java学习笔记11

    package welcome; import java.util.Scanner; /* * 代数问题:求解2x2线性方程 */ public class ComputeLinearEquation ...

  5. Spring中配置和读取多个Properties文件--转

    public class PropertiesFactoryBeanextends PropertiesLoaderSupportimplements FactoryBean, Initializin ...

  6. android学习链接

    Android studio/Gradle学习资源:http://www.cnblogs.com/licheetec/p/4475426.html

  7. 代码质量管理工具 sonar 配置

    代码检查工具有很多findBugs等等 sonar配置: 1.下载sonar 5.5, 解压,运行 sonarqube-5.5\bin\windows-x86-64\StartSonar.bat , ...

  8. /etc/rc.d/rc与/etc/rc.d/init.d的关系

    在这里先解释一下 /etc/rc.d/init.d 里面放的都是什么东西.这个目录存放的是一些脚本,一般是Linux以rpm包安装时设定的一些服务的启动/关闭脚本.系统在安装时装了好多rpm包,这里面 ...

  9. Shell入门教程:Shell函数详解

    Shell函数类似于Shell脚本,里面存放了一系列的指令,不过Shell的函数存在于内存,而不是硬盘文件,所以速度很快,另外,Shell还能对函数进行预处理,所以函数的启动比脚本更快. 1.函数定义 ...

  10. mpp文件转换成jpg图片,可以用pdf文件做中转站

    用project软件做了一个表,发现不能转换成图片,先把mpp文件转换成pdf文件,然后用PS打开pdf文件,存储为jpg格式就行了