SATA II (SATA-2) cable
Mad dialogs
Accepting keyboard input in Silverlight
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="Page_Loaded"
x:Class="SilverlightProjectKeyEcho.Page;assembly=ClientBin/SilverlightProjectKeyEcho.dll"
Width="640"
Height="480"
Background="White"
>
<TextBlock x:Name="TextBlockEcho" Text="Hello there"></TextBlock>
</Canvas>
{
int keyCode = (char)e.PlatformKeyCode;
if (!e.Shift)
{
keyCode = keyCode + 32;
}
TextBlockEcho.Text += (char)keyCode;
}
Mix 07 UK
Day 1: 11 September 2007
Mix:UK 07 Keynote
I’d watched a number of presentations from Mix LA so the keynote didn’t really contain anything new but it did reinforce the message that Silverlight seems like a viable platform.
Total Experience Design (Paul Dawson, Matt Bagwell)
I’d made a decision to avoid low-level technical session in favour of learning about user experience design so I went along to this session. It was quite interesting and the messages I took away from the session were; people that enjoy an application will get more from it, rich experiences are becoming the norm rather than the exception.
Building Silverlight Applications using .NET – Part 2 (Scott Guthrie)
Joined the second part of this session with the hope that it would be more advanced than the previous part. Although I didn’t get an awful lot from this there were a couple of gems; 1. Multiple file uploads (worth the entrance price) 2. The use of Silverlight as a non-UI tool 3. The reliance on the browser cache (shame but I can understand it).
[Insert really good title here.] (Hoss Gifford)
A nice idea this one and Hoss seems like a good guy with a real enthusiasm for his work. The basic idea was to come clean an explain what goes wrong with (artistic) projects. I didn’t get a lot from this one although my designer g/f enjoyed it, I guess it was one for the non-developers.
Developer Panel
I must admit I got little bored with this one. It was billed as Cloud vs Client but IMO that was an argument for two years ago. I think everyone understands the basic advantages/disadvantages of both and when to combine the two. I did find one of the audience questions interesting, I’ll paraphrase it, "if my country requires that I adhere to strict rules governing the access/security of my customers data, how can enforce that if the data is in the cloud and could potentially be stored in countries where the rules are different, non-existent or even counter the rules of my country?". Tough one.
Day 2 to follow…
Cannot build Silverlight 1.1 in debug :(
I have the latest VPC of Orcas, Silverlight 1.1 Alpha refresh and alpha tools but when I try to build a debug release silverlight project I get…
Error 1 Unexpected debug information initialization error — ‘Failed to find a required export in the runtime.’ SplashScreenDownload2
I wonder if there is some sort of debug version of the dlls that I’m missing. It used to work before the latest refresh, and it also builds in release mode. Just in case anyone has the same problem or has some ideas this is the diagnosting output from Visual Studio (you get the same error if you run csc by hand)
Target "CoreCompile" in file "C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.Targets":
Building target "CoreCompile" completely.
Output file "obj\Debug\SplashScreenDownload2.dll" does not exist.
Task "Csc"
Command:
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"c:\Program Files\Microsoft Silverlight\agclr.dll" /reference:"c:\Program Files\Microsoft Silverlight\mscorlib.dll" /reference:"c:\Program Files\Microsoft Silverlight\System.Core.dll" /reference:"c:\Program Files\Microsoft Silverlight\system.dll" /reference:"c:\Program Files\Microsoft Silverlight\system.silverlight.dll" /reference:"c:\Program Files\Microsoft Silverlight\system.Xml.core.dll" /debug+ /debug:full /optimize- /out:obj\Debug\SplashScreenDownload2.dll /resource:SLDL_DLL.DLL,SplashScreenDownload2.SLDL_DLL.DLL /resource:sqlservr.exe,SplashScreenDownload2.sqlservr.exe /resource:fxref.hxs,SplashScreenDownload2.fxref.hxs /target:library Page.xaml.cs Properties\AssemblyInfo.cs "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\SplashScreenDownload2\SplashScreenDownload2\obj\Debug\Page.g.cs" "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\SplashScreenDownload2\SplashScreenDownload2\obj\Debug\ProgressAnim.g.cs"
fatal error CS0040: Unexpected debug information initialization error — ‘Failed to find a required export in the runtime.’
Compile complete — 1 errors, 0 warnings
Done executing task "Csc" — FAILED.
Done building target "CoreCompile" in project "SplashScreenDownload2.csproj" — FAILED
[Edit] Finally gave and reinstalled the VPC. Please note, if you want an error free install ensure that install IE7 before attempting to install Silverlight, I had lots of odd problems with IE6.
My first Silverlight demo
Reducing vibration noise from a PC
Simple way to Serialize an object to a string
XmlSerializer serializer = new XmlSerializer(typeof(MyType));
string resultingXml = null;
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
serializer.Serialize(stringWriter, myObject);
resultingXml = stringWriter.ToString();
}