大可山博客[十年一日, GDI+,WPF, .Net图形图像]

WPF,WinForms,asp.net开发,图形图像处理系统研究 (Johnson Blog) [信奉:凡事靠自己] MSN:a3news(at)hotmail.com http://www.brawdraw.com

用户操作
[即时聊天] [发私信] [加为好友]
大可山(Johnson)ID:johnsuna
423532次访问,排名113好友60人,关注者102
深圳报业集团问工网,技术总监
johnsuna的文章
原创 258 篇
翻译 1 篇
转载 44 篇
评论 465 篇
大可山(Johnson)的公告

MSN:a3news(at)hotmail.com,从2007年8月8日起笔名改为:大可山(以前叫阿山Net)
Q:329325120
[这段时间忙,尽量少问我问题。见谅!]
引用本人原作,请注明出处。
最近评论
somboy:额滴神啊~~~给我一份吧。。
示例和下载都不能用了。
ayhncn#163.com
谢谢哦~~~
somboy:额滴神啊~~~给我一份吧。。
示例和下载都不能用了。
ayhncn#163.com
谢谢哦~~~
devas:呵呵,向博主请教一下,在grid中定义了 <Grid.RowDefinitions>
<Grid.ColumnDefinitions>
后, 内部的 Border 就没有效果了.
请问要如何在显式定义 row和column 的情况下,改变grid的形状呢?
mkyj3d:老大,GMAIL可以用JMAIL组件来发送邮件吗?
lsbbox:请问Open/Close这类需要自己实现的Command和直接给菜单添加一个Click事件处理函数有什么区别呢?貌似后者写起来还简单很多
文章分类
收藏
相册
Chinaphotoshop.Net
报业大厦外摄
程序截图
美丽的深圳
世界之窗
软件开发
你的灯亮着吗?(RSS)
图书出版
大溪水的博客(RSS)
图形图像
C#新型报表工具 XDesigner(RSS)
存档
软件项目交易
订阅我的博客
XML聚合  FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
订阅到BlogLines
订阅到Yahoo
订阅到GouGou
订阅到飞鸽
订阅到Rojo
订阅到newsgator
订阅到netvibes

原创 WPF中取得预定义颜色收藏

新一篇: 港艺人艳照事件彰显图片等数码资料加密的重要性 | 旧一篇: The Windows SDK team is proud to announce that the RTM release of the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5 is now live for customers to install!

使用XAML代码取得.net预定义颜色:
<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:r="clr-namespace:System.Reflection;assembly=mscorlib"
    >
  <Page.Resources>
    <ObjectDataProvider x:Key="ColorsProps" ObjectInstance="{x:Type Colors}" MethodName="GetProperties">
      <ObjectDataProvider.MethodParameters>
        <r:BindingFlags>Public, Static</r:BindingFlags>
      </ObjectDataProvider.MethodParameters>
    </ObjectDataProvider>
  
    <DataTemplate x:Key="colorTemplate" DataType="{x:Type r:PropertyInfo}">
      <Grid>
        <Grid.ColumnDefinitions>
          <ColumnDefinition />
          <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Rectangle Fill="{Binding Name}"  Grid.Column="0"
                   Width="100"  Height="24" Margin="2"
                   HorizontalAlignment="Center"/>
        <TextBlock Margin="6,3,3,3"  Text="{Binding Name}"
                   Grid.Column="1" HorizontalAlignment="Center"
                   FontSize="16"/>
      </Grid>
    </DataTemplate>
  </Page.Resources>
  <StackPanel>
    <ComboBox  ItemsSource="{Binding Source={StaticResource ColorsProps}}"
               ItemTemplate="{StaticResource colorTemplate}"
               SelectedValuePath="Color"/>
  </StackPanel>
</Page>
 
http://shevaspace.spaces.live.com/blog/cns!FD9A0F1F8DD06954!435.entry

发表于 @ 2008年02月16日 22:23:00|评论(loading...)|编辑

新一篇: 港艺人艳照事件彰显图片等数码资料加密的重要性 | 旧一篇: The Windows SDK team is proud to announce that the RTM release of the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5 is now live for customers to install!

评论:没有评论。

发表评论  


当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
Csdn Blog version 3.1a
Copyright © 大可山(Johnson)