This is a migrated thread and some comments may be shown as answers.

Invalid XAML

3 Answers 55 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nino
Top achievements
Rank 1
Nino asked on 22 Apr 2013, 06:09 PM
Hi there

I'm using a telerik ListPicker with the following Code:

<telerikInput:RadListPicker x:Name="listPickerColor" Margin="0" VerticalAlignment="Stretch" SelectionChanged="listPickerColor_SelectionChanged">
     <telerikInput:RadListPicker.ItemTemplate>
          <DataTemplate>
             <StackPanel Orientation="Horizontal">
                 <Rectangle Fill="{Binding ColorBrush}" Margin="2, 2, 0 0" Width="26" Height="26" />
                 <TextBlock Text="{Binding Text}" Margin="4 0 0 0"/>
             </StackPanel>
         </DataTemplate>
     </telerikInput:RadListPicker.ItemTemplate>               
 </telerikInput:RadListPicker>

If I know close and restart Visual Studio i got an error in the designer view that there is invalid XAML. I can build and use the app without any errors. Also the designer shows everything how it should be. So I don't see any problem. But I'm a bit concerned about having Code with an error in it.

Any Idea whats the reason for this problem?

thanks
Nino

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 26 Apr 2013, 08:07 AM
Hi Nino,

Thank you for contacting us. Unfortunately I was unable to reproduce the issue you described.
Please take a look at this screencast: http://screencast.com/t/w0pz6LjP0FC

We've had some design time issues in the past but we believe we've managed to fix them. Just a quick question - do you have the latest update (Update 2) of Visual Studio installed?

Microsoft Visual Studio Premium 2012
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709

Greetings,
Kiril Stanoev
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Nino
Top achievements
Rank 1
answered on 26 Apr 2013, 08:45 AM
Hi

Thanks for your answer and the link. I'll have a look at the screencast.

In a previous version I already had this issue. But then the designer wheren't able to render anything at all. That works now. But the error message is still there.

Yes i have the update installed:

Microsoft Visual Studio Professional 2012
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709


Regards
Nino
0
Kiril Stanoev
Telerik team
answered on 01 May 2013, 10:15 AM
Hello Nino,

It would be great if you can prepare a screencast demonstrating the issue. Maybe something similar to what I've sent you. This way we can trace the issue and fix it as soon as possible. 

Regards,
Kiril Stanoev
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
ListPicker
Asked by
Nino
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Nino
Top achievements
Rank 1
Share this question
or