Silverlight
I created a simple Silverlight 3 app.
<UserControl x:Class="SilverlightApplication2.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
<Grid x:Name="LayoutRoot">
<TextBlock Text="Hello World!" ></TextBlock>
</Grid>
</UserControl>
When I run it I get this error
Line: 56
Error: Unhandled Error in Silverlight Application
Code: 2104
Category: InitializeError
Message: Could not download the Silverlight application. Check web server settings
Well if you look in the ClientBin folder you will see it is empty so the xap file is not available to be used
To fix this right click on the web application and select Build Order. On the Dependencies tab...
John Papa - Ado.Net Data Services
6/17/2009 6:30:00 PM
6/17/2009 8:00:00 PM
About
John Papa is a Microsoft C# MVP, INETA speaker, member of the WPF and Silverlight Insiders, consultant, speaker, author, and trainer for ASPSOFT who specializes in professional application development with Microsoft technologies including Silverlight, WPF, C#, .NET and SQL Server. John has written over 70 articles and authored 9 books including his latest book Data Driven Services with Silverlight 2 by O’Reilly Media. John is currently working on a follow up to his Silverlight book, with a working title of Silverlight for Business.
He can often be found...
This week Microsoft Release an GDR to silverlight 2 which included some minor fixes.
Here is a list of the main changes in the GDR (build 2.0.40115.0):
Fixes problems that were caused by Silverlight and McAfee scanning tools interactions
UI automation stability fixes, including:
graceful failures when attempting to use features that require .NET
Framework 3.0 or 3.5 on machines that do not have either framework
installed
improved Tablet support
Fixes an issue that arises when Mac users customize their environment by removing Arial and Verdana fonts
Fixes a known issue with Isolated Storage IncreaseQuotaTo method (see this post for more information)
The one fix which bothered me a...
Note this works with the released version of Silverlight 2
I created a Silverlight 2 beta 2 app which uses a WCF Silverlight service which worked fine localy but did call the service when I published it to my web host. After playing around with the different settings I finally came across an entry in the Silverlight Forums by sladapter with a solution.
http://silverlight.net/forums/t/19021.aspx
So lets create a simple Silverlight 2 App to demo how to do this. I created a silverlight app with a web application project. I prefer web applications to web sites but a web site will...
When:
Wednesday, November 19, 2008 6:30 PM Eastern Time (US & Canada)
Who: Joe Healy, Jeff Barnes, and Russ Fustino
http://www.dotnettikihut.com/
Event Overview
Session 1 - What’s New in SQL Server 2008 for Developers - SQL
Server 2008 adds numerous new capabilities for developers – from
support for Spatial Data types to a storage mechanism for SQL BLOB data
using the NTFS file system, and much, much more. The new release also
delivers several improvements to development-related areas, from T-SQL
to SQLCLR to XML. This presentation will provide a technical dive into
the latest and greatest features you’ll find in SQL Server 2008, while
offering insight into how to effectively apply...
Silverlight 2 does not come with a context menu control. You could always handle the html document's oncontextmenu event and open a popcontrol to use as a context menu. This sample should help you get started. <UserControl x:Class="SilverlightContextMenu.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<Grid>
<Rectangle x:Name="LayoutRoot" Fill ="Green" ></Rectangle >
<Popup x:Name="menu">
<StackPanel>
...
In Silverlight 2 Beta 2 DataGrid had a CommittingEdit event which was a great event to update the data in an ado.net dataservice. Unfortunately this event was removed in the RC0 of the datagrid. As a work around Jonathan Shen suggested using a template column and using the LostFocus event to update your dataservice data.
<data:DataGridTemplateColumn Header="Command">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding FirstName}"></TextBlock>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
<data:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<TextBox Text="{Binding FirstName}" LostFocus="TextBox_LostFocus"></TextBox> //you can detect other events.
</DataTemplate>
</data:DataGridTemplateColumn.CellEditingTemplate>
</data:DataGridTemplateColumn>
Well this works fine but I don't want to have to define all my columns this way. Sometimes it is nice...
Silverlight XAML 404 errors
I created a simple web application which uses silverlight. Once I was happy with the way it was working I deployed to my webhost. When the web page loaded the silverlight control is not displaying anything.
Fidder 2 lets you examine what is going on when a webpage is loading. I see that there is a 404 error when loading the xaml file being displayed in the silverlight control. When I log into my webhost's control panel I see the xaml file is there.
According to Tim Heuser's blog all you have to do is Mime type...