摘要:c#写表结构的时候,在主键id的column()中一定要加入AutoSync = AutoSync.OnInsert, DbType = "INT NOT NULL Identity", CanBeNull = false, IsDbGenerated = true, IsPrimaryKey = true [Column] public double latitude { get { return _latitude; } set { if (_latitude != value) { NotifyPropertyChanging("latitude"
阅读全文
11 2012 档案
摘要:1.研发有关listbox滚动最底的项目功能的时候,需要判断listbox垂直偏移和listbox自身高度做比较,注意如果有listbx中有textblock,切设置了Textwrap为wrap的时候,listbox垂直偏移和listbox自身高度做比较就会出现问题,因为它只是按照textblock为一行来计算的高度和偏移,此时设置Textwrap依旧为nowrap,然后在长的textblock后面加省略号作为解决方案吧
阅读全文
摘要:Supported Place TypesThe following table lists supported types for Place searches and Place adds. Additional types listed in table #2 can be used when searching for a Place, but not when adding a Place.accountingairportamusement_parkaquariumart_galleryatmbakerybankbarbeauty_salonbicycle_storebook_st
阅读全文
摘要:使用panaroma控件, <controls:PanoramaItem Foreground="{StaticResource MainTitle}" Header="我的帐号"> <Grid Height="650" Margin="12,0,0,0" VerticalAlignment="Top"> <Grid x:Name="userHomeLogined" Visibility="Collapsed"> <
阅读全文
摘要:中文转Unicode:HttpUtility.UrlEncodeUnicode(string str);转换后中文格式:"%uxxxx" 举例:"柳_abc123" 转换结果是:"%u67f3_abc123"Unicode转中文1:HttpUtility.UrlDecode(string str);str格式:"%uxxxx" ,举例:"%u67f3_abc123"Unicode转中文2:Regex.Unescape(string str);str格式:"sdfasdf\uxxxx&q
阅读全文