locked
Expander control causing a BusyIndicator ambiguous reference. RRS feed

  • Question

  • Using Visual Studio 2010 Ultimate on Windows Server 2008 R2.

    1. Create a new Silverlight 4 project using the Silverlight Business Application template.  The default template controls build and run fine with no changes.

    2. In the designer, drag an Expander control onto, say, MainPage.xaml.  Attempt a build again. The following error occurs:

    'BusyIndicator' is an ambiguous reference between 'System.Windows.Controls.BusyIndicator' and 'BusinessApplicationFoo5.Controls.BusyIndicator'

    The file is app.xaml.cs.

     Only the Expander control seems to be causing this.

     

    Wednesday, April 28, 2010 9:38 AM

Answers

  •  Just change the BusyIndicator reference to System.Windows.Controls.BusyIndicator wherever its used.

    The expander adds toolkit references and causes a name conflict that needs to be handled.

    Somewhat inconvenient for a toolkit control

     

     

    Wednesday, April 28, 2010 1:15 PM

All replies

  •  Just change the BusyIndicator reference to System.Windows.Controls.BusyIndicator wherever its used.

    The expander adds toolkit references and causes a name conflict that needs to be handled.

    Somewhat inconvenient for a toolkit control

     

     

    Wednesday, April 28, 2010 1:15 PM
  • Hi,

    Thyanks for the fix. Same happened for charting controls. Your solution solved it.

    Friday, July 9, 2010 2:41 PM
  •  Just change the BusyIndicator reference to System.Windows.Controls.BusyIndicator wherever its used.

    Where do I change it?  Thanks.

    Wednesday, January 26, 2011 8:50 PM
  • In the App.xaml codebehind. Every reference for your BusyIndicator, just change it to System.Windows.Controls.BusyIndicator

     

    Usually with the business application, there are only 2, one at the initial declaration of the BusyIndicator around line 15, and the other in the overridable sub initializeRootVisual() around line 60.

     

    Friday, April 22, 2011 12:20 PM