Silverlight DataPager breaks VS designer

I'm experimenting with the Silverlight 4 SDK DataPager. I have some code in my XAML that looks like this:

<sdk:DataPager x:Name="dataPager1" PageSize="100" />

As SOON as I paste that into my XAML the designer breaks with this odd message:

Error HRESULT E_FAIL has been returned from a call to a COM component.

But if I close the designer and re-open then that error goes away. However, the preview in the designer of my user control is completely broken. At runtime it works though.

Any idea why the DataPager and the designer don't seem to be getting along?

-------------Problems Reply------------

Oddly enough when I tried this again in a new project it did not happen. In the first project where I got this error I manually created the XAML and the references to the DLLs necessary, as well as the XMLNS declarations. In the second project I let Visual Studio take care of it by dragging the control in from the Toolbox. I guess when I did things manually I must've done something to make it not work right in the designer. But I don't know what.

Category:visual studio Views:0 Time:2010-08-09

Related post

  • Silverlight, DataPager, RIA Services, and smart paging 2010-02-18

    I'm still trying to get my feet on the ground with Silverlight and RIA Services, and of course starting with some of the more "fun" stuff like grids and intelligent paging. I can connect to RIA Services (using a home-grown ORM, not L2S or EF), get da

  • is it possible to set the page count for the silverlight datapager control 2010-10-25

    hi is it possible to set the page count for the silverlight datapager control with no itemsource for the datpager. if not possible is there any other equivalent controls to use as datapager in silverlight --------------Solutions------------- Implemen

  • Why does my ASP.NET page add the prefix 'ctl00_ctl00' to html element IDs and break the design? 2008-10-14

    I don't understand it. The ids of html elements in the master page are changed by the same id but with a prefix and it's breaking the css design. In the master page I have: <div id="container" runat="server"> <asp:ContentPlaceHolder ... ...

  • IE6 breaks cached design 2009-09-09

    I have a design which loads nicely in IE6, but as soon as I reload it 1-2 times, it all of a sudden collapses. When I upload an updated version, it recovers from it, and breaks after a few reloads. On a sidenote: I can't test the site on a "real" IE6

  • Silverlight DataPager localization 2010-02-17

    Is it possible to localize DataPager's footer (Page X of Y) in Silvelright? The strings seem to be located in resources embedded in the assembly of DataPager. So how should I localize it? Unfortunately, almost nothing in the DataPager class is virtua

  • Custom DataType in DataTemplate breaks WPF designer 2010-04-18

    Why does the DataTemplate line break the WPF designer in Visual Studio 2008? The program compiles and runs properly. The DataTemplate is applied as it should. However the entire DataTemplate block of code is underlined in red, and when I simply "buil

  • Silverlight - Resharper and VS designer can't deal with StaticResource extension 2011-04-16

    Basically, neither Visual Studio designer, nor Resharper seem to deal with the StaticResource markup extension when I use it "normally" - without the brackets. <StaticResource ResourceKey="SomeKey"/> It's not an issue of finding the resource, i

  • I need help working with Silverlight as a web designer. 2013-01-25

    Hi guys, i am trying to learn silverlight, i installed it and clicked the link to verify, then when i go to the program on my pc, it comes up with an info bar about how its copy right etc, then i click OK and nothing happens and nothing opens? How do

  • Moving .xaml and .xaml.vb files to a new Silverlight project breaks xaml compilation 2008-12-24

    When I move .xaml and .xaml.vb files to a new Silverlight project, the generated .g files no longer include members for the x:Name attributes defined in the xaml file. This means the code-behind files can't refer to those members and cannot build. --

  • Upgrading Compact Framework 1 app from VS 2003 to VS 2005 breaks form designer? 2009-02-10

    I am trying to move a C# Compact Framework 1 application from Visual Studio 2003 to Visual Studio 2005 (no comments please on how outdated all this is :-)). I am now able to compile and run the app in VS 2005 just fine, however when I open one of the

  • WPF: Loading data in the constructor of a UserControl breaks the Designer 2009-02-20

    I have a main window with a usercontrol. When adding code in the default constructor of the usercontrol, the designer stops showing the main window. It gives a message: Problem loading The document contains errors that must be fixed before the design

  • Silverlight DataPager - Split Into 3X3? 2010-02-27

    I have a ListBox bound to an observable collection. I also have a data pager bound to the itemsource of the list box. I currently have the data pager set to only show up to 3 rows. How would I go about changing the style ListBox style (or something e

  • Is it breaking Facade design pattern 2010-07-06

    In HomeCADEngine facade class I have a method "addRoom(room:Room)" and it will add this room to a ArrayList. But is it break facade pattern when we create a room outside facade class and then pass it into addRom() method?? Many thanks --------------S

  • silverlight app realtime update design 2010-08-29

    I have a winform app, which takes live image from an ip camera, and detect vehicle license plate number from the image. Now i want to make a silverlight app which can connect to my winform app or some kind of service app, and the silverlight app gets

  • CSS line break, Web design, Wordwrap, Css breaks 2011-02-05

    Can some one help me with this issue of css, I have a div structure like: Its with long string to make sure it doesnt breaks CSS but with this code it is... I tried using PRE with word wrap and PHP wordwrap() function...all of them give me the same o

  • Silverlight: Why can't designer see the dependency property? 2011-03-16

    I have to create Silverlight User Control with public properties that should be used in inner controls. public partial class MyControl : UserControl { public static readonly DependencyProperty MyCustomProperty = DependencyProperty.Register( "MyCustom

  • Silverlight datapager not firing load events 2011-05-11

    Here's my problem: I have a datagrid that is bound to a collection of objects. One column only contains an ID and I need to turn this ID into the user's name that is associated with it. In the datagrid, I have a template column that contains a textbl

  • Silverlight DataPager control loses first/last buttons 2011-07-09

    I'm using the DataPager control in XAML as follows: <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /> <ColumnDefinition Width="1*" /> <ColumnDefinition Width="1*" /> </Grid.ColumnDefinitions> <data:DataPager Gr

  • can anyone think of why using this particular class in a design time data source will break all design time bindings? 2011-12-03

    I generated this class using SQLMetal.exe. It is very bindable at runtime, but if I use this class at design time, all of my design time blend bindings are busted. I am using the MVVM-Light framework and I am building an app for WP7. If I extract an

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.103 (s). 11 q(s)