October 2007 Entries

Scene it

It's another games post I'm afraid, but I do actually have some rants on technology coming up. Sorry if you're on the WPF team I have a few bad comments coming even though I think it's the best thing ever. Anyway... So, there's a demo on Xbox live marketplace for Scene It. Basically it's the same as the DVD based quiz, but on the right medium (DVD sucks for that kind of quiz, a console is perfect) and, well, I consider myself to be a movie buff. You can play the demo without the special controllers, which are basically just a...

There's two Es in Judgement you know

There's a new PS3 game that actually does something new. Eye of Judgment (now I'm all for humouring Americans, but you really do need the E there guys or the word has to be said differently. It's how language works folks) is one of those card games that Wizards of the Coast make, but this time it's a really quite clever mix of cards, the Playstation Eye (a webcam) and image recognition. This type of card game is basically about selling cards to players as you get a random mix of cards in each booster pack. Although there's only 100...

.NET source code?

Yeah, sure we all just use reflector anyway, but according to Scott Guthrie we'll be able to step into the source code of certain parts of the .NET framework with VS.NET 2008. "We'll begin by offering the source code (with source file comments included) for the .NET Base Class Libraries (System, System.IO, System.Collections, System.Configuration, System.Threading, System.Net, System.Security, System.Runtime, System.Text, etc), ASP.NET (System.Web), Windows Forms (System.Windows.Forms), ADO.NET (System.Data), XML (System.Xml), and WPF (System.Windows).  We'll then be adding more libraries in the months ahead (including WCF, Workflow, and LINQ).  The source code will be released under the Microsoft Reference License (MS-RL)." I can't even...

WPF Binding to RichTextBox.Document

I was getting some nice crashes on startup while trying to do some data binding to the Document property on RichTextBox under WPF and so I hit the net and found out that it's not possible. I quickly came up with the following code, which seems to work: class BindableRichTextBox : RichTextBox{    public static readonly DependencyProperty DocumentProperty = DependencyProperty.Register("Document", typeof(FlowDocument), typeof(BindableRichTextBox), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnDocumentChanged)));     public new FlowDocument Document    {        get { return (FlowDocument)GetValue(DocumentProperty); }        set { SetValue(DocumentProperty, value); }    }     static void OnDocumentChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)    {        RichTextBox rtb = (RichTextBox)obj;        rtb.Document = (FlowDocument)args.NewValue;    } }...