Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • 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 DevExpress.Xpf.Controls.UploadControl.InitTemplateChilds()
                                       at DevExpress.Xpf.Controls.UploadControl.OnApplyTemplate()
                                       at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)

                                    and the control is neither visibile or usable.

                                0

                                The same problem happens inside NavBarItem.

                                0

                                Hi Lorenzo,

                                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?

                                Thanks,
                                Vito

                                DXSample.zip
                                0

                                Hello

                                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.

                                Best Regards

                                BusinessApplication1.zip
                                0

                                Hi Lorenzo,

                                >>>>>
                                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:

                                	
                                [XAML]
                                <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?

                                Thanks,
                                Vito

                                DXSample.zip
                                0

                                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...

                                Best Regards

                                0

                                Hi Lorenzo,

                                I have finally reproduced the problem you described at design time. Our developers will examine why this happens, and will do their best to fix it, if this is feasible. Please give us some time.

                                Thanks,
                                Vito

                                You must  log in  or  register  to leave an answer

                                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.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Your Privacy - Legal Statements

                                Copyright © 1998-2013 Developer Express Inc.
                                ALL RIGHTS RESERVED
                                All trademarks or registered trademarks
                                are property of their respective owners