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...
阅读全文
摘要:定义图片放大的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://
阅读全文
摘要:除了对DataTemplateSelector和IValueConverter的基本用法外,还主要是说明了两者结合调用资源的用法。DataTemplateSelector:csView Code public class TaskListDataTemplateSelector : DataTemplateSelector { /// <summary> /// 数据模板1 /// </summary> public DataTemplate itemGridView1 { get; set; } /// <summa...
阅读全文
摘要:Toast:View Code IToastNotificationContent toastContent = null; IToastText01 templateContent = ToastContentFactory.CreateToastText01(); templateContent.TextBodyWrap.Text = "wow my Jusoc, Turn me up"; toastContent = templateContent; ToastNotification toast =...
阅读全文
摘要:应用场景一: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
阅读全文
摘要:XAML: <GridView x:Name="itemGridView" > <GridView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </GridView.ItemsPanel> <GridView.GroupStyle> ...
阅读全文
摘要://向设置面板加入事件SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested; // 点击时触发,添加一项 void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) { //定义执行处理事件 UICommandInvokedHandler handle = new UICommand...
阅读全文
浙公网安备 33010602011771号