The Name attribute value 'label1' cannot be set on the element 'Label'

I have a custom control which extends ContentControl and until I upgraded to the June Beta everything worked without a problem (I had the Feb CTP installed previously).

After the upgrade, I now get the following error. I have removed all 'Name' and 'x:Name' properties I can find without resolving the issue. So firstly what is the problem and secondly how can I find the offending 'Name'

The Name attribute value 'label1' cannot be set on the element 'Label'
because it is under the scope of the element 'Form1' that already has names registered
under it when it was defined in another scope.

Thanks for the help

Kendrew

[683 byte] By [Kendrew] at [2007-12-24]
# 1
Would you post your XAML for this issue?
KevinMoore-MSFT at 2007-10-7 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2

I resolved my issue Kevin, but for the life of me I cannot remember how I did it.

Thanks anyway.

Kendrew at 2007-10-7 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified