Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Team Bloggers

Browse by Tags

All Tags » WPF   (RSS)

  • Composite Application Guidance for WPF 2008

    Its been some time before my last post. Just catching my breath with a new addition to my family. :) The Composite Application Guidance aka PRISM for WPF 2008 has just been released. For those who havent heard of it : "The Composite Application Guidance for WPF can help you split the development of your WPF client application across multiple development teams, each responsible for the development of a piece of the application, and help you seamlessly compose those pieces together into a client application. The guidance includes a reference implementation, reusable library code (called the Composite Application Library), documentation, quick start tutorials and hands-on labs." For more details/downloads take a look at the project on codeplex: http://www.codeplex.com/CompositeWPF Share this post Read More...
  • WPF WebBrowser (.NET 3.5 SP1)

    One of the new controls is the WebBrowser... aha!! not the Winforms control.. we now have it in WPF. Functions supported by this control are: NavigateToString NavigateToStream Navigate GoBack GoForward In xaml it would look like something like this: < StackPanel Name = " panel " > < WebBrowser Height = " 500 " > </ WebBrowser > </ StackPanel > I put together a simple sample which tries to use this functionality Looks like the above. Nothing fancy :) Also since this is beta you might find a few rough edges (bugs) here and there.Please report them on the connect website or on the forums. Project Code: Attached Share this post Read More...
  • Pages in Silverlight

    Pages as a paradigm likely pre-date the web itself although they have been popularized by document-based markup languages deriving from SGML. Windows Presentation Foundation (WPF) with XAML further codifies Pages as a first-class UI element from its heretofore usage as a logical element. Looking back from Silverlight, this is as good a point in history to start as any. WPF has built-in support for reusable pages in its applications, and the task of navigation between them. It provides the infrastructure for declarative navigation via hyperlinks or programmatic navigation via NavigationService , and a journal that remembers which pages were navigated to or from. For XBAPs on IE7+, WPF supports integration of the journal with the browser's Back and Forward buttons, while elsewhere it displays a substitute navigation bar with this functionality (the limitation is an effect of how the XBAP host plugs into the browser). There is also a building block called PageFunction which introduces a paradigm Read More...
  • New features: ScrollViewer.IsDeferredScrollingEnabled; AlternationCount;IEditableCollectionView

    3 more features which go hand in hand are the: · ScrollViewer.IsDeferredScrollingEnabled · AlternationCount · IEditableCollectionView All the above have been used in a sample which looks like this - it supports add/delete/cancel (escape key) operations ScrollViewer.IsDeferredScrollingEnabled This is an opt in features which provides a perceived performance improvement. What it does is that content doesn’t scroll while the scrollbar is in action. Once you stop the content refreshes to the new scrolled value. In this case you avoid the possible jitter motion in scrolling. Usage: < ListBox ScrollViewer.IsDeferredScrollingEnabled = "true”> Alternation Count This allows setting alternating properties on rows of an items Control. A lot of our customers have been writing the alternating color of listboxes, listviews,… Now it’s a few lines code which gives you this functionality J Usage: < Style.Triggers > < Trigger Property = " ItemsControl.AlternationIndex " Value = " 0 " > Read More...
  • Why You Want To Book Your PDC2008 Ticket NOW...

    If you're into any of the technologies that this blog covers, you'll be mad if you miss the Professional Developers Conference this year. It's actually been three years since our last PDC, so we're overdue! I'm really excited about all the things we're going to be covering at the PDC this year: those of you who have attended the conference in the past will know that we only run a PDC when there is major news to share, and we've got some killer content this year. Registration opened yesterday, so now is a good time to get ahead of the crowd. We keep most of the session titles under wraps until the event starts - this is a future-orientated conference, after all. But even from the session abstracts we've posted so far , you'll see sessions that cover the Live Mesh, Internet Explorer 8, Windows 7 (including details on how to program for the multi-touch feature we showed off this week at Walt Mossberg's D conference ), as well as really hardcore deep-dive sessions on topics like the internals Read More...
  • Interested in working on the WPF team?

    As you can see from this and other blogs, there's lots of exciting stuff going on in WPF these days, and we're hiring!  Ivo Manolov, our Test Manager has a post about job openings in Quality Assurance for WPF, including a posting for a Test Architect.  Also, here's a site that contains job listings for both Software Development positions and Quality Assurance positions. Interested?  Check it out! Read More...
  • Join the WPF Test team

    The WPF test team is hiring. We have the following openings · Software Development Engineer in Test (see official job posting ) · Software Test Architect (see official job posting ) For more details check out Ivo’s blog post Need some more convincing ... Check the video below :) Video: Why Microsoft Share this post Read More...
  • Portfolio as WPF and ASP.NET

    I recently wanted to put together a portfolio page of the various code and samples that I've worked on over the last few years.  To do so, I created a very simple xml file, which you can see here .  Then, I decided to create two different UI Read More...
  • WPF 3.5 SP1 feature: StringFormat

    One of the new features in 3.5 SP1 is stringformat. The usage is pretty simple. So following are simple snippets showing its use < TextBox Text = " {Binding Path=Double, StringFormat=F3 } " /> < TextBox Text = " {Binding Path=Double, StringFormat=Amount: {0:C}} " /> < TextBox Text = " {Binding Path=Double, StringFormat=Amount: \{0:C\}} " /> < TextBox > < TextBox.Text > < Binding Path = " Double " StringFormat = " {}{0:C} " /> </ TextBox.Text > </ TextBox > < TextBox > < TextBox.Text > < MultiBinding StringFormat = " {}{0:F2} = {1:D} " > < Binding Path = " Double " /> < Binding Path = " Date " /> </ MultiBinding > </ TextBox.Text > </ TextBox > < TextBox > < TextBox.Text > < Binding Path = " Date " StringFormat = " {}{0:MM/dd/yyyy} " /> </ TextBox.Text > </ TextBox > < ListBox Background = " Beige " ItemStringFormat = " F3 " > < sys:Double > 1.11122 </ Read More...
  • .NET 3.5 SP1 - Try it out today

    Have you tried out .NET 3.5 SP1... If not, try it now. Its got loads of new features for WPF. In fact rather than a service pack, its more of a new release .. So whats new.. improved deployment, new controls (supports creation of datagrid), improved performance, DirectX integration, HLSL shaders, and many new features. For the complete details, take a look at Tims post Links to the executables: Visual Studio 2008 Service Pack 1 (Beta) .NET Framework 3.5 Service Pack 1 (Beta) Visual Studio 2008 Express Editions SP1 (Beta) Visual Studio 2008 Team Foundation Server 2008 SP1 (Beta) Read More...
  • Download Visual Studio 2008 SP1 Beta

    Get it here . Discuss amongst yourselves at the forum . Don't miss Guy Burstein's guided tour . Here's the official word: Visual Studio 2008 With Visual Studio 2008, developers and development organizations have the tools that enable them to be more productive, take advantage of all the latest platform advances on Windows, Office and the Web, and collaborate more effectively throughout the software lifecycle. Visual Studio 2008 offers more than 250 new features and improvements to existing features, providing developers of all skills sets – from the hobbyist to the small development shop to enterprise development organizations – the tools they need to build great applications. Microsoft is committed to helping developers be successful and provides community resources, reference material, software, add-ins, and more to guide construction of Software+Services applications, data-driven solutions, and compelling user experiences. Visual Studio 2008 SP1 beta introduces improvements and new functionality Read More...
  • A simple Effect sample project and ClickOnce application

    The previous post in this series began to talk about writing custom Effects for WPF. We looked specifically at ColorComplementEffect, an effect with no parameters. In upcoming posts, we'll get into the details of multi-parameter effects and other specifics. But in the meantime, I thought it would be useful to post a sample VS project and a ClickOnce application from that project for folks just itching to get going. The app looks like this: It's nothing fancy, mostly XAML and, in fact, the way the code and structure and UI are constructed are not conducive to hosting all effects now and forever (a more sophisticated hoster of effects would make a lot more use of metadata and reflection to allow arbitrary effects to be applied and parameters to be tweaked). However, this definitely does the job in terms of showing how Effects are used and written. There are two projects in the solution -- one is a MyEffects library, and the other just an EffectTest application that uses Effects from MyEffects. Read More...
  • WPF 3.5 SP1: Don't let the SP moniker fool you

    Yesterday the WPF team shipped some major horsepower features in the vastly understated preview Service Pack to .NET Framework 3.5. It is an exception to the rule for an SP release to have features, and not just bug fixes. In the mold of Windows XP SP2, this SP of .NET Framework 3.5 is chock full of new WPF features. For the first time the .NET Framework has been divided into a Client profile which - intuitively - does not contain server specific libraries such as ASP.NET. This cuts down the size of the .NET Framework to about 25MB (which as Dr. Sneath reminds us is close to Adobe Reader's size) and people like me with a Java background can associate it loosely with the Java SE and Java EE split. In many ways, this is the realization of the Longhorn-era "WinFX" give-or-take a couple assemblies. Given my previous association with the WPF Application Model, I'll begin with a shout out to improvements from and driven by that crew. The Web Browser control in WPF is embodied by the Read More...
  • Writing custom GPU-based Effects for WPF

    The last few posts in this series on Effects have focused on the perspective of those using Effects. These Effects have to come into being somehow, and that's where we turn to now. In this post we showed how to apply a ColorComplementEffect to go from this to this: ColorComplementEffect, which very much looks like a photographic negative, is just about the simplest Effect one can imagine. Conceptually, all it does is take the RGB color components and create a new color with each component subtracted from 1.0. Let's first show what it takes to write it and add it to your app, then we'll expand and generalize from there in the next post. Creating the HLSL for color complement Here's some simple HLSL for doing the color complement. Note that this series is not in the least intended to be an HLSL tutorial. There are a bunch out on the Net, and there is also a Programmer's Guide and Reference Guide on MSDN that can be a good place to start. Also starting from existing examples (like those included Read More...
  • More details on how Effects work

    The last couple posts in this series have dug into features and example usage of Effects in WPF. Let’s go into some other aspects of the feature that are important to understand. Software Rendering When we discuss Effects, we typically talk about them being GPU-accelerated. This is typically the case. However, there are three important situations where the Effects cannot be GPU-accelerated: When the graphics card being run on does not support PixelShader 2.0 or above. This is becoming more and more rare, but is definitely still out there. When the WPF application is being remoted over Remote Desktop or Terminal Server or some other kind of mirror driver. When the WPF application is in a mode where software rendering is required – such as rendering to a RenderTargetBitmap, or printing. In all of these cases, WPF will render Effects via software. What does that mean? As mentioned in an earlier post, Effects are written using HLSL for programming the GPU. WPF incorporates a “ JIT ter” (Just-in-Time Read More...
More Posts Next page »

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us