Mike Taulty's Blog
Bits and Bytes from Microsoft UK

November 2008 - Mike Taulty's Blog

Blogs

Mike Taulty's Blog

Elsewhere

  • Various Links

    I've been catching up on my blog reading...interesting stuff I came across; PNRP in Windows 7 being used for "remote assistance" . Sounds very cool. You can find a few PNRP examples on this blog if you search. Seadragon in AJAX from Live Labs - if you've seen DeepZoom in Silverlight then this is the same underlying technology (AFAIK) without the Silverlight part. Themes for WPF released on CodePlex ( a port of the Silverlight versions from the Silverlight Toolkit ). There's also a port of the charts up here . If you've not seen it yet, the WPF Toolkit got rev'd with the toolkit now containing the DataGrid, Calendar and DatePicker and the Ribbon preview being available off the same page. I thought I'd written a post about this but I've just realised it didn't get past the preview stage :-) ScottGu's update on Silverlight 2 and Silverlight 3 - some of that stuff "surprised" me in terms of what's being revealed here! VS2010 code editor is being drawn with vectors and WPF - Kenny spots it and enjoy vectors :-) Celso...
  • Silverlight: Design-Time Extensibility

    Just a link but what a link! If you're interested in design-time extensibility for Silverlight controls then; this post is what you want.
    Filed under:
  • WPF: Experiment with Text Animation

    I wanted to experiment with text animation. Specifically, I wanted a control that would display some text and have the option of "exploding" that text in the sense of taking each word in the text and randomly animating it in terms of; translation rotation scale opacity so that the words that make up the text can seem to "fly in" all at once to their final position on screen. Perhaps a UI will help; Here, my control is in the blue border occupying the bottom 3/4 of the window. Naturally, none of the styling is fixed. The other controls on the Window just provide; Text Whether the control initially displays its text "exploded" or not How long the animation to bring the text into place should take and those controls all data-bind to properties on my control with the TextBox only being set to transfer its value on a loss of focus rather than on every keystroke. When I hit (in this case) the Implode button there'll be a 5 second animation which does; to bring the words into place and (naturally) Explode just does the...
    Filed under:
  • Visual Studio 2010 Resources

    This post is a companion to a little article that I wrote for the UK MSDN Flash about Visual Studio 2010 with some resources to get you kick-started. It's not meant to be definitive. What? You don't read the MSDN Flash? Sign up . The first thing I'd say is that you need to take a look at this area on Channel9 and subscribe to it; http://channel9.msdn.com/VisualStudio/ and also check out the Visual Studio 2010 and .NET Framework V4.0 week here; http://channel9.msdn.com/posts/VisualStudio/Visual-Studio-2010-and-the-NET-Framework-40-Week/ If you're looking for a CTP to download then you need to look here - it's in VPC form and it's big so download over a weekend or something; http://www.microsoft.com/downloads/details.aspx?familyid=922B4655-93D0-4476-BDA4-94CF5F8D4814&displaylang=en and there's a preview of the VS 2010 Training Kit (demos, labs, presentations) which you can get from here; http://www.microsoft.com/downloads/details.aspx?FamilyId=752CB725-969B-4732-A383-ED5740F02E93&displaylang=en If you're...
  • Xbox 360: New Xbox Experience Today

    I'm not a big gamer. I hadn't turned my Xbox on for about 3 months before I recently bought Far Cry 2 which I'm playing through and really enjoying. I'm also thinking of Mirror's Edge as I played a preview of that and it looks really cool. However...today is the launch of the New Xbox Experience which looks pretty cool and has one particular feature that sounds very attractive to me - the ability to install a DVD based game to the hard-drive. I really want to try that out - with the best will in the world, the Xbox DVD drive ( like most DVD drives ) makes a lot of noise and so I'd expect that a game coming from the hard-drive would be a lot quicker and a lot quieter. Hopefully, I'll get to give the NXE a whirl later today :-)
    Filed under:
  • WPF and "Twistori": Part 7 (of 7 :-))

    Following on from the previous post I had one last thing that I wanted to do. At the moment, when my application moves from one feed item to another, it simply hides the UI displaying the feed item and then shows it again at a later point which is a bit "dull". It'd be nice if it did some kind of transition. I figured that I'd use the Shader Effect Library from CodePlex for this so I downloaded it and then added a reference to the ShaderEffectLibrary from my project; Now I can make use of an effect on my user control. Picking a ripple effect, I can make sure my XAML can "see" the library; xmlns:effects="clr-namespace:ShaderEffectLibrary;assembly=ShaderEffectLibrary" and then I can add an effect to my declaration of my user control in my main UI as in; < local:ItemDisplayControl x:Name ="displayControl" Visibility ="Hidden" ControlReady ="OnItemDisplayReady" Grid . Column ="1" Margin ="1in" HorizontalAlignment ="Center" VerticalAlignment ="Center" > < local:ItemDisplayControl.Effect > < effects:RippleEffect...
    Filed under:
  • WPF and "Twistori": Part 6

    Following on from this previous post there's a few things wrong with where I've got to so far and some improvements that I'd like to make; I'd like to display something when there's no new feed items available. I'd like some kind of transition when one feed item moves to another. I'd like to avoid displaying an empty user control when the application starts up. That is, this doesn't look great; whilst I'm waiting for the first item to come in and, finally, There's a problem with images. I'm loading an image over the web and I need to know when it's loaded otherwise the image goes on the screen before it's really loaded and then updates whilst the user is looking at it and that doesn't seem right at all to me :-) So, 4 things to fix even if the last one is called (1) just like the first one - I can't work list numbering in Live Writer :-) Dealing with the first issue isn't too difficult - my AtomFeedManager class fires a FeedItemUnavailable event so I could just add code to the handler for that which manufactures...
    Filed under:
  • WPF and "Twistori": Part 5

    Following on from the previous post I wanted to take the UI that I have so far; and attempt to style that ListBox over on the right hand side. The first thing I'd do with it is to remove its background; which stops it being a big white area of the screen. Then I altered its border to use a linear gradient brush. With that in place, I want to change the template for the CheckBox that is being displayed by the ListBox so I need to go and edit the ItemTemplate for the ListBox which I created in a previous post by just putting a Grid and a CheckBox in it; and so the item template just looks like this; and what I can then do is to edit the template of that CheckBox to replace it with my own "design" as in; The template for the CheckBox looks like this; and it has some triggers in that you can see certain actions being taken when the element HasContent or IsEnabled - these are probably not so relevant for me and will almost certainly disappear in my template but they are as below; I want a template that's more based...
    Filed under:
  • WPF and "Twistori": Part 4

    Following up on this post it's time to make the thing look a little bit better than it does right now. Some of this will be purely cosmetic, some of it will end up requiring some code changes. In the first instance, I'll go for some "cheap wins". I'll open up Expression Blend with my project and, first off, I'll go and grab a Windows-themed wallpaper from www.hdwallpapers.net (in the Computer section) such as this one; then I go to my project in Blend and add an existing item; and add that Image into the project. Having done that, what I usually do is right mouse on it to insert it into the scene; with the image in the scene, I make sure it's selected and then I used Tools->Make Brush Resource to create myself a new ImageBrush; With that created, I go and delete the image from the scene (not from the project!) and then I can go to the Window and set its background to be the Image Brush I just created as in; and so now I've got a nice(r) background. From there, it'd be nice to style my ItemDisplayControl UserControl...
    Filed under:
  • WPF and "Twistori": Part 3

    Following on from my previous post , I wanted to create a WPF UI around what I'd done so far. I'll step through this one a little bit. Making a new project; adding a reference to my library for using twitter feeds; now I want my WPF Window to maximise itself on the screen and to be the topmost window so I'd play with settings to achieve that and change the Window title whilst I'm there (even if it's not displayed). < Window x:Class ="BlogPostTwistori.Window1" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" Title ="Mike's Twistori-Like App" Topmost ="true" WindowState ="Maximized" WindowStyle ="None" > < Grid > </ Grid > </ Window > Now maximised windows can be a pain to debug so I'd probably switch off Topmost whilst I'm working on the code and also it'd be nice to have a way to get rid of the application by pressing the ESCape key. If WPF defined an ApplicationCommands.Exit command then I think you'd be able to...
    Filed under:
  • WPF and "Twistori": Part 2

    Following on from the previous post , to get this work started I wanted to build a little library that supported what I wanted to do with the Twitter API. There's probably already a .NET library out there but I didn't search for it and my needs were fairly small and specific. The first thing that I wanted to do was to build a custom configuration file section to represent my configuration. In my configuration I wanted to be able to set; The language to use for searching twitter The set of search terms to search for. I wanted each search term to have the configuration options of; On/Off - i.e. isIncluded when we do searching Filter - i.e. I wanted to be able to filter to only include "positive" tweets, "negative" tweets, tweets that are explicitly either "positive" or "negative" and then "all" tweets. I don't know what you do when you want a custom configuration file section but I know what I do. I use the Configuration File Section Designer which I wrote about here . If you don't use this designer then I guess...
    Filed under:
  • WPF and "Twistori": Part 1

    I don't really use Twitter but I'm surrounded by folks that do and I'm more and more aware of its impact as if you turn up to any kind of event or gathering these days then you'll know that someone will come along and say whether it's being reported well/badly in the various tweets that it's generating. Because of this, I wasn't aware of "Twistori" but Marc pointed it out to me the other week and said that it'd be cool if we had an internal application that did something similar that we could maybe use to display on a plasma TV somewhere or perhaps on a projector. So, I set about building something simple with WPF that uses the Twitter (RESTful) API ( I stress that word "simple" as I didn't really want to go off into days and days of effort :-) and so I thought I'd share that here. Ultimately, the application ended up looking like this; and it has an application configuration file that looks like this; <? xml version ="1.0" encoding ="utf-8" ? > < configuration > < configSections > < section...
    Filed under:
  • Windows 7: Starting at the Beginning

    My previous post around the location and sensor platform in Windows 7 came a little bit out of context so apologies for that although I have since watched the PDC session and it's well worth watching. However...if you want to start at the beginning with Windows 7 then there's the Developer Guide which you can download from here; Developer Guide and you should also make sure that you're subscribed to Yochay's blog which is up here; The Windows 7 Blog for Developers
  • Windows 7: Sensor and Location Platform

    One part of Windows 7 is the new capability for applications to be location and sensor aware. There are new standardised API's for an application to interact with location sensors in order to figure out where in the world the user is and there's also API's to determine things like; Ambient light Orientation There's a lot more detail up at the platform's home page up here; http://www.microsoft.com/whdc/device/sensors/default.mspx and then there's information up on the blogs here; http://blogs.msdn.com/semantics/default.aspx http://blogs.msdn.com/jimtravis/ http://blogs.msdn.com/gavingear/ including a sample location-aware application written in WPF here; http://blogs.msdn.com/semantics/archive/2008/11/04/sample-location-aware-wpf-application.aspx that makes use of the Virtual Earth WPF control that I wrote up here; http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2008/10/09/10822.aspx Very cool stuff - there's also the PDC session up here; http://channel9.msdn.com/pdc2008/PC25/ which walks you...
  • A Tour of WPF

    Back in 2005/2006 I spent quite a lot of time going around introducing WPF at various conferences and user groups and companies and I haven't really done so much of that "introduction" type work since. I've done a bunch of stuff with WPF and a bunch of talks about its enhancements in V3.5 and V3.5 Sp1 but I've not had to go back and do an "intro" for a while. I did one today for a company and so I had to put some things together and I thought I'd share them here in case they're of any use to you - some of these are deliberately very simple and I don't think the coverage is complete but it might be a starting point for something that you're doing. Firstly, here's my slides. There are some things missing but, hopefully, most of them are detailed on the slide that says "other topics" or something like that. Slides in PPTX Format (zipped) Slides in PPT Format Secondly, here's my demos. In order to use them you need to have a few files in place; c:\temp\video.wmv c:\temp\picture.jpg c:\temp\track.mp3 you can use whatever...
    Filed under: ,
1 2 Next >