Silverlight
Silverlight 2.0 (beta)
1. Drag button onto UI surface – Nope nothing
2. Drag button onto XAML – yes
3. Properties of button – nothing
4. Click in button tag to bring up intellisense – yes
5. Look for something like text or caption – nothing
6. Enter text in the ‘innertext’ of the tag – not allowed
7. Examine every possible attrib’ via intellisense – tried ‘content’ and that worked
8. Looked for name – no
9. Looked for x:name – yes, still using the x namespace
Ok, so if you read any of the SDK you’d figure it out, but I was interested to see if the approach had become…obvious, it hasn’t. For me it still remains the most cumbersome of the developer experiences but that’s probably more due to the improvements elsewhere against the relatively immature interface for Silverlight. I realise there is a lot more to think about but it still fills a bit clunky. I’d certainly like to see VS giving me member fields for controls rather than me having to code that manually via FindName. Still, I’m very excited to start some Silverlight projects in earnest, I’ve a couple of ideas, so hopefully…watch this space for some demos.
Writing JavaScript functions for Silverlight
The reason for this post is to point out that writing JavaScript for Silverlight can be tricky. A balance needs to be struck between efficient and user friendly code and the semantic support that XAML offers.
Silverlight keyboard part 4
Silverlight keyboard input, an alternative
Silverlight keyboard part 3 (sort of)
Accepting keyboard input in Silverlight Part 2
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;
}
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.