WPFWindow not working (black screen) with Display N18 + FEZ Spider II version 1.0?

WPFWindow not working with Display N18 + FEZ Spider II version 1.0? It’s supposed tio work, right?

I’ve tried several snippets of code that’s supposed to show something, including this:

            displayN18.BacklightEnabled = true;
            Window window = displayN18.WPFWindow;
            Canvas canvas = new Canvas();
            window.Child = canvas;
            Font baseFont = Resources.GetFont(Resources.FontResources.NinaB);
            Text text = new Text(baseFont, "This is my life!");
            Canvas.SetTop(text, 50);
            Canvas.SetLeft(text, 90);


(with and without updatelayout)

What I can do is draw stuff with bitmaps and the draw method or via simplegraphics. This works fine. I want WPF though :wink:

PS: I did try what John suggested in this post: https://www.ghielectronics.com/community/forum/topic?id=11748 (referencing displayn18 project).

@ pantera9 - Using the FEZ Spider II and Display N18 on the latest SDK, your code worked fine for me with no changes. Have you verified that the N18 works by using SimpleGraphics? Are your firmware and SDK up to date?

@ John - Yes, it’s up to date, latest SDK. And here’s the FEZ config output:
Loader (TinyBooter) version information: on this computer. on this device.

The Loader (TinyBooter) is up to date. <<<
Firmware (TinyCLR) version information: on this computer. on this device.
The Firmware (TinyCLR) is up to date. <<<

Yes, simplegraphics is working, so atleast I have some way of displaying stuff, but I want wpf :wink:

If it’s relevant, here’s what’s connected:
this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(1);
this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(4);
this.wifiRS21 = new GTM.GHIElectronics.WiFiRS21(6);
this.breadBoardX1 = new GTM.GHIElectronics.BreadBoardX1(11);
this.button = new GTM.GHIElectronics.Button(5);
this.button2 = new GTM.GHIElectronics.Button(10);
this.displayN18 = new GTM.GHIElectronics.DisplayN18(9);
this.tunes = new GTM.GHIElectronics.Tunes(8 );

I’ve also tried to comment out all other code to get the wpf stuff to work, but no luck :confused:

@ pantera9 - Start a brand new project and connect just the Display N18. In ProgramStarted(), put just the code you sent in your previous post. Those steps worked for me.