07 2010 档案

摘要:如果我们需要在Bing Maps中加入一个小图钉标记,该如何实现了?  Bing Maps控件已经为我们提供了这个功能,在Microsoft.Maps.MapControl名称空间下提供了实现图钉应用的图钉层Pushpin类用该类来实现普通标识  在Xaml中添加<map:Pushpin Location="33.845881352,105.165628188471"/>这样就简单地实... 阅读全文
posted @ 2010-07-28 18:33 ForrestWoo 阅读(2001) 评论(0) 推荐(0) 编辑
摘要:本篇主要介绍如何对地图的一些基本控制操作,包括地图加载模式、根据精度和纬度定位、变焦程度等。加载模式上一节已经讲过关于地图的定位当然是通过经度、纬度来做    //纬度 double latitude = 0; //经度 double longitude = 0; double.TryParse(tbLatitude.Text, out latitude); double.TryParse(tbL... 阅读全文
posted @ 2010-07-28 17:04 ForrestWoo 阅读(1665) 评论(0) 推荐(1) 编辑
摘要:本文中我们将学习Silverlight4+BingMap的应用一、开发环境:1、Visual Studio 20102、Bing Maps Silverlight Control SDK注:你需要安装“Bing Maps Silverlight Control SDK”。下载地址:http://www.microsoft.com/downloads/details.aspx... 阅读全文
posted @ 2010-07-28 15:47 ForrestWoo 阅读(2639) 评论(3) 推荐(1) 编辑
摘要:这是一个水的效果,我感觉挺不错的。来自于:http://www.shinedraw.com/这个网站还提供了许多关于Flash和Silverlight的对比效果,有兴趣的人可以参考。 阅读全文
posted @ 2010-07-28 11:30 ForrestWoo 阅读(1086) 评论(0) 推荐(0) 编辑
摘要:我们可以在Silverlight可以自己定义我们需要的控件。这一节是自定义的Gauge控件(仪表)。呵呵翻译的不是很好。下面是演示效果:一.自定义控件步骤:步骤1:CircularGaugeControl用于定义控件的属性using System;using System.Net;using System.Windows;using System.Windows.Controls;using Sy... 阅读全文
posted @ 2010-07-23 22:13 ForrestWoo 阅读(10305) 评论(5) 推荐(1) 编辑
摘要:关于Sliverlight导出Excel(浏览器外运行)比较复杂  下面是效果一、导出Excel步骤1.新建Silverlight应用程序ExcelDemo2.添加引用:添加对Microsoft.CSharp程序集的 引用3.项目属性设置在“属性”面板中,勾选“允许在浏览器外运行应用程序”点击“浏览器外设置”设置应用程序显示名... 阅读全文
posted @ 2010-07-22 17:37 ForrestWoo 阅读(3162) 评论(0) 推荐(0) 编辑
摘要:这一讲是关于Silverlight的自定义控件的加载图标学习,我做了一个自定义加载。效果图下一。首先介绍一下关于Silverlight的自定义控件的步骤以加载图标为例:步骤1.创建一个DependencyPropertyCloner的静态类用于克隆在界面输入的值,来改变效果。代码如下:using System;using System.Reflection;using System.Windows... 阅读全文
posted @ 2010-07-22 11:45 ForrestWoo 阅读(1911) 评论(0) 推荐(1) 编辑
摘要:本文来自http://www.codepub.com/software/Silverlight-17389.html,转载请标明出处效果挺炫的应用了一些动画,下面是界面源代码下载地址:http://www.silverlighter.net/file.axd?file=2010%2f5%2fSLOLTechCon.rar 阅读全文
posted @ 2010-07-20 05:11 ForrestWoo 阅读(2040) 评论(0) 推荐(0) 编辑
摘要:Silverlight 4的打印功能是由PrintDocument类进行控制,不过我觉得太卡拉。实现打印功能需要按照以下步骤:   步骤1:建立PrintDocument对象;  步骤2:在PrintDocument对象中设置文档名;  步骤3:添加事件句柄到PrintPage事件中,同时也可以添加到StartPrint和EndPrint事件中;  步骤4:在PrintPage打印事件中,建立一个... 阅读全文
posted @ 2010-07-19 12:47 ForrestWoo 阅读(2293) 评论(0) 推荐(0) 编辑
摘要:这一节是如何动态加载图片和显示提示(ToolTip)下面是效果1.LayoutControlDemo.xaml<UserControl xmlns:my1="clr-namespace:DevExpress.Xpf.LayoutControl;assembly=DevExpress.Xpf.LayoutControl.v10.1" xmlns:toolkit="clr-namespace:... 阅读全文
posted @ 2010-07-17 16:11 ForrestWoo 阅读(4969) 评论(1) 推荐(0) 编辑
摘要:这一节是如何动态创建tabControl的Item    效果如图1.TabControlDemo.xaml是主界面<UserControl xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="Silverlight.Common.View.TabControl... 阅读全文
posted @ 2010-07-14 14:07 ForrestWoo 阅读(3729) 评论(0) 推荐(1) 编辑
摘要:今天这一讲是用SilverLight作的自定义对话框(提示、警告、错误)效果如图一、定义俩个枚举类型BoxButton、MessageBoxType1.BoxButton.cs它的目的在于指示按钮的类型。/// <summary> /// 按钮类型 /// </summary> public enum BoxButton { /// <summary> /// ... 阅读全文
posted @ 2010-07-14 01:36 ForrestWoo 阅读(1874) 评论(1) 推荐(1) 编辑
摘要:ListBox是SilverLight列表控件1.ListBoxDemo.xaml<UserControl x:Class="Silverlight.Common.View.ListBoxDemo" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microso... 阅读全文
posted @ 2010-07-13 17:48 ForrestWoo 阅读(2689) 评论(4) 推荐(1) 编辑
摘要:ContextMenu是Sliverlight中的右键菜单控件<Controls:ContextMenuService.ContextMenu> <Controls:ContextMenu> <Controls:MenuItem Header="查询" x:Name="cmiQuery" Click="cmiQuery_Click"> <Controls... 阅读全文
posted @ 2010-07-12 23:00 ForrestWoo 阅读(1354) 评论(0) 推荐(0) 编辑
摘要:这一节学习DataPager,DataForm控件效果如图、DataPagerDataForm1.DataPagerDemo.xaml<UserControl x:Class="Silverlight.Common.View.DataPagerDemo" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xm... 阅读全文
posted @ 2010-07-12 18:07 ForrestWoo 阅读(3435) 评论(3) 推荐(1) 编辑
摘要:这一节是DataGrid,绑定数据源效果如下图:1.DataGridDemo.xaml<UserControl xmlns:datagrid="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" x:Class="Silverlight.Common.View.DataGridDemo" x... 阅读全文
posted @ 2010-07-12 16:31 ForrestWoo 阅读(3481) 评论(1) 推荐(0) 编辑
摘要:这一节是TreeView控件的学习下面是个例子1.TreeViewSample.xaml<UserControl xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="Silverlight.Common.View.TreeViewSample" xmlns="h... 阅读全文
posted @ 2010-07-12 12:33 ForrestWoo 阅读(6440) 评论(2) 推荐(1) 编辑
摘要:DatePicker、Calendar是SilverLight提供的日期控件。下面是一个例子1.CalendarSample.xaml<UserControl xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="Silverlight.Common.View.C... 阅读全文
posted @ 2010-07-12 01:54 ForrestWoo 阅读(7204) 评论(2) 推荐(0) 编辑
摘要:BusyIndicator是SilverLight中的进度条控件。下面是一个例子1.BusyIndicatorSample.xaml<UserControl x:Class="Silverlight.Common.View.BusyIndicatorSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation... 阅读全文
posted @ 2010-07-12 00:28 ForrestWoo 阅读(7846) 评论(0) 推荐(0) 编辑
摘要:AutoCompleteBox是SliverLight中的自动提示框控件,其中有一个ItemsSource属性,用于绑定数据源下面是一个例子1.AccordionSample.xaml<UserControl xmlns:input="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input" x... 阅读全文
posted @ 2010-07-11 21:10 ForrestWoo 阅读(2027) 评论(4) 推荐(0) 编辑
摘要:accordion是SilverLight布局控件中的手风琴样式。界面下面在例子中学习1.AccordionSample.xaml<UserControl x:Class="Silverlight.Common.AccordionSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x... 阅读全文
posted @ 2010-07-11 19:47 ForrestWoo 阅读(4306) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示