Windows Presentation Foundation 4.5 Cookbook的源码

上传者: tstc_tstc | 上传时间: 2025-12-22 15:26:47 | 文件大小: 8.14MB | 文件类型: ZIP
Windows Presentation Foundation 4.5 Cookbook的源码 Chapter 1: Foundations 7 Introduction 7 Creating custom type instances in XAML 9 Creating a dependency property 15 Using an attached property 25 Creating an attached property 28 Accessing a static property from XAML 33 Creating a custom markup extension 37 Handling routed events 44 Chapter 2: Resources 51 Introduction 51 Using logical resources 52 Dynamically binding to a logical resource 57 Using user-selected colors and fonts 59 Using binary resources 63 Accessing binary resources in code 70 Accessing binary resources from another assembly 72 Managing logical resources 76 Chapter 3: Layout and Panels 81 Introduction 81 Creating a table-like user interface 83 Dynamically sizing grid rows/columns 90 Creating a scrollable user interface 92 Creating a border around panels and elements 94 Placing elements in exact positions 96 Adding/removing elements to a panel dynamically 98 Creating a tabbed user interface 100 Implementing drag-and-drop 103 Chapter 4: Using Standard Controls 109 Introduction 109 Working with text 110 Using content controls 114 Displaying images 120 Creating tooltips 126 Creating a list of items 131 Creating a standard menu 134 Creating a context menu 137 Selecting options with checkboxes and radio buttons 139 Manipulating tab order and focus 141 Chapter 5: Application and Windows 145 Introduction 145 Creating a window 145 Creating a dialog box 149 Using the common dialog boxes 153 Creating ownership between windows 156 Creating a custom shaped window 158 Creating a single instance application 162 Handling an unhandled exception 166 Chapter 6: Data Binding 169 Introduction 169 Element to element binding 170 Binding to a single object 173 Binding to a collection 180 Using data templates 184 Using value converters 191 Creating a master-detail view 199 Sorting and filtering bound collections 202 Grouping bound collections 209 Binding to multiple properties 214 Binding hierarchical data to a TreeView 217 Presenting data in a grid 220 Validating data 228 ......

文件下载

资源详情

[{"title":"( 2790 个子文件 8.14MB ) Windows Presentation Foundation 4.5 Cookbook的源码","children":[{"title":"ColorPicker.baml <span style='color:#111;'> 3.78KB </span>","children":null,"spread":false},{"title":"ColorPicker.baml <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"App.baml <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1007B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 995B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 949B </span>","children":null,"spread":false},{"title":"App.baml <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"Generic.baml <span style='color:#111;'> 902B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 895B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 868B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 829B </span>","children":null,"spread":false},{"title":"SimpleControl.baml <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"Brushes.baml <span style='color:#111;'> 790B </span>","children":null,"spread":false},{"title":"App.baml <span style='color:#111;'> 771B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 770B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 765B </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 754B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 20.63KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 18.36KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 15.73KB </span>","children":null,"spread":false},{"title":"CH10.TestUserControls.csprojResolveAssemblyReference.cache <span style='color:#111;'> 14.33KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 14.21KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 14.11KB </span>","children":null,"spread":false},{"title":"CH10.TestCustomControls.csprojResolveAssemblyReference.cache <span style='color:#111;'> 13.69KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 13.69KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 13.20KB </span>","children":null,"spread":false},{"title":"CH01.TestRandom.csprojResolveAssemblyReference.cache <span style='color:#111;'> 12.43KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 11.98KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 11.96KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 11.39KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 11.31KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 10.95KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 10.67KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 10.63KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 9.57KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 9.55KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 9.45KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 9.32KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 8.71KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 8.27KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 8.27KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 7.64KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.11KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.08KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.07KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.54KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.54KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.53KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.48KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.48KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.45KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.43KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.43KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.43KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.43KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明