摘要: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 复制到本地
阅读全文
摘要:在DataContext中,加入了一个 Table,代码如下: /// <summary> /// 数据访问上下文 /// </summary> public class SysDataContext : DataContext { public static string DBConnectionString = "Data Source=isostore:/Sys.sdf;Case Sensitive = true;"; public SysDataContext() : base(DBConnectionSt...
阅读全文
摘要:可以采用替代的解决方案 <ListBox x:Name="selectBookListBox" SelectionChanged="selectBookListBox_SelectionChanged"> <ListBox.ItemTemplate> <DataTemplate > <Grid> <Grid.ColumnDefinitions> ...
阅读全文
摘要:<ListBox x:Name="imageListBox" ScrollViewer.HorizontalScrollBarVisibility="Visible"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"></StackPanel> </ItemsPanelTemplate> </ListBox.ItemsPanel> <Li
阅读全文