上一页 1 ··· 3 4 5 6 7
摘要: Silverlight 4的打印功能是由PrintDocument类进行控制,不过我觉得太卡拉。实现打印功能需要按照以下步骤:   步骤1:建立PrintDocument对象;  步骤2:在PrintDocument对象中设置文档名;  步骤3:添加事件句柄到PrintPage事件中,同时也可以添加到StartPrint和EndPrint事件中;  步骤4:在PrintPage打印事件中,建立一个... 阅读全文
posted @ 2010-07-19 12:47 ForrestWoo 阅读(2288) 评论(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 阅读(4963) 评论(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 阅读(3724) 评论(0) 推荐(1) 编辑
摘要: 今天这一讲是用SilverLight作的自定义对话框(提示、警告、错误)效果如图一、定义俩个枚举类型BoxButton、MessageBoxType1.BoxButton.cs它的目的在于指示按钮的类型。/// <summary> /// 按钮类型 /// </summary> public enum BoxButton { /// <summary> /// ... 阅读全文
posted @ 2010-07-14 01:36 ForrestWoo 阅读(1867) 评论(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 阅读(2684) 评论(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 阅读(1350) 评论(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 阅读(3428) 评论(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 阅读(3471) 评论(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 阅读(6433) 评论(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 阅读(7193) 评论(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 阅读(7836) 评论(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 阅读(2022) 评论(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 阅读(4295) 评论(1) 推荐(0) 编辑
摘要: 在WinForm编程中我们经常需要进行俩个窗体间的传值。下面我给出了两种方法,来实现传值一、在输入数据的界面中定义一个属性,供接受数据的窗体使用1、子窗体using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Syst... 阅读全文
posted @ 2010-05-30 20:22 ForrestWoo 阅读(1820) 评论(5) 推荐(0) 编辑
摘要: IDictionary是键/值对的泛型集合的基接口,每个元素都是存在keyValuepair对象中的键值对。每一对都必须有唯一的键。实现在是否允许 key 为 空引用(在 Visual Basic 中为 Nothing) 方面有所不同。此值可以为 空引用(在 Visual Basic 中为 Nothing),并且不必是唯一的。IDictionary 接口允许对所包含的键和值进行枚举,但这并不意味着... 阅读全文
posted @ 2010-05-30 18:06 ForrestWoo 阅读(15935) 评论(1) 推荐(2) 编辑
上一页 1 ··· 3 4 5 6 7