11 2012 档案

摘要:定义方块的类: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 欧西 阅读(266) 评论(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 欧西 阅读(314) 评论(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 欧西 阅读(349) 评论(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 欧西 阅读(216) 评论(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 欧西 阅读(263) 评论(0) 推荐(0)
摘要:XAML: <GridView x:Name="itemGridView" > <GridView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </GridView.ItemsPanel> <GridView.GroupStyle> ... 阅读全文
posted @ 2012-11-09 23:55 欧西 阅读(538) 评论(1) 推荐(0)
摘要://向设置面板加入事件SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested; // 点击时触发,添加一项 void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) { //定义执行处理事件 UICommandInvokedHandler handle = new UICommand... 阅读全文
posted @ 2012-11-06 21:23 欧西 阅读(265) 评论(0) 推荐(0)