太阳照大神

导航

02 2012 档案

通过Visual Studio 打开 Windows Phone 数据库
摘要:Windows Phone 支持数据库开发,但是数据库的生成、数据的增删改查等操作,都需要通过代码实现。如果我们想临时修改或查看数据,还需要写出对应的临时代码,很不方便。通过下面几步,可以无需代码,直接对Windows Phone的数据库进行增删改查操作。1.通过代码生成一个数据库,以及对应的数据表。如果不会做,参考 http://msdn.microsoft.com/zh-cn/library/hh202865(VS.92).aspx。2.通过工具(SDK自带的ISETool.exe 或 Windows Phone Power Tools)连接到模拟器,将独立存储中的 *.sdf 复制到本地 阅读全文

posted @ 2012-02-28 20:27 太阳照大神 阅读(248) 评论(0) 推荐(0)

Windows Phone 7 的数据库,Table 空引用的问题
摘要:在DataContext中,加入了一个 Table,代码如下: /// <summary> /// 数据访问上下文 /// </summary> public class SysDataContext : DataContext { public static string DBConnectionString = "Data Source=isostore:/Sys.sdf;Case Sensitive = true;"; public SysDataContext() : base(DBConnectionSt... 阅读全文

posted @ 2012-02-24 15:14 太阳照大神 阅读(220) 评论(0) 推荐(0)

Silverlight 中 ListBox.ItemTemplate 如何绑定 Tag
摘要:可以采用替代的解决方案 <ListBox x:Name="selectBookListBox" SelectionChanged="selectBookListBox_SelectionChanged"> <ListBox.ItemTemplate> <DataTemplate > <Grid> <Grid.ColumnDefinitions> ... 阅读全文

posted @ 2012-02-22 19:10 太阳照大神 阅读(720) 评论(0) 推荐(0)

Windows Phone ListBox 水平滚动的代码
摘要:<ListBox x:Name="imageListBox" ScrollViewer.HorizontalScrollBarVisibility="Visible"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"></StackPanel> </ItemsPanelTemplate> </ListBox.ItemsPanel> <Li 阅读全文

posted @ 2012-02-09 22:02 太阳照大神 阅读(421) 评论(0) 推荐(0)