DCSIMG
.NET 3.5 - IHateSpaghetti {code}

IHateSpaghetti {code}

VSX, DSL and Beyond by Eyal Lantzman

Syndication

Coding / Architecture

Extensibility /DSL

Projects

Articles

Browse by Tags

All Tags » .NET 3.5 (RSS)
WPF Toolkit June 2009
Check out the new WPF toolkit that was released today on WPF codeplex site . The new stuff: Chart Controls Bug fixes for common issues, including: - DataGrid.DeleteCommand requires a current cell (as reported here) - DataGridColumn DisplayIndex ArgumentOutOfRange exception (as reported here) - DatePicker IsEnabled=False does not gray out (as reported here) - DatePicker Enter, Escape, and Spacebar inputs do not correctly commit/cancel edits and close the popup - VSM steady state animations fail to...

Posted by Eyal | 1 comment(s)

System.Net traces
Found this useful post you might want to know how to add tracing information for System.Net namespace: <configuration>     <system.diagnostics>         <trace autoflush="true" />                 <sources>                 <source name="System.Net">                        ...

Posted by Eyal | with no comments

GDI vs GDI+ text rendering and measuring
I was investigate a GDI/GDI+ related bug the other day and I found out that GDI+ doesn’t render RTL text very well. In order to render it correctly you need to render it using GDI. GDI+ Text rendering This is done by Graphics.DrawString(…) / Graphics.MeasureString(..) GDI Text rendering This is done by TextRenderer.DrawText(..) / TextRenderer.MeasureText(…) The interesting thing about GDI text measuring is that it sometimes the measured size might be larger than the maximum size so be aware of that...

Posted by Eyal | with no comments

StyleCop update 4.3.1.3
Some of the features: Ability to use <include> tags within Xml header documentation to pull docs from external files. Get accessor in property required to appear before set accessor .generated.cs files ignored by default   Bugfixes: 18: Partial methods not handled correctly 31: Documentation rules should understand <include> element 56: Require get accessor before set accessor 63: When documenting a generic class, only allows <see cref="MyClass"/> and not <see...

Posted by Eyal | with no comments

Using Windows Azure Blob Storage to store aerial images
I found this cool post on how to use azure blob storage to store your images. This post includes some source code (C#) to upload the images. Nice! 

Posted by Eyal | 1 comment(s)

Free ASP.NET MVC eBook Tutorial
Summery from the original post by ScottGu NerdDinner ASP.NET MVC Tutorial The tutorial starts by using the File->New Project command in Visual Studio to create a brand new ASP.NET MVC project, and then incrementally adds functionality and features.  Along the way it covers how to: Create a database Build a model with validation and business rules Implement data listing/details UI on a site using Controllers and Views Enable CRUD (Create, Update, Delete) data form entry Use the ViewModel pattern...

Posted by Eyal | 5 comment(s)

Collections and WPF collection view types
This is more of a general post on various collections and how does WPF bind to them and what are the interfaces that WPF uses in order to manage those collections.   When binding collection to an ItemsControl (TreeView, ListView, ListBox, ComboBox and etc) or to a more simple control (Button, TextBox, TextBlock and etc) WPF creates behind the scene an ICollectionView object. This object can be one of the following types: CollectionView – handles collections that implement IEnumerable ListCollectionView...

Posted by Eyal | with no comments

Sculpture - Model-Driven Development code generation framework
There is an interesting open source project in codeplex that is based on DSL Tools, I saw just the videos but it looks promising. Here's the projects summery and pictures Sculpture is a .NET open source Model-Driven Development code generation framework ideal for creating and managing .NET Enterprise Applications. With Sculpture you can model your application components, and then transform this model to deployable components with your favorite technology. Sculpture comes with a host of ready...

Posted by Eyal | 1 comment(s)

WPF unit testing propblem and solution
When testing WPF forms on WinForms hosting WPF controls you'll probably get test run error: One of the background threads threw exception: System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used. Here is a quick sample of code that causes this problem: class MyDialog { public bool Show() { System.Windows. Window w = new System.Windows. Window (); w.Show(); } } And here's the unit test using System.Windows.Threading;...

Posted by Eyal | 1 comment(s)

MSBuild Extension Pack
I came across this project at codeplex here's the project summery: " Project Description The MSBuild Extension Pack is the successor to the FreeToDev MSBuild Tasks Suite and provides a collection of over 170 MSBuild tasks designed for the .net 3.5 Framework. A high level summary of what the tasks currently cover includes the following: • System Items: Certificates, COM+, Console, Date and Time, Drives, Environment Variables, Event Logs, Files and Folders, GAC, Network, Performance Counters...

Posted by Eyal | 1 comment(s)

InfoQ: A Formal Performance Tuning Methodology: Wait-Based Tuning
Although the author writes about java applications the concepts are the same for .NET and supported to some extent by Visual Studio Test Edition Here's the summery: "Performance tuning was once more “art” than “science”, but after a combination of abstract analysis and trial-and-error, wait-based tuning has proven to make the exercise far more scientific and far more effective. Wait-based tuning begins by performing a wait-point analysis of an application’s architecture in order to identify...

Posted by Eyal | 1 comment(s)

Blog Carnival #7
This blog carnival will be entirely dedicated to web development in MS platform. Scott has published a whole list of links in his blog ASP.NET · Amazon EC2 Support for Windows and ASP.NET: Big news announced this week: Amazon will be offering Windows Server 2008 as an option in their EC2 service. This enables you to use ASP.NET, IIS7 and SQL Server in the cloud. · Using ASP.NET WebForms, MVC and Dynamic Data in a Single Application : Scott Hanselman has a nice post that demonstrates how you can have...

Posted by Eyal | 1 comment(s)

Tools day - come and get them
In the last weekend there were number of tools/frameworks that were published/upgraded/etc FxCop 1.36 - .NET Code Analysis Tool for Microsoft .NET Framework Design Guidelines - documentation and download 200+ bug fixes that reduce noise, missing analysis and rule crashes Support for analyzing anonymous methods and lambda expressions New option for skipping analysis over tool generated code Spell checker libraries now ship in the box Changes in the way references are resolved and located Better support...

Posted by Eyal | 2 comment(s)

NDepend v2.9.1 feature - Source files rebasing
Source files rebasing enables a common CI scenario where the code is compiled in one location and analyzed in another one. One useful scenario is during 2 builds comparison. Usually, analysis results are done the same way and thus, source files paths are the same both in older and newer analysis results. In this condition, when trying to compare 2 versions of a source file NDepend tells that because the 2 paths are the same, it can’t compare the source files. A solution to this problem is to fetch...

Posted by Eyal | with no comments

.Net Deadlock Detector - cool tool for your toolkit
I found a great tool that detects deadlocks using debugging tools for windows very interesting approach! The tool does not require to have the code re-compiled in any way or form, with any external dependencies, nor reference any external library or have you modify your code to use any special type of locks inside your code It works on release builds with no PDB files It works on running processes or previously captured memory dumps It detects deadlocks across multiple threads and returns detailed...

Posted by Eyal | with no comments

More Posts Next page »