.NET FX 4

.NET FX 4

  • Comments 34

As a part of the conversation on the VS2010 and .NET FX 4 pillars, I thought I would focus today on the .NET platform.

 

With .NET FX 4, we are focusing on empowering innovative user experiences in applications, allowing for re-invigorating large ISV applications, enabling developers to create connected and declarative applications, and enabling developers to build next generation line of business (LOB) applications. 

 

We know that user experience is becoming critical for LOB applications.  In WPF4, we are adding support for the Windows7 multi-touch, ribbon controls, and taskbar extensibility features.  The Surface 2.0 SDK will also be built on WPF 4 and share a common multi-touch infrastructure and programming model.  We are adding a Data Grid control that will significantly improve your experience when building data centric applications.  We are also addressing some of the fundamentals with even better deployment, continuing improvements in performance and scalability, visual improvements such as text clarity and layout pixel snapping, and improved localization and interoperability.

 

 

 

Large ISV applications can easily take advantage of the user experience inherent to WPF and the improvements to it in WFP4.  We understand firsthand what it means to re-skin a large native application and take advantage of the incredible UI you can get from WPF.  For Visual Studio 2010, we have taken Visual Studio and started to transform the UI in this very way.  You won’t see this happen throughout the entire IDE in this next version however, but we are taking all new pieces of UI that are being written and using WPF as well as taking a bet in some of our larger UI infrastructure pieces.  As I mentioned earlier this week in a post, we have a new editor that is written exclusively in WPF and built on MEF and .NET FX 4.  Our start page is new, clean, and simple and is also WPF based as is our overall shell.  This work has driven some improvements in WPF and the new WPF controls will strengthen your ability to re-skin your application with WPF while leaving the business logic intact.

 

Another area we are focusing on is to make your life easier for n-tier development.  N-tier development is a reality in the business world today - application patterns such as those in Silverlight and Ajax make n-tier mainstream.  In .NET FX 4, We are making n-tier development much easier by doing all the plumbing work for you and letting you focus on your business logic while still being explicit about the network transitions.  We are providing Visual Studio support for a single solution that spans both the web server and the client tiers with end-to-end solutions around sorting, paging, filtering of data on the client, as well as end-to-end solutions for data validation from declarative data on the database tier all the way through to the client UI.  You will be able to write validation logic once – have it run anywhere and this framework will work with any data access layer -  the Entity Framework, LINQ to SQL, ADO.NET, nHibernate, etc.

 

.NET FX 4 also builds on prior investments that we have made in Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF).  The main goal is to enable developers to express applications in a way that makes sense to the team and business, provide a framework for durable, long running apps, and simplify the creation and customization of authoring experiences.  WF in .NET FX 4 includes a composable set of workflow styles, a unification of rules and activities as well as improved data binding, scoping, and expression support.  In Windows Communication Foundation (WCF) we are simplifying implementing complex communication patterns with content-based message correlation and support for long-running durable communications.  We are also adding XAML support for declarative service authoring and improved support for REST service authoring.  To improve the developer experience with these technologies, we are improving the tooling in Visual Studio 10 with a new flowchart designer.  The new tooling will make it easy to create custom activity UIs leveraging WPF and the new declarative-workflow model will make re-hosting the designers outside of Visual Studio even easier than before.

 

As you can see, there is a lot of good stuff that we are adding to .NET FX 4. 

 

Namaste!

