I am gettig following error when i am adding a custom control thru XAML. what can be the possible reason? the value of type "..." cannot be added to a collection or dictionary of type 'uielementcollection'
<Grid x:Name="QuantityDetail" DataContext="{StaticResource ViewModel}"> <GroupBox> ..... <Label Style="{StaticResource ResourceKey=LabelValue}">Min</Label> <!-- The following control --> <NumericUpDow><NumericUpDown> ..... </GroupBox> </Grid>
Problem was that i was not referencing to one dll(which is referenced by numericupdown control) in my solution. Actually NumericUpDown control is not my control, its present in different dll. And this control was refereing System.Windows.Controls.Input.Toolkit.dll. Now I am refereing it in my solution. And things are working
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With