Mike Taulty's Blog
Bits and Bytes from Microsoft UK

September 2008 - Mike Taulty's Blog

Blogs

Mike Taulty's Blog

Elsewhere

  • Surprised by WPF DataGrid :-)

    Here's what I did. I took the WPF DataGrid and used it in my project. More specifically; Then add a reference to the DataGrid's assembly ( I have mine in d:\wpftoolkit\ ); Then "built a UI" which is an overstatement :-) < Window x:Class ="BlogPost.Window1" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" Title ="Window1" Height ="600" Width ="800" xmlns:grid ="http://schemas.microsoft.com/wpf/2008/toolkit" > < Grid > < Grid.Resources > < Style x:Key ="myStyle" TargetType ="{x:Type Control}" > < Setter Property ="Margin" Value ="10" /> < Setter Property ="FontSize" Value ="16" /> </ Style > </ Grid.Resources > < Grid.RowDefinitions > < RowDefinition /> < RowDefinition Height ="4*" /> < RowDefinition /> </ Grid.RowDefinitions > < TextBox x:Name ="txtCountry" Style ="{StaticResource myStyle}" Text ="{Binding Country}" /> < grid:DataGrid x:Name ="dataGrid...
    Filed under: ,
  • PC Speakers

    I seem to be working my way down Cnet's review of PC speakers . In my office, I have these; which I've had for quite a long time and really like and I just got myself a set of these below to attach to the Media Center ( deliberately trying to avoid ending up with a big sub-woofer under my TV or going back to the 5.1 setup I've had in the past which takes over the whole lounge ); and, so far, they sound very nice ( I went for the 30W rather than the 40W ).
    Filed under:
  • 10

    There's a video up on C9 ( largely around Team System ) which announces that the next version of Visual Studio will be 2010 and the next version of the Framework will be V4.0. They can't decide whether to pronounce this; "Two thousand and ten" or "Twenty Ten" but I think I just like; "Visual Studio Ten " As part of the same video, there's the announcement that Visual Studio Team System for Developers is being integrated with Visual Studio Team System for Database - i.e. those 2 things are now packaged together and you can go up here to find out more information as to how that affects you if you have either of those editions ( it's good news as you get the other tool :-) ).
    Filed under:
  • Silverlight 2 RC Available

    From ScottGu - key thing here is that there are Beta 2->RTM breaking changes so if you have applications on Silverlight 2 Beta 2 then you need to see about moving them over to the RC in order that they'll run when we get to RTM. Also noted - new controls for ComboBox, ProgressBar and PasswordBox and all controls have a better look/feel by default.
    Filed under: ,
  • Shuttle D10 with Touch-Screen

    Hmm, speaking of Shuttle caused me to go looking at what they're currently selling. This looks really interesting to me . If you go with a "living room" Media Center then one of the odd things about it is the idea that you need to switch on your TV in order to listen to some music. You switch on the Media Center, switch on the TV, choose an album and then probably switch off the TV as that seems a bit wasteful. Having the touch-screen on there seems like a nice idea. I know there are various other cases that do this but this one looks pretty nice and I'm quite keen on Shuttles. The downside looks to be that there's only one card-slot in there. A single PCI-E card slot to take a TV tuner which is fine as long as you never want to replace the integrated graphics ( e.g. to get an HDMI output or perhaps to take on Blu-Ray at some point ) although you could perhaps drop to an external USB tuner to free up a slot. Mmmm.
    Filed under:
  • GeForce 6200 in my Vista Sp1 Media Center

    One of the very best things about Vista is Media Center. You never really hear people talk about Media Center when they talk about Vista but Media Center is one app that I can easily put hand on heart and say that, for me, in Vista it's 100% better than it was in XP. It runs my TV and it does it really well. It records the TV I ask it to and it does it around 99% of the time I'd say whereas with XP (on the same machine I hasten to add) it was about 65% of the time. It was always coming up with excuses about why it'd failed to record some series or other. So, I thought I'd give my Media Center a bit of a treat and get it a new graphics card. It'd been running with an FX 5200 with (IIRC) 128MB or RAM in it and I'd like to give it a stunning card but; They're noisy. This box is under my TV. They're expensive. So I bought another cheap card - a 6200 seeing that nVidia actually mention the 6 series on their website whereas they long since stopped mentioning the 5 series which made it tricky to find a driver beyond...
    Filed under:
  • PDC 2008 - Windows 7 Sessions Published

    Having just built my sketchy list of the sessions I'm interested in at PDC here the game just changed a little in that there are now 17 sessions on Windows 7 rather than the 3-5 that there were announced before. Time for a re-think to my agenda I suspect. So, is it the Software + Services PDC or the Windows 7 PDC? I guess the S + S guys would say "Windows 7 is all part of S + S" but then I guess they can legitimately say that about any technology out there :-)
  • WPF 3.5 Sp1 - Now I'm Trying to Write Pixel Shaders :-S

    I've been quite content up until today to say "I can't write Pixel Shaders" and "I don't know what High Level Shader Language" is. But I thought I'd have a crack at it. Turns out, it just looks like C whereas I expected it to look like assembly. I read a bit from here; http://blogs.microsoft.co.il/blogs/tamir/archive/2008/06/17/hlsl-pixel-shader-effects-tutorial.aspx which is a great resource for starting and then I decided to give it a whirl. Following this post and downloading the DirectX SDK led me to this masterpiece ;-) sampler2D input : register(s0); float factor : register(c0); float4 main(float2 uv : TEXCOORD) : COLOR { float4 Color = tex2D( input , uv.xy); Color.rgb = Color.rgb * abs(sin(uv.x * 3.14 * factor)) * abs(sin(uv.y * 3.14 * factor)); return (Color); } lined up with this piece of C# brilliance :-) using System; using System.Windows.Media.Effects; using System.Windows; using System.Windows.Media; namespace ShaderEffects { public class MikeEffect : ShaderEffect { private static PixelShader _pixelShader...
    Filed under: ,
  • WPF V3.5 Sp1 and Effects - A Bit of an Embarrassing Gaffe

    Update ( 30/09/08 ) : I had this wrong at least twice. I've tried to fix it now. When it comes to WPF V3.5 Sp1, I've been showing people a lump of XAML to demonstrate the improvements in effects rendering and I think I've just realised today that I've been showing them the wrong XAML file. Now, on the one hand this is a bad thing in that I've been showing people the old effects by mistake. On the other hand this is a good thing because it turns out that I was showing them the new effects without realising it. I seem to remember in the past that if I did something like this; < Page xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" > < Grid > < MediaElement Source ="c:\users\mtaulty\desktop\liquid.wmv" > < MediaElement.BitmapEffect > < BlurBitmapEffect Radius ="{Binding ElementName=mySlider,Path=Value}" /> </ MediaElement.BitmapEffect > </ MediaElement > < Slider x:Name ="mySlider" VerticalAlignment...
    Filed under: ,
  • ASP.NET 3.5 Sp1 Dynamic Data

    There's lots of stuff written around dynamic data elsewhere so I won't duplicate it here. I did a little bit of experimentation with it today rather than just watch Mike walk me through it. My first surprise in springing up dynamic data was this dialog; It looks like I have to choose between a "Dynamic Data" web site and a "Dynamic Data Entities Web Site". That seems a bit odd to me. If you look at what the ADO.NET Data Services folks did in terms of being "data neutral" then you get to; Expose any object graph read-only you like as long as it has a few necessary attributes on it Expose LINQ to SQL data read-only ( again possibly needing a few attributes ) Expose either ( 1 or 2 ) read-write by adding IUpdatable Expose LINQ to Entities data read/write by default. So, there's a pretty nice story around being data source neutral. It makes for a simple demo where you can just take a few CLR types and expose them over REST without having to get into any other data access technology. It looks like Dynamic Data doesn...
    Filed under:
  • WPF Effects & Shaders

    Just blogging this link to Adam Kinney's blog which has some great resources about effects/shaders in WPF V3.5 Sp1. I've had this link open in my browser for 3 days so I need a place to park it permanently so I don't lose it; http://adamkinney.com/blog/365/default.aspx
    Filed under: ,
  • The Strange Case of the RouteValueDictionary

    In playing with ASP.NET routing, I came across this really weird piece of code in a class called RouteValueDictionary which I can reproduce here; RouteValueDictionary dictionary = new RouteValueDictionary( new { key1 = "value1" , key2 = "value2" , key3 = "value3" }); foreach (var item in dictionary) { Console.WriteLine( "{0} = {1}" , item.Key, item.Value); } I scratched my head over this quite a bit when I first saw it as the usage was as above in that it seemed to be adding a single instance of an anonymous type to a dictionary as a way of populating that dictionary. It had me wondering "So, where's the key coming from and where's the value coming from?" You can probably guess that what the constructor for RouteValueDictionary actually does is to reflect on the object that's passed to it and it turns each property name into a key and each property value into a value in the dictionary. Is it me - or is this a case of anonymous type abuse? Seems really ugly to me but perhaps there was some devious reason for it...
    Filed under:
  • Enjoying ASP.NET 3.5 Sp1 Routing

    I'm not a web developer. Anyone that knows me knows this. I'm bad with ASP.NET Web Forms these days in that I understood it when it shipped back in 2002 and I've kind of lost track of it in the meantime although I can talk about it at "some level". I think I was ok up until V2.0 but when all the AJAX bits started to creep in I started to get a bit vague as to which control is generating which lump of script :-) Speaking of which, I can write a bit of JavaScript but it's not my skill and I fight against it rather than really enjoying it. I like the compiler to find my errors rather than sit staring at a screen for hours because I got some little tiny bit of case-sensitivity wrong somewhere. That's not to say that I don't like the web, of course :-) I like the web as a service infrastructure for my HTTP/WCF/ASMX/Astoria services and I'm pretty happy with Silverlight's richer web UI as, for me, the developer model offered by .NET is more in line with what I'd hope for than the "developer model" offered by HTML+Javascript...
    Filed under:
  • 5 Weeks to PDC 2008

    PDC draws nearer and nearer. I have my plane, I have my registration, I'm good to go. The latest countdown video hosted up; here gives some more information as to what's coming and themes this PDC it being the "Software + Services" PDC. One of the challenges with a conference like PDC is how to distribute all the software that is being given out to an attendee. The PDC guys have come up with a cool way of doing that this year in that they're giving each attendee a 160GB external hard-drive with all the bits on it so you don't have to be fumbling around with DVDs and so on that you've lost down the back of the drawer in the office. The session list has been growing and growing up here . I couldn't find a great way to export a session list but my own list looks something like this right now; A Lap Around Building Block Services Architecture of the Building Block Services Live Platform: New Developer Services and APIs Live Platform: Building Mesh Applications Live Platform: Mesh Services Architecture Deep Dive Messaging...
  • REMIX UK Follow Up - "Beyond Silverlight with WPF"

    Just in case someone lands here looking for resources from my REMIX UK talk last week (the WPF talk rather than the Silverlight talk ). There's some links here; Windows Presentation Foundation, Event Samples
    Filed under: ,
1 2 3 Next >