I installed Visual Studio 2012 RC recently along with VS 2012 SDK and LightSwitch Extensibility Toolkit.
this is the XAML code in my Client.Design -> TControl.XAML file
<UserControl x:Class="CustomControls.Presentation.Controls.TControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:framework="clr-namespace:Microsoft.LightSwitch.Presentation.Framework;assembly=Microsoft.LightSwitch.Client"> <Grid Width="Auto"> <Grid.RowDefinitions> <RowDefinition Height="100"></RowDefinition> <RowDefinition Height="40"></RowDefinition> </Grid.RowDefinitions> <framework:ContentItemPresenter ContentItem="{Binding ChildItems[0]}" Grid.Row="0" Margin="3" /> <framework:ContentItemPresenter ContentItem="{Binding ChildItems[1]}" Grid.Row="0" Margin="3" /> </Grid> </UserControl>
I cannot see the output of this XAML on the designer. Instead I see this error Message up on the designer area :
Exception: Error HRESULT E_FAIL has been returned from a call to a COM component. Stacktrace: at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value) at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value) at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value) at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
I strongly suspect this is has something to do with namespaces involved here and the Silverlight version. My project is set to use Silverlight version 5.
A quick googling and 'Stackoverflowing" did reveal some general info about this error but nothing of much help.
Any help will be greatly appreciated.
Answer: 1
You've been explicit about which versions of LS RC & the 2012 SDK you've installedc, but what version of the extensibility kit did you install? I know one was released for the Beta, I'm not sure if another one was issued specifically for LS V2 RC.
by : Yann Duranhttp://stackoverflow.com/users/281489
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog