Mike Taulty's Blog
Bits and Bytes from Microsoft UK

October 2008 - Mike Taulty's Blog

Blogs

Mike Taulty's Blog

Elsewhere

  • PDC Day 2 - 2 is bigger than 1

    Day 2 of the PDC keynotes was much more engaging and exciting for me than day 1. There's some very cool stuff around; Windows 7 WPF Silverlight Live Mesh VS 2010 Office 14 Well worth watching at; http://www.microsoftpdc.com and some of the Azure stuff became more "real" to me by having some people get up and write code against it rather than just using slides.
  • Silverlight 2 and Localisation/Globalisation

    Localisation/Globalisation isn't my subject and it's a gnarly old topic so I generally leave it to folks like Guy who has a specific interest in that area, knows his onions and wrote the book! :-) However, a couple of things sparked my interest here. One was because a customer was asking me about it earlier this week and I hadn't really looked at it other than to expect it to work much like the regular .NET Framework. Then I saw Tim's post over here and that sparked more interest so I thought I'd take a dig in and see if I could get a bit of understanding. Generally, when I think of globalisation/localisation I think of CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture and how one drives the formatting for dates, times, decimals and so on and the other drives resource lookup. This is explained up here for Silverlight; Globalisation based on CurrentCulture Localisation based on CurrentUICulture but straight away I was foxed by the feature. I wrote a little code to see how CurrentCulture and CurrentUICulture...
    Filed under: ,
  • New WPF Perf Tools

    Available up here .
    Filed under: ,
  • PDC Day 1 - Ozzie's Keynote - "Operating System for the Cloud"

    Hey, I was going to write up Ray's session but, really, what's the point? No way I can make it better than you'll get by popping up here; http://www.microsoftpdc.com and watching it yourself.
  • PDC, Day Minus 2

    Made it to the PDC - a journey that really began on Thursday as I was doing an event in London on the Friday and L.A. is a journey that has to start in London. It's nice to see sunshine again - forgotten what that looked like :-) Tomorrow is "Day Minus 1" with the pre-con sessions - I'm going along to the concurrency track. There's a site already up and running where you can follow progress; http://www.microsoftpdc.com/
  • MSDN "Roadshow Rerun" in London

    Thanks to all the people who came to our re-run of the MSDN Roadshow that went around the country earlier in the year - this was a bunch of sessions on; ADO.NET Entity Framework and Data Services ASP.NET MVC, Dynamic Data and other enhancements in VS 2008 Sp1 Silverlight V2 Visual Studio Team System and happened in our London office today. My slides on Silverlight V2 are here for download in PPTX format - other formats will no appear on the post events site . A few questions that came up that needed code-samples as answers ( interestingly, these were both WPF ). These were put together very quickly so apply a pinch of salt as I haven't spent a lot of time here. 1) Can ObservableCollection<T> cope with a particular element being replaced? Not Added. Not Deleted. Replaced. Answer is "yes". Not 100% sure if I've got the question right but if I've got a UI that looks like this; < Window x:Class ="WpfApplication1.Window1" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas...
  • Astoria Online/Offline

    Tantalising post from the Astoria team.
  • WPF and Lenovo

    When I get a new laptop (or any PC) if it comes pre-loaded with software then I wipe it and start again as, generally, you can get stuck with what now seem to be called (cr)applets from someone who pre-installed the OS for you. When I got my OS up and running on my Lenovo T61p, I installed the drivers from Lenovo and then I found that I ended up with a bunch of applications that look something like this; and initially I thought that I'd somehow managed to install the wrong software but, over time, I've come to like these applets. Why is it that I like them? They seem to have a certain aesthetic to them and a responsive way of behaving that I don't expect from basic, driver-installed applications like this. I expect them to be dull and boring but these ones seem to have nice UI and nice effects when I interact with them. Today I got to puzzling over how these things are built and so off I went into Process Explorer and found that they're actually built with WPF. I then took one ( PWMUI.exe ) and dropped it into...
    Filed under: , ,
  • Developer Day 7

    Registration is open for the 7th Developer Day on Saturday the 22nd November at the Microsoft Campus in Reading. and the link for the website with the agenda is up here; http://www.developerday.co.uk Hope to see you there and don't delay on that registration, it tends to fill very quickly.
    Filed under:
  • Updated Nibbles Tutorial Site for Silverlight 2

    Looking better than ever ( and it always looked great );
    Filed under: ,
  • WPF, Experiments with the CodePlex Shader Library

    I took the Pixel Shader library from CodePlex which has a bunch of WPF 3.5 Service Pack 1 Pixel Shaders and I built a little toy application from it. What the application does is to try and enumerate all the ShaderEffect s in the library and then take a picture of your desktop and apply the effects to it one at a time. It does this by overlaying a full screen, top-most window which it then paints with an image which is a copy of the desktop. The current effect is then applied to that image. You can see some examples below; That's a snapshot of my desktop with swirl, ripple and zoom blur applied. In order to move to the next effect you hit SPACE and in order to quit the application you hit ESC. For each effect I make an attempt to reflect on to the effect and try and guess what properties it has that might be parameters to the effect. Specifically, I try and find double, int, Color, Point and Size properties. For each of those, I dynamically create a control which will bind to that property ( mostly using sliders...
    Filed under: ,
  • Silverlight 2, Html DOM Interoperability ( 2 )

    Following on from this post , I changed the library code that I was using a little to make the job of creating HTML ( specifically in my case a table ) in Silverlight 2 easier again. If I want to get hold of a div called myDiv and create a table within it then I can do ( as an example ); HtmlElement el = HtmlPage.Document.GetElementById( "myDiv" ); el.Add( new HElement(HElementType.table, new HElement(HElementType.tbody, new HElement(HElementType.tr, HElement.Replicate(HElementType.th, "Number" , "Squared" , "Cubed" )), from i in Enumerable.Range(1, 10) select new HElement(HElementType.tr, HElement.Replicate(HElementType.td, i.ToString(), (i * i).ToString(), (i * i * i).ToString()), new HElement(HElementType.td, new HElement(HElementType.input, new HAttribute(HAttributeType.type, "button" ), new HAttribute(HAttributeType. value , "click" ), new HEventHandler(HEventType.onclick, (s, a) => MessageBox.Show( string .Format( "You click on row number {0}" , i))))))))); I changed the supporting classes around a little...
    Filed under: ,
  • Silverlight Screencasts

    Just a note - I updated the app up at www.silverlightscreencasts.com to the RTM version of Silverlight. Note, that does not mean that I updated the video content which is still on beta 2 and I added a note to the app to make that clear. It took me around 25 minutes to move from beta 2 to RTM and the main problem that I encountered was that I'd written some library code that was doing bad things with Storyboards that the beta used to allow and the RTM wouldn't and it took me a little work to hack myself out of the hole that I'd dug. Mike mentioned that the app takes a while to load and it does. That's mainly because there's a pretty large XML file embedded in it so don't blame the load time on Silverlight - it's my fault :-)
    Filed under: ,
  • Silverlight 2, Html DOM Interoperability

    I like the HTML DOM interoperability in Silverlight, I spent quite a lot of time in my UK REMIX talk (up here http://www.microsoft.com/uk/remix08/agenda.aspx on day 2) demonstrating various things that we can do with it and it's very, very rich and powerful. Like it. Like it. Like it :-) However, it doesn't half look like the HTML DOM! I know that's a daft thing to say, that's what it's meant to look like so you'd expect nothing else but recent advances in API's such as LINQ to XML have left me not wanting to do that kind of DOM based programming any more. Here's a "for instance". Imagine that I'm in the .NET world and I create a brand new Silverlight project and I've created this "UI" in XAML; < UserControl x:Class ="SilverlightApplication5.Page" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" > < Grid x:Name ="LayoutRoot" Background ="Gray" > < TextBox x:Name ="txtPerson" MinWidth ="192" FontSize ="36" Margin ="20" Text...
    Filed under: ,
  • Silverlight 2

    Has RTM'd ( as you might have noticed :-) ). Tim has a great blog post here which covers it all and he links to Shawn’s post about his teams plans for controls which talks about additional controls. Nothing that I can add right now - just in the process of moving to the released bits.
    Filed under:
1 2 3 Next >