I just added a RadDataForm (as a UserControl) to my project for the first time. In the VS designer, everything looks fine. However, when the UserControl is instantiated (via a XAML DataTemplate), I receive the following exception:
Any thoughts on what I'm missing would be appreciated.
Jeff
System.Windows.Markup.XamlParseException - "Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception."
with an InnerException of:
"Cannot find resource named 'DataForm_HeaderOuterBorder'. Resource names are case sensitive."
Any thoughts on what I'm missing would be appreciated.
Jeff
4 Answers, 1 is accepted
0
Hi Jeff,
Could you please share some more details? Are you using Implicit Styles? Do you get the same error in case the UserControl is not placed in a DataTemplate?
Regards,
Vera
Telerik
Could you please share some more details? Are you using Implicit Styles? Do you get the same error in case the UserControl is not placed in a DataTemplate?
Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0

Jeff
Top achievements
Rank 1
answered on 11 Nov 2013, 04:39 PM
No, I'm not using implicit styles. Here's the code for the UserControl:
... and here's the data template code that instantiates the view from the MainWindowView.xaml file:
I don't yet know how things react if I instantiate the view using some other mechanism besides the above DataTemplate.
Jeff
<
UserControl
x:Class
=
"TruNest.Client.UserControls.DataFormUC"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
mc:Ignorable
=
"d"
>
<
Grid
>
<
telerik:RadDataForm
x:Name
=
"dataForm"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
IsEnabled
=
"{Binding IsEnabled}"
ItemsSource
=
"{Binding TableData}"
/>
</
Grid
>
</
UserControl
>
... and here's the data template code that instantiates the view from the MainWindowView.xaml file:
<
DataTemplate
DataType
=
"{x:Type childViewModel:DataFormViewModel}"
>
<
childView:DataFormUC
/>
</
DataTemplate
>
I don't yet know how things react if I instantiate the view using some other mechanism besides the above DataTemplate.
Jeff
0
Accepted
Hello Jeff,
This issue should be resolved. May I ask you to download our Latest Internal Build and to give it a try? You can find it under Your Account.
Let us know in case you still experience the problem.
Regards,
Vera
Telerik
This issue should be resolved. May I ask you to download our Latest Internal Build and to give it a try? You can find it under Your Account.
Let us know in case you still experience the problem.
Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0

Jeff
Top achievements
Rank 1
answered on 12 Nov 2013, 03:17 PM
Yes, the latest internal build has corrected the issue. Thanks.