自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(63)
  • 收藏
  • 关注

转载 为telerik控件设置主题样式

<UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Telerik.Windows...

2015-11-23 10:38:00 672

转载 Windows Phone 7开发遇到的事:保存、读取图片

http://blog.csdn.net/leons77/article/details/8085662读取图片图片的来源一般有3个地方:网络、独立存储和程序包。从网络读取图片[csharp]view plaincopystringuri="http://avatar.csdn.net/2/C/D/3_leons77.jpg";...

2015-11-09 17:02:00 97

转载 设置hyperlinkbutton参数

<HyperlinkButton NavigateUri="{Binding Path=FilePath,Converter={StaticResource mUploadFileNavigateUriConverter}}" TargetName="_blank" ...

2015-10-26 19:38:00 159

转载 .NET C# Tostring() format 格式化字符串大全

http://www.cnblogs.com/1971ruru/archive/2012/12/12/2814853.html.NET C# Tostring() format 格式化字符串大全最近在做第三方支付,用到了ISO8583包,因为有些域需要特定的格式,所以把常用的都搬过来了,以备不时之需,知识是无限的,大脑也是无限的。C...

2015-10-26 18:53:00 231

转载 VS2013右边属性栏无法输入的解决办法

1、老办法:关掉VS,重开就能解决2、新方法:点击解决方案,重新生成,就能解决转载于:https://www.cnblogs.com/xlyg-14/p/4911795.html

2015-10-26 17:19:00 329

转载 发布系统的步骤

1、用VS将系统发布到文件夹中2、在IIS管理器中为文件夹添加网站3、将对应的系统文件夹右键选择转换为应用程序4、发布的网站目录不能有中文转载于:https://www.cnblogs.com/xlyg-14/p/4897953.html...

2015-10-21 15:26:00 216

转载 silverlight弹出新标签页的方式

