Browse by Tags
All Tags »
C# (
RSS)
In this post: 1) General overview of the way the toolbox items work in DSL tools for VS2010 2) Toolbox related Changes from VS2008 to VS2010 3) Customization of static toolbox items - how to grouped model elements into single toolbox item In VS 2010 we change the way we manage toolbox items from being set explicitly during package initialization to being partially set(*) before the package has been created and initialized. The toolbox items that are set this way called static toolbox item...
תגים:C#, SDK, DSL, Best Practices, DEV, Visual Studio 2010, .NET 4.0, Visual Studio 2008, VS2008, VS10, VS2010
Jean-Marc has released another sample over the weekend: Domain Model Extensibility, here is a quote from his post : "The sample presents a DSL to explain the architecture of a multi-Tiered application. Each tier is made of components, which have ports. Connections are made between output ports and input ports. What is new is that a Domain Model Extension will add a “Security Extension” thus providing to the toolbox new items (an Audit Log), to a Tier new decorators, to Ports three new Domain...
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...
Windows 7 specific APIs include demo , labs and presentaions: Windows 7 Sensor and Location .NET Interop Sample Library Windows 7 Multitouch .NET Interop Sample Library Windows 7 Taskbar and Libraries .NET Interop Sample Library Have fun
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...
Infostrat has taken VE3D and wrapped it up in a WPF control that you can just drop right into your XAML, they also put this project, including the source, onto CodePlex under LGPL. You just need VS 2008 and .NET 3.5 SP1. Very cool !
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...
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!
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...
If you are interested in using MVVM (Model View ViewModel) design pattern for your applications you should definitely take a look at the screencasts made available on Josh's site . Implementing Model-View-ViewModel in WPF Implementing Model-View-ViewModel in Silverlight Implementing MVVM & Exploring UX Design Patterns
In the February MSDN Magazine there's a very interesting article about CSE and what is changed in CLR 4.0. It seems that the code below would wrap corrupted state exceptions thrown by the OS (such as Access Violation) and thus leaving the application non stable state when you not fixing the CSE. 1: public void SomeFunction() 2: { 3: try 4: { 5: //Do something 6: } 7: catch (Exception ex) 8: { 9: throw WrapException(ex); 10: } 11: } So they CLR guys made some changes and thus no more CSE exception...
Get Started Developing on Windows Azure? If you’re a developer and you’re new to Windows Azure, start here! You’ll see what you need to download and install, and how to create a simple “Hello World” Windows Azure application. Deploy a Windows Azure Application You’ll see what it takes to move your application into the cloud – you’ll see how to request and register a token, how to upload your Windows Azure application and how to move it between staging and production in the cloud. Store Blobs in Windows...
This post is a part of the Interview Question Series posts. Three way partition?! Is there a two way partition or a four way partition ?! Well X way partition problems are simply dividing the array/collection into X compartments each with it's own distinct feature/property. One way compartment sort is too simple (just return the array without doing anything) :-) Two compartments are not difficult as well - you just need to pointers one to the left side one to the right side and you advance the...
This post is a part of the Interview Question Series posts. Question for a given positive integer n print all the permutation of a binary number of size n. Example : n=3 => 000, 001, 010, 011, 100, 101, 110, 111 In general there are 2^n permutations for a given n. Try to solve it by yourself first... The code below shows two approaches to these kind of questions a mathematical one - just loop 2^n times and switch the left most bit if the resulting bit is zero then shift then switch the next one...
Clemens has an interesting post on how to use MEF and the new VS Team Architect Layer Diagram and detect various Anti-Patterns .
More Posts
Next page »