Mike Taulty's Blog
Bits and Bytes from Microsoft UK

April 2006 - Mike Taulty's Blog

Blogs

Mike Taulty's Blog

Elsewhere

  • 10th May, Designer Event in London - Designing Next Generation User Interfaces

    I'm a little late in noting this because I've been out on holiday for the past week or so. There's a Microsoft event specifically aimed at Designers and people with a User Interface interest and it's being run in conjunction with Computer Arts magazine. It's happening in London on the 10th May (Wednesday if my maths is correct :-)). The event is entitled Designing Next Generation User Interfaces and it's a chance to take a look at the Microsoft Expression range of products. I've been playing a little bit with the previews of Expression Graphic Designer and a whole lot more with the Expression Interactive Designer and I think that the combination of the WPF Platform and the Expression tools is going to be very compelling as these tools head through betas and towards RTM. The event is free, there's a free lunch (yes, I know :-)) and it's at the Royal Opera House in London so it promises to be an exciting event in an interesting venue. The registration link is over here - I'm hoping to be down there myself as I'm...
  • Calling Services from XBAP Applications

    I wanted to have a play at calling services from an XBAP application. Say I want to build a simple search page and I want to gather the top 10 hits from MSN Search and the top 10 from Google search and I want to bring at most the top 10 of these 2 together removing any duplicates. Both MSN Search and Google search have web services APIs so I can quite happily point Visual Studio 2005 at those services and build "ASMX" proxies that can be called from partial trust environments. However, I think that under default Code Access Security settings an XBAP application only has access to its site-of-origin so this means that by default my XBAP is not going to be able to call either of these services because the XBAP will come from www.mtaulty.com and the services do not. So, I need to host something at www.mtaulty.com that redirects requests through to these two services for me. I built a simple implementation of IHttpHandler which essentially takes a parameter on a query string; url=0 url=1 and it uses that parameter...
  • WPF ScrollBarVisibility.Disabled and ScrollBarVisibility.Hidden

    I learnt to my cost that there's a big difference between ScrollBarVisibility.Disabled and ScrollBarVisibility.Hidden with WPF today. I'm trying to present a simple list and there's some text in each list item and the text may well be wider than the space available to display it and I just want it to wrap. So, I have something like; < ListBox Width = " 80 " Height = " 100 " > < ListBoxItem > < TextBlock TextWrapping = " Wrap " > Hello There This Is a Long String </ TextBlock > </ ListBoxItem > </ ListBox > And what I want is for that text to wrap when it doesn't have enough space to display. I don't want it to scroll. I played with the template for my list box and found my way of doing it was to do; < Grid xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > < Grid.Resources > < ControlTemplate x:Key = " ListBoxControlTemplate1 " TargetType = " {x:Type ListBox} " > < Border >...
  • The Next Generation User Group (of Coventry)

    Richard Costall, Dave McMahon and John Price (collectively known as "The Coventry Three") have put together a new user group and are keen to attract your interest. Check out http://www.nxtgenug.net/ to see what the guys have put together and what they're planning to be up to in the future. The Coventry Flying Club venue that the guys have been associated with in the past looks to have survived but it's exciting (!) to see that there's a new Birmingham venue. The first event is to be on the 15th May in Coventry with a follow up in Brum on the 22nd May - topics look to be ASP.NET 2.0 Localisation and Code Access Security. I've not been invited (sniff) to speak at this group but I'm hoping that might change in the future, always enjoyed going down to visit these guys and it's not a million miles from where I live (well, at least it's not as far as London :-)).
  • WinFX Event at Microsoft, Reading on the 10th May

    There's a great event happening on the 10th May down at the Microsoft Campus in Reading. It's an evening of WinFX and you can register for it here. http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=118771409&Culture=en-GB It promises to be a great event, the speakers are Parimal Deshpande who's a Product Manager on the Windows Presentation Foundation team in Redmond, Mr Morgan Skinner who's a long time former colleague of mine (across 2 companies now :-)) and WS- BenjaminMitchell . Should be a good night.
  • Practical .NET 2 and C# 2

    I've just finished reading a book by Patrick Smacchia called " Practical .NET 2 and C# 2 ". I picked it up a few months ago but it's a pretty weighty book so it takes some time to get through it. The main thing that impressed me about the book is its combination of an enormous scope alongside a good level of depth. Just about every .NET topic that you might think of is in there from introductions to the assembly metadata tables through to discussions on localisation, threading, security, Windows Forms, Web Forms, Web Services and an interesting section of the book which talks about the C# language and does a comparison to C++ which is something that I haven't seen before. The other thing that I think is quite different about the book is that Patrick's quite happy to point to online resources to flesh out some of his chapters and so will quite frequently reference MSDN articles written by other authors in order that a reader can go away and get more info - good idea :-) The book's targetted at the beginner/intermediate...
  • Would you like to download and install Microsoft WinFX Runtime Components?

    For the first time today I visited a site that had a WinFX XBAP application present on it and because I'm on my home machine rather than my work machine and it doesn't have WinFX, my browser (IE7) popped up and said; "Would you like to download and install Microsoft WinFX Runtime Components?" I thought that was pretty cool (naturally, it's necessary I just didn't think it was something that was "done" at this point). I clicked the "install now" button and the 20MB download springs into life. I got about 200KB/sec down my broadband and the download took about 2 mins or so. Once the 20MB was downloaded it took about a further 3 minutes or so. I'm also glad to report that it didn't involve a reboot which is very good news for me. So, all in all - WinFX == 5 mins on my machine. Of course, 5 secs would be better but I can easily live with 5 mins :-)
  • Playing with Expression Interactive Designer

    I've been playing with the Expression Interactive Designer quite a bit of late (and a little bit with the Graphic Designer as well) and I've been really enjoying it although I must admit that it crashes from time to time (but, hey, it's a preview and you can generally still do what you want to do). I've learnt quite a lot about how you go about certain tasks with it although I think I've still a long way to go but I managed to build a very basic application with it and so I thought I'd share it here. It's an XBAP application so it runs in the browser and, like most of my applications, it helps with viewing the MSDN Nugget Videos that we publish to here as a web page and here as an RSS feed . In order to run the application you need to follow this link (requires WinFX Feb CTP runtime installed). What's really impressed me is the way in which I can work with a project file in the Interactive Designer and then quickly switch back and forwards to Visual Studio and hack around a little in there before switching back...
  • More Workflow Videos

    It looks like the "powers that be" ;-) have published some more of the little videos I made around Workflow Foundation. Here's some copied HTML and apologies for the shoddy formatting. Windows Workflow Foundation: Transactions • Watch as a streaming file • Download as a zip file (6.98 MB/24 mins 37 secs at 56 Kbps) Windows Workflow Foundation: Workflow to Host Communication • Watch as a streaming file • Download as a zip file (5.46 MB/19 mins 30 secs at 56 Kbps) Windows Workflow Foundation: Host to Workflow Communication • Watch as a streaming file • Download as a zip file (8.04 MB/28 mins 43 secs at 56 Kbps) Windows Workflow Foundation: Two-Way Host/Workflow Communication • Watch as a streaming file • Download as a zip file (8.08 MB/28 mins 52 secs at 56 Kbps) Windows Workflow Foundation: State Machine Workflows • Watch as a streaming file • Download as a zip file (5.46 MB/19 mins 30 secs at 56 Kbps) Windows Workflow Foundation: Custom Activities • Watch as a streaming file • Download as a zip file (7.78 MB/19...
  • UK Microsoft Technical Roadshow 2006

    It's that time of year again :-) The UK Technical Roadshow has been announced and it's running in the following venues on the dates listed; Date Location Venue 03/05/06 Birmingham National Motor Cycle Museum 23/05/06 Edinburgh Dynamic Earth 07/06/06 Manchester Manchester Conference Centre 14/06/06 London (City) Inmarsat Centre 20/06/06 Bristol The Watershed I'd advise that you register sooner rather than later as the Roadshow slots have always filled up in previous years and I know for a fact this year that we are mostly in venues that are smaller than ones we've used in the past. One of the challenges for these kinds of events is trying to include as many of the technologies that we think people have a keen interest in but so that you're aware of what we were thinking about the focus this year is around WinFX - Presentation, Communication and Workflow and also around Windows Vista, the 2007 Microsoft Office System and the Atlas technologies. All in all, there should be something for everyone. I hope to see you...
  • Keith Brown on InfoCard

    Keith Brown has a brief introductory article to InfoCard over here at MSDN . I'm hoping that InfoCard will be a big success as I think it's a technology that there's a strong need for right now but, naturally, usage will depend on many things beyond the technical merits.
  • Nice Video Illustrating WPF and Expression

    This Channel 9 Video is really well worth watching as an introduction to WPF, XAML and Expression. Really worth 20 or so minutes of your time.