文件名称:WPFSimpleChromeWindow

  • 所属分类:
  • 界面编程
  • 资源属性:
  • [Windows] [Visual.Net] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 77kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • J***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

在WPF中模拟ChildWindow效果

原理很简单,关键点就是如何定义ChildWindow样式和使用DataTemplate动态显示控件,注意这里Content并没有显式定义ItemTemplate,它会默认应用资源里的DataTemplate定义,通过绑定到DialogViewModel,DataTemplate会根据DialogViewModel的DataType类型选择显示不同的子窗体,同时子窗体的DataContext会自动关联到该DialogViewModel类型的实体-In WPF, the principle is very simple simulation of the effect ChildWindow, ChildWindow key point is how to define the dynamic styles and use a DataTemplate to display control, attention here is not explicitly defined Content ItemTemplate, it will default application resources in the DataTemplate to define, by binding to DialogViewModel, DataTemplate DataType of the type according to DialogViewModel choose to display different sub-forms, while the child form' s DataContext will be automatically associated with the types of entities that DialogViewModel
(系统自动生成,下载前可以参看下载内容)

下载文件列表

SimpleWindowChrome

..................\CustomControl

..................\.............\bin

..................\.............\...\Debug

..................\.............\CaptionButton.cs

..................\.............\CloseButton.cs

..................\.............\CustomChromeWindow.cs

..................\.............\CustomControl.csproj

..................\.............\CustomControl.csproj.user

..................\.............\HelpButton.cs

..................\.............\Images

..................\.............\......\close.png

..................\.............\......\maximize.png

..................\.............\......\minimize.jpg

..................\.............\......\restore.png

..................\.............\MaximizeButton.cs

..................\.............\MinimizeButton.cs

..................\.............\obj

..................\.............\...\Debug

..................\.............\...\.....\CaptionButtons.g.i.cs

..................\.............\...\.....\CaptionButtonsWithHelp.g.i.cs

..................\.............\...\.....\CustomChormeWindow.g.i.cs

..................\.............\...\.....\CustomControl_MarkupCompile.i.cache

..................\.............\...\.....\CustomControl_MarkupCompile.i.lref

..................\.............\...\.....\DesignTimeResolveAssemblyReferences.cache

..................\.............\...\.....\DesignTimeResolveAssemblyReferencesInput.cache

..................\.............\...\.....\GeneratedInternalTypeHelper.g.i.cs

..................\.............\...\.....\TempPE

..................\.............\...\.....\......\Properties.Resources.Designer.cs.dll

..................\.............\...\.....\Themes

..................\.............\Properties

..................\.............\..........\AssemblyInfo.cs

..................\.............\..........\Resources.Designer.cs

..................\.............\..........\Resources.resx

..................\.............\..........\Settings.Designer.cs

..................\.............\..........\Settings.settings

..................\.............\Themes

..................\.............\......\CustomWindowGeneric.xaml

..................\.............\......\Generic.xaml

..................\SimpleWindowChrome

..................\SimpleWindowChrome.sln

..................\SimpleWindowChrome.suo

..................\..................\App.xaml

..................\..................\App.xaml.cs

..................\..................\bin

..................\..................\...\Debug

..................\..................\...\.....\SimpleWindowChrome.vshost.exe

..................\..................\...\.....\SimpleWindowChrome.vshost.exe.manifest

..................\..................\MainWindow.xaml

..................\..................\MainWindow.xaml.cs

..................\..................\obj

..................\..................\...\x86

..................\..................\...\...\Debug

..................\..................\...\...\.....\App.g.i.cs

..................\..................\...\...\.....\DesignTimeResolveAssemblyReferences.cache

..................\..................\...\...\.....\DesignTimeResolveAssemblyReferencesInput.cache

..................\..................\...\...\.....\MainWindow.g.i.cs

..................\..................\...\...\.....\SimpleWindowChrome_MarkupCompile.i.cache

..................\..................\...\...\.....\TempPE

..................\..................\...\...\.....\......\Properties.Resources.Designer.cs.dll

..................\..................\...\...\.....\Window1.g.i.cs

..................\..................\...\...\.....\Window2.g.i.cs

..................\..................\...\...\.....\Window3.g.i.cs

..................\..................\Properties

..................\..................\..........\AssemblyInfo.cs

..................\..................\..........\Resources.Designer.cs

..................\..................\..........\Resources.resx

..................\..................\..........\Settings.Designer.cs

..................\..................\..........\Settings.settings

.................

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org