Community
Participate
Working Groups
xaml view is not rendered for attached project. It works when we run the application. This application shows xaml view in Visual Studio 2010. This application was working with previous Silverlight 3.0 builds in eclipse. It may be problem due to stripping few xaml file attributes by eclipse before sending it to browser for rendering.
Created attachment 166988 [details] Demp application not showing xaml view Demp application not showing xaml view
Created attachment 167008 [details] demo application that does render xaml view demo application that does render xaml view
The modification is only on stripping of XAML for duplicate names. It should not impact on the preview.
This is well known limitation by design. We had created a dynamic preview solution before, which can show same effect as running. But microsoft does not like this approach. So we revert it to the static preview, which only load the current xaml in editor for preview. Therefore the preview will not work in some cases, for example, 1. The xaml file uses some external silverlight controls and assemblies which are not inside the previewer. 2. The xaml file has some c# code for initializing the user interface. (The previewer does not load c# code.) 3. The xaml file use other xaml files. (The previewer only loads a single xaml file.) Visual studio 2010 is so powerful, and out of the scope of our project, esl will not work in the same way as it yet.
Precisely, ESL uses the Silverlight's XAML resource loading to create the preview. This feature has a lot of limitations. The XAML should not have: 1. Style, 2. Dupliacte name 3. Event handling And others listed by ChuWei in comment #4. We do have implemented some solutions to make 1, 2 and 3 work.