摘要: . 任意字符 除\n*表示0次或多次+表示1次或多次?表示0次或1次 / 表示非贪婪{n,m} 表示数量范围 n - m 个{n,} 表示数量范围 n - 多个{n} 表示数量范围 n 个^ 开始$ 结束?: 取消分组?<= 匹配预查(前匹配) 例:(?<=2000|98)windows 能匹配 windows前面是 2000 或 98 的字符?= 匹配预查(后匹配) 例:windows(?=2000|98) 能匹配 windows后面有 2000 或 98 的字符?! 前瞻(后面不跟着什么) 例: windows(?!2000|98) 能匹配windows后面没有2000或89的 阅读全文
posted @ 2013-01-30 16:49 欧西 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 定义方块的类:View Code public class Block : Canvas { private Uri _baseUri = new Uri("ms-appx:///"); /// <summary> /// 宝石的图片 /// </summary> public string ImageSource { set { BitmapImage bitmap = new BitmapImage(new Uri(_baseU... 阅读全文
posted @ 2012-11-22 22:25 欧西 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 定义图片放大的Xaml文件:View Code <UserControl x:Class="Win8_ScorllViewer.LodingImage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Win8_ScorllViewer" xmlns:d="http:// 阅读全文
posted @ 2012-11-17 16:24 欧西 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 除了对DataTemplateSelector和IValueConverter的基本用法外,还主要是说明了两者结合调用资源的用法。DataTemplateSelector:csView Code public class TaskListDataTemplateSelector : DataTemplateSelector { /// <summary> /// 数据模板1 /// </summary> public DataTemplate itemGridView1 { get; set; } /// <summa... 阅读全文
posted @ 2012-11-14 21:53 欧西 阅读(337) 评论(1) 推荐(0) 编辑
摘要: Toast:View Code IToastNotificationContent toastContent = null; IToastText01 templateContent = ToastContentFactory.CreateToastText01(); templateContent.TextBodyWrap.Text = "wow my Jusoc, Turn me up"; toastContent = templateContent; ToastNotification toast =... 阅读全文
posted @ 2012-11-13 21:03 欧西 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 应用场景一:Popup弹出一个页面页面SettingsFlyout.xaml:View Code <UserControl x:Class="Win8_Settings.SettingsFlyout" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Win8_Settings" x 阅读全文
posted @ 2012-11-12 19:46 欧西 阅读(252) 评论(0) 推荐(0) 编辑
摘要: XAML: <GridView x:Name="itemGridView" > <GridView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </GridView.ItemsPanel> <GridView.GroupStyle> ... 阅读全文
posted @ 2012-11-09 23:55 欧西 阅读(517) 评论(1) 推荐(0) 编辑
摘要: //向设置面板加入事件SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested; // 点击时触发,添加一项 void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) { //定义执行处理事件 UICommandInvokedHandler handle = new UICommand... 阅读全文
posted @ 2012-11-06 21:23 欧西 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 前言:这个是很久很久自己写的一个 Js 分页条,今天无意中看 自己写的JS类库中 ,发现这个文件,看了下,感觉这个可能以后还用的到他。所以,先保存起来再说,怕以后都找不到你了。简单的逻辑,简单的实现,不简单的应用。想想自己很久很久以前,想写个分页,到处网上找第三方控件,还要总是百度,谷歌查怎么用,现在想想,真是天真。后来,就想自己写个分页条,那时候是写ASPX页面,当时都不太了解ASP.NET运行原理等等的,当时还天真的用了VIEWSTATE来保存数据,更天真的是,我既然写个不同的页码条数不会写,而是写死,膜拜别人网站各种分页条,天啊!现在想想想死的心都有。我现在只能感慨一句,什么分页,都是浮 阅读全文
posted @ 2011-11-03 21:57 欧西 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 为什么每次标题都带个简单呢,看样子我一直走的是低端路线啊。高端的,留在自己的F盘,默默的一个人享受中。这公司也贼牛逼了,每天什么事也不让我做,还发工资给我。我要做事啊,跪求啊。算了,进入正题把,今天酱油时间写的是,TreeView,不过为什么每次都发js 的呢,其实很简单因为我只会js,望给位大虾米们原谅哈。Coding:Js:View Code //申明:传的的数据必须要有个根节点,且有一定的规范性。(function () { var Jusoc = Jusoc || {}; Jusoc = { _initial: function () { window.Jus... 阅读全文
posted @ 2011-11-03 15:32 欧西 阅读(499) 评论(0) 推荐(0) 编辑