Leave a Comment
  • Please add 7 and 6 and type the answer here:
  • Post
  • PingBack from http://www.tmao.info/net-fx-4/

  • Soma, the ribbon is currently covered by the bizarre 'Office UI Licence' (which was presumably accidentally excreted in the dying spasms of 'old MS').

    Can you reassure us that the absurdity of the OUI licence isn't going to encumber the use of WPF4?

  • Hi Willdean,

    We hear your feedback on the license issues.  The .NET FX team is keeping that in mind to ensure you don't encounter these issues with WPF4.

    -somasegar

  • "while still being explicit about the network transitions" - sounds like Volta?

  • What about .Net CF 4? Any hope of VS2010 actually working correctly (ie: fewer Platform Validation issues and perhaps a more natural way to mark classes as desktop safe? oh - and not have shadow classes filling in for missing classes be blocked because the IDE actually knows about them even though they're not included.. oh and how about adding Settings to the mix - it's not that hard to do and not that large... actually, there's a ton of stuff that's needed to make .Net CF competitive and not induce programmers to blow their own brains out - he says after spending 6 months writing a nice UI application for WinCE in .Net CF... Oh - documenting things would be nice too - preferably in a proactive way rather than just filtering out the stuff that doesn't apply from full .NET, which leaves out all sorts of gotchas...)

    But I digress.

    Remember, not everyone wants to program in declarative languages, so whatever you do - do NOT lock us into that model.

    TTFN.

  • Soma,

    Thanks for sharing.

    you mention "...visual improvements such as text clarity and layout pixel snapping".  We are currently working on a Silverlight app and the blurry fonts have become a major issue.  I am assuming this will be addressed by WPF4.  Do you have a rough ETA that we can pass on to our clients?

    Thanks,

    Torsten

  • Well Soma, This is the most encouraging blog you have "ever" posted. I can't believe you are finally addressing data and n-tier issues in VS. But given Microsoft's history with data access and N-TIER development in VS I'm being rightfully cautiously optimistic especially since data is still I assume being treated as an object and through the .NET framework.

    I still can't understand why you just wont implement something that has been proven to work for years and provide native data access to SQL Server using the VFP core command and function library? With the DLR this is completely doable. I'm totally baffled by your resistance to the obvious!

    Nonetheless I'm taking a wait and see approach and eager to play with this technology when it is finally released hopefully it will not be symbolism over substance.

    Mark

  • Pretty exciting stuff for .net 4 . I just cant wait to get a standalone release of visual studio 2010 ( Not as a part of VPC) , i got one from PDC 08 but with windows 2008 server as the virual pc host its not a fast experience ;).

  • Hi Torsten,

    Yes, we are planning on addressing these in WPF4.  You will likely see pixel snapping in a beta release and improvements to the blurry font issue at RTM.  It is a little too early to talk about an ETA, but as we make more progress on .NET FX4, we will keep you posted.

    -somasegar

  • We need to in .NET 4 fx:

    - open an avi or wmv file and find out its run time and video dimensions.

    - open an mpeg file and find out its run time and video dimensions (for commonly used mpeg formats).

    - open a wav, wmv or mp3 audio file and find its run time and bit rate

    We need to be able to handle audio and video files much easier in .NET instead of what we get now which either forces us to win32 interop, forces us to a com component, or (ugh) forces to byte count/interpret a file header.

    Basic media files should just work in .NET given we've had 7 years of the .NET framework.  From Microsoft's support life-cycle page:

    http://support.microsoft.com/lifecycle/search/default.aspx?sort=PN&alpha=studio&Filter=FilterNO

  • Basic ability to handle and play audio/video files would be a great addition!  I also would like some more clarity on the LINQ to SQL situation.   LINQ to SQL should not be abandoned but that’s what it looks like will happen to it from the ADO.NET blog.

  • I see the Service Bus in Azure but I don't see any mention of it being part of WCF 4.0.  Is there a chance that we'll be able to do pub/sub with a service bus endpoint in WCF 4.0.

  • .NET needs improved image file handling also.  Doing things that should be simple (see example below) should be simple.  

    Example: Open a jpeg file, set compression level to 50, save as a different jpeg file.

    Example 2: Open a single page tiff file, open another single page tiff file, each file has the same tiff format (e.g. black and white), create a new tiff file containing 2 pages, one from each of the input files using Group IV compression.

    Doing either of them is quite difficult to do as the .NET framework currently has poorly designed classes for image file format/parameters.  The framework directs you to an undocumented set of generic codec classes which forces you to hunt for the available compression, format, etc settings for each image format in the debugger.  This should be easily found in a class derived off of the generic codec class which is specialized to jpeg files, a specialized class for Tiff files, a specialized class for PNG files, a specialized class for bitmap files.  

    These specialized classes should have a set of basic properties (e.g., compression quality level) and a bag of advanced properties where all of the rarely used values reside.

    See the Java Advanced Imaging classes as well as the Java Media Framework classes for inspiration.

    Microsoft has the underlying libraries for media and image file handling already built into Expression media and Expression design.  Can't they just extract a subset of them  and embed them in the .NET API?

    The Expression encoder should allow for reading of most of the common media formats.

    Expression design should be able to read/write most of the common image file formats as well as set the parameters for each.

  • In WPF, unfortunately there's no way to get the bit rate without using the Media SDK but the NaturalDuration property on MediaElement will return a media file’s duration/runtime and NaturalVideoWidth/NaturalVideoHeight will return a media file’s dimension.

    We'll look at if we can improve this in the next version.

    Ian.

  • Hi,

    c't, a popular german computer magazine states that WF will change significantly in .Net4 (see below) so that existing WF applications have to be rewritten completely.

    Would you please comment on this.

    Thanks, Martin

    _____

    http://www.heise.de/ct/08/24/022/

    "Den Sprung auf die nächste .NET-Versionsnummer nicht überleben wird die Workflow Foundation (WF) – jedenfalls nicht in der derzeitigen Form: In puncto Performance und Funktionsumfang haben sich mittlerweile so viele Probleme offenbart, dass eine komplette Neuimplementierung notwendig wird; bestehende Workflows und Aktivitäten werden sich damit nicht weiter nutzen lassen."

Page 1 of 3 (34 items) 123