Hello, while trying (even from code) to add an UploadControl to a DXTabItem inside a DXTabControl I get the following designer error :
Error 2 [Line: 0 Position: 0] C:\Projects\WebVisionDemo\WebVisionDemo\Views\PageVisionDemo.xaml 24 21 WebVisionDemo
Object reference not set to an instance of an object.
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
and the control is neither visibile or usable.
I have tried to reproduce the problem you described, but to no avail. Attached is a small sample project, which seems to work correctly on my side. Can you please let us know how we should modify it to see the problem in action, so that we can continue working on this issue?
Attached you find the not-working sample.
Note that in the sample you sent there was non tabcontrol surrounding the uploadcontrol, and the DLL version was not the last one used (2.4)
the same problem happens also with the navbar.
in the sample you sent there was non tabcontrol surrounding the uploadcontrol, and the DLL version was not the last one used (2.4)
I have just looked at the sample I posted here and I can confirm that it uses v10.2.4 and contains the following code:
<Grid x:Name="LayoutRoot" Background="White"> <dx:DXTabControl Name="dXTabControl1"> <dx:DXTabItem Header="Upload"> <dxco:UploadControl Name="uploadControl1"/> </dx:DXTabItem> </dx:DXTabControl> </Grid>
The solution you posted also seems work as expected on my machine. Perhaps I am doing something wrong. The attached screencast illustrates how this project works on my side. Can you please review it, and check whether the actions I performed are correct?
Hello, this look like a quirk on my visual studio 2010 (professional)
the problem still happens, but if I close and reopen the designer, it doesn't
appear anymore... it just seems to happens when dragging from the toolbar...
I'm using VS2010 Version 10.0.30319.1 RTMRel, on windows 7 x64, english version
Anyway, this way I can use it... so we can close the issue.
Hope to discover more...
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.