private void AdminEntry_Click(object sender, RoutedEventArgs e) { HyperlinkButton button = sender as HyperlinkButton; System.Windows.Browser.HtmlPage....

2015-10-15 19:31:00 84

转载 重写控件

自定义ListBox类C# code?1234567891011121314151617181920212223242526272829303132 public class myListBox : System.Windows.Contro...

2015-10-15 08:41:00 146

转载 注册依赖属性,提示默认值类型不匹配属性的解决办法

public static readonly DependencyProperty RichTextBoxWidthProperty;RichTextBoxWidthProperty = DependencyProperty.Register("RichTextBoxWidth", typeof(double), typeof(TelerikEditor), new Prop...

2015-10-14 10:15:00 2196

转载 silverlight中使用NavigationContext.QueryString动态加载文章

private void InitDocument(string _columnname) { YDZSWebServiceSoapClient client = new YDZSWebServiceSoapClient(); client.GetServerSidePathByColumCompl...

2015-10-12 14:54:00 60

转载 网站文件夹命名规则

转载于:https://www.cnblogs.com/xlyg-14/p/4860048.html

2015-10-08 09:03:00 934

转载 webservice设置OperationTimeout

默认情况下,webservice的请求等待60s就会放弃。如果要设置timeout时间,可以在使用请求前加如下语句:proxy.InnerChannel.OperationTimeout = TimeSpan.FromSeconds(30);转载于:https://www.cnblogs.com/xlyg-14/p/4856546.html...

2015-10-05 23:32:00 570

转载 【Silverlight】Templates的用法

<Button Content="A Custom Button Template" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="174,120,0,0"> <Button.Template> <Contr...

2015-10-04 23:57:00 55

转载 【silverlight】应用Style

cmd.Style = (Style)this.Resources[ "AlternateBigButtonStyle"];后台设置style,来源于其他资源文件ResourceDictionary resourceDictionary = new ResourceDictionary();resourceDictionary.Source = new Uri("/Sty...

2015-10-04 16:00:00 164

转载 阴影效果DropShadowEffect

<TextBlock FontSize="20" Margin="3"> <TextBlock.Effect> <DropShadowEffect></DropShadowEffect> </TextBlock.Effect> <TextBlock.Text>Basic dropshadow&lt...

2015-10-02 22:32:00 398

转载 silverlight画图 虚线 反射效果 射线渐变效果Radial Gradient

<Polyline Stroke="Blue" StrokeThickness="14" StrokeDashArray="1 2" Points="10,30 60,0 90,40 120,10 350,10"></Polyline>DashArray="1 2"代表显示1段,隐藏2段<Grid x: Name="LayoutR...

2015-10-02 17:11:00 102

转载 navigate frame框架

string uriText = String.Format("/Product.xaml?productID={0}&type={1}", productID, productType);mainFrame.Navigate(new Uri(uriText), UriKind.Relative);  int productID, type;if (t...

2015-10-01 23:36:00 171

转载 silverlight使用webclient下载uri,并转化为stream

  private void Button_Click_1(object sender, RoutedEventArgs e) {// of the ASP.NET website.) string uri = Application.Current.Host.Source.AbsoluteUri; int...

2015-10-01 16:08:00 86

转载 如何给telerik的控件应用样式Theming

官方参考文档:http://docs.telerik.com/devtools/silverlight/styling-and-appearance/styling-apperance-themes-runtime转载于:https://www.cnblogs.com/xlyg-14/p/4848373.html

2015-09-30 10:05:00 255

转载 Silverlight 新闻列表、编辑、保存方式

文章控件主题为editor控件。文章管理方式为:数据库记录editor的存储记录,有标题名,作者,日期等。文章管理实质是管理数据库文章记录,更新2部分数据:1、数据库文章表。2、editor自身使用文件*.rich。文章的新增:1、新增数据库表记录。2、新增*.rich。文章前台列表用的是ListBOx来添加。转载于:https://www.cnblogs.com/x...

2015-09-21 15:49:00 80

转载 使用新建项目,引用底层库,运行时提示http://www.xinxizhan.cn/none-authorization.html。无授权解决方法...

在App.xaml中添加以下代码:<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class=...

2015-09-19 16:47:00 137

转载 treeviewhelper用法,找child的UIElement

List<InfoWindow> infowindows = treeviewhelper.GetChildObjects<InfoWindow>(gridMap, ""); public class TreeViewHelper { public T GetParentObject<T>(DependencyObject...

2015-09-15 11:35:00 175

转载 用#FFFF2222的string生成color

private Color ToColor(string colorName) { if (colorName.StartsWith("#")) colorName = colorName.Replace("#", string.Empty); int v = int.Parse(colorName...

2015-09-12 11:32:00 1724

转载 DataTemplate.LoadContent Method将resource中的datatemplate转换为UIElement,可以用于对象添加...

https://msdn.microsoft.com/zh-cn/library/windows/apps/windows.ui.xaml.datatemplate.loadcontent.aspx<StackPanel Name="rootStackPanel"> <StackPanel.Resources> <DataTempl...

2015-08-27 15:59:00 156

转载 Server.Mappath

Server.MapPath 方法Server.MapPath 方法将虚拟路径 (/default.cshtml) 转换为服务器能够理解的物理路径 (C:\Johnny\MyWebSited\Demo\default.cshtml)。当需要打开位于服务器上的数据文件时,您就会用到该方法(数据文件只能通过完整的物理路径来访问):var pathName = "~/dataFil...

2015-08-06 10:08:00 152

转载 回调函数

我们绕点远路来回答这个问题。编程分为两类:系统编程(system programming)和应用编程(application programming)。所谓系统编程,简单来说,就是编写库;而应用编程就是利用写好的各种库来编写具某种功用的程序,也就是应用。系统程序员会给自己写的库留下一些接口,即API(application programming interface,应用编程接口),以供...

2015-07-30 14:51:00 61

转载 用where进行条件查询

newDP.DisasterType = types.Where(t => t.Type == newDP.DisasterType).First().Code;转载于:https://www.cnblogs.com/xlyg-14/p/4642065.html

2015-07-13 09:14:00 413

转载 NPOI用法。

1、读入模板excelFileStream file = new FileStream(@"E:/数字县区/东源县/东源地灾地矿信息管理系统/其他文件/地灾导出excel模板test.xls", FileMode.Open, FileAccess.Read);hssfworkbook = new HSSFWorkbook(file);2、定义cellstyle。如果要实现自动...

2015-07-03 10:34:00 112

转载 [转].tostring设置格式。C# tostring 格式化输出

http://blog.csdn.net/hyynet09/article/details/4219488C 货币2.5.ToString("C")¥2.50D 十进制数25.ToString("D5")00025E 科学型25000.ToString("E")2.500000E+005F 固定点25.ToString("F2")25.00...

2015-05-28 17:09:00 118

转载 【转】灵活运用 SQL SERVER FOR XML PATH。用于方便处理生成视图

http://www.cnblogs.com/doubleliang/archive/2011/07/06/2098775.html转载于:https://www.cnblogs.com/xlyg-14/p/4520129.html

2015-05-21 16:40:00 193

转载 善用try catch来使不可避免的错误发生时,程序不崩溃,只是终止该进程。

sssss转载于:https://www.cnblogs.com/xlyg-14/p/4465884.html

2015-04-29 14:21:00 842

转载 silverlight 程序发布

1、将服务的数据库地址改为绝对地址。2、将服务发布到文件夹。3、将主程序的服务引用改为新服务地址。包括mainpage下的webconfig中的endpoint。4、将mysql数据库用户改为root@%5、发布主程序转载于:https://www.cnblogs.com/xlyg-14/p/4459001.html...

2015-04-27 08:58:00 160

转载 linq查distinct

List<string> types = (from a in allMineLicences select a.Ore_Main).Distinct().ToList();转载于:https://www.cnblogs.com/xlyg-...

2015-04-21 11:33:00 204

转载 silverlight 服务端与客户端分2个VS程序打开,同时调试

1、将服务端的”属性“ ”web“ “项目URL”修改为一个新的URL.2、运行服务端,将服务地址复制下来。3、到客户端服务引用处,修改该URL.4、客户端服务引用处的ServiceReferences.ClientConfig中的 <endpoint address="http://localhost:53321/dy_DisasterWebService.a...

2015-04-16 09:08:00 183

转载 将25转成00025的方法

int word=25; autoboxKeyword.Text=string.Format("{0:D6}",word);http://www.cnblogs.com/tangjian/archive/2009/03/28/1423897.html转载于:https://www.cnblogs.com/xlyg-14/p/4401521.ht...

2015-04-08 09:33:00 84

转载 【转】C#导出数据到EXCEL方法谈(附实例源码和超级无敌详细讲解)

http://blog.csdn.net/smallwhiteyt/article/details/4784771转载于:https://www.cnblogs.com/xlyg-14/p/4374366.html

2015-03-28 16:08:00 81

转载 LINQ处理List数据

Linq处理List数据2011-01-28 19:53:00|分类:默认分类|举报|字号订阅概述:LINQ又称为语言集成查询,是一种类似于SQL的一种查询语言。语言集成查询让开发人员可以使用.NET程序语言(如C#)去查询数据源,主要数据源为内存中的集合对象、ADO.NET数据集、数据库以及XML,开发人员不用去分门别类地学习众多的查...

2015-03-05 15:16:00 305

转载 ado.net parameter参数http://www.cnblogs.com/net515/archive/2012/06/14/2549872.html

http://www.cnblogs.com/net515/archive/2012/06/14/2549872.html转载于:https://www.cnblogs.com/xlyg-14/p/4303681.html

2015-02-27 16:48:00 153

转载 silverlight 使用floatablewindow

<f:FLoatableWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:f="clr-namespace:System.Windows.Controls;assembly=FloatableWindow"转载于:https://www.cnblogs.com/...

2015-02-27 10:00:00 105

转载 Image source 赋值问题

http://bbs.csdn.net/topics/390120529最后通过这种方式实现stringurl=carInfo.NetworkPath+carInfo.FileSource.First;//url:http://localhost/ITSImages/20120625/01/192168010176/卡口抓拍/皖J21742.jpg...

2015-02-05 10:25:00 247

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除