会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我期待着一个华丽丽的转身
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
下一页
2011年3月16日
图形变换相关的类
摘要: 可以在 Silverlight 中使用二维 (2-D) Transform 类来旋转、按比例缩放、扭曲和移动(平移)对象。Transform 定义如何将一个坐标空间中的点映射或变换到另一个坐标空间。
阅读全文
posted @ 2011-03-16 11:23 南宫元耘
阅读(211)
评论(0)
推荐(0)
2011年3月15日
使用渐变绘制区域
摘要: 渐变画笔使用沿一条轴彼此混合的多种颜色绘制区域。可以使用它们来形成光和影的效果,使 UI 元素具有三维外观。还可以使用它们来模拟玻璃、镶边、水和其他光滑表面。Silverlight 提供两种类型的渐变画笔:LinearGradientBrush 和 RadialGradientBrush。
阅读全文
posted @ 2011-03-15 21:52 南宫元耘
阅读(370)
评论(0)
推荐(0)
形状和绘图
摘要: Shape 对象,包括 Ellipse、Line、Path、Polygon、Polyline 和 Rectangle
阅读全文
posted @ 2011-03-15 17:28 南宫元耘
阅读(180)
评论(0)
推荐(0)
拖放 UI 布局中的对象
摘要: 出于安全考虑,不能在应用程序之间拖放对象
阅读全文
posted @ 2011-03-15 15:18 南宫元耘
阅读(163)
评论(0)
推荐(0)
使用 TreeView 显示分层数据
摘要: TreeView 和 TreeViewItem 控件可与 HierarchicalDataTemplate 对象一起使用以轻松显示分层数据......
阅读全文
posted @ 2011-03-15 14:48 南宫元耘
阅读(376)
评论(0)
推荐(0)
更改 AutoCompleteBox 控件的外观和行为
摘要: AutoCompleteBox 控件的外观和行为具有很高的可自定义性。
阅读全文
posted @ 2011-03-15 14:35 南宫元耘
阅读(481)
评论(0)
推荐(0)
2011年3月14日
在 ListBox 中显示数据
摘要: 使用 XAML 元素填充 ListBox<ListBox Width="150" Margin="0,5,0,10"> <TextBlock Text="TextBlock" /> <TextBox Text="TextBox" /> <Button Content="Button" /> <Rectangle Fill="LightBlue" Height="20" Width="100&q
阅读全文
posted @ 2011-03-14 23:20 南宫元耘
阅读(1491)
评论(0)
推荐(0)
DataGrid 控件中的数据进行分组、排序和筛选
摘要: 通过对数据进行分组、排序和筛选,以不同方式查看 DataGrid 中的数据常常很有用。若要对 DataGrid 中的数据进行分组、排序和筛选,您要将其绑定到支持这些功能的集合视图。然后,您可以在集合视图中操作这些数据,而不会影响基础数据。该集合视图中的更改将反映在 DataGrid 用户界面 (UI) 中。PagedCollectionView 类为实现 IEnumerable 接口的数据源提供分组、排序和分页功能。将 DataGrid 绑定到 PagedCollectionView创建实现 IEnumerable 接口的数据集合。说明:该集合中的对象必须实现 INotifyPropertyC
阅读全文
posted @ 2011-03-14 21:02 南宫元耘
阅读(2899)
评论(0)
推荐(0)
自定义 DataGrid 控件中自动生成的列
摘要: 1. 修改生成的列 在 AutoGeneratingColumn 事件处理程序中,通过引用 DataGridAutoGeneratingColumnEventArgs..::..Column 属性来访问 DataGridColumn 属性。// Modify the header of the Name column.if (e.Column.Header.ToString() == "Name") e.Column.Header = "Task";2. 替换生成的列a. 在 AutoGeneratingColumn 事件处理程序中,创建一个新的 Dat
阅读全文
posted @ 2011-03-14 20:20 南宫元耘
阅读(359)
评论(0)
推荐(0)
DataGrid 控件中显示和配置行详细信息
摘要: 1. 创建定义行详细信息部分的外观的一个 DataTemplate。2. 将 DataTemplate 放入 <DataGrid.RowDetailsTemplate> 标记。<sdk:DataGrid x:Name="dataGrid1" Height="400" IsReadOnly="True" > <sdk:DataGrid.RowDetailsTemplate> <!-- Begin row details section. --> <DataTemplate> &
阅读全文
posted @ 2011-03-14 19:23 南宫元耘
阅读(350)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
下一页
公告