[BlogMyCode] Using WPF within WinForms Project

29 בנובמבר 2006

Everyone, who tried to add WPF control to project, that WinForm application, noticed, that it never compiled and return errors about InitializeComponent within WPF control. In order to make it work, just unload you project (right mouse click -> Unload), then enter build edit mode (right moouse click-> Edit) and add following line after similar one with CSharp.targets (at the end). Reload the project. Hurah! Now you can use WPF controls within WinForm application. <Import Project="$(MSBuildBinPath)\Microsoft.WinFX.targets" />
תגיות: ,
אין תגובות

Creating fully binded graph control with WPF

Today we'll try to understand how powerfull is data binding engine in WPF. We'll create graph control, that works without loops, overriding OnPaint events and other dirty tricks we were used in GDI+ world. So WPF Polyline element looks like useful for us to create some kind of graph. So we'll add this like in our code.  <Polyline Name="myGraph"                Width="Auto"                Height="Auto"                Fill="Green"                ></Polyline>  Now, we have something that might be used for drawing lines of our graph. So, now...
תגיות: , ,
אין תגובות

Blog your code VS2005 plugin

27 בנובמבר 2006

Recently Guy wrote in his blog about nice plugin for VS2005, that format source code to HTML to make it ready for bloggings. So I had too much time this weekend and wrote another VS2005 plugin, that not only format your code and put it into clipboard, but format it according your blog style, strip breaks, make able to write description and then blog it straight into your blog, by using Windows Live Writer utility. Feel free to try it and, of cause, to tell me how it was. For more information, tap here. To download, use this (no-question msi)....
תגיות: ,
אין תגובות