Hi All,
This is a very strange issue. I have a user control which has two radial gauges added to it. I am adding multiple instances this user control to a wrap panel. When i add more then 10 user controls to my wrap panel the system is not drawing the radial gauges after 10th user control. If i add only one radial gauge to my user control then system will display radial gauges for first 20 items. I am attaching a screen shots of both scenarios and also i am attaching sample application for your reference.
I am sure that Infragistics will not restrict the total number of tiles to be 20 but i have no idea about the root cause of this issue.
Hey I have observed that removing width and height of user control sort of resolved this issue. I am still confused that how width and height of user control will affect the rendering of user control in UI.
I need you suggestion on improving the performance of rendering this user control. I am trying to load about 105 instances of this user control and system is taking around 3 seconds to display all controls. Getting details for view model s hardly taking one to two milliseconds but displaying this control is taking more time. How can we reduce the load time of controls.
HI Andrew,
Thanks for reply. Actually i am using this user control inside a list box and this control will be user as list box item template. As i am using this user control in list box i can't set the data content in constructor of user control. The data context will be set in main window where we set item source of list box.
Hello Veeresh,
Thank you for your post(s).
I have been investigating into this issue, and it appears that this is being caused by the lack of a data context existing on the XamRadialGauge. The binding errors are not showing in the Visual Studio output window on my end, likely because the XamRadialGauges exist in a separate project file, but if you add the following line of code just after the InitializeComponent() call in your TileControl control's code-behind, it appears that all of the gauges are rendered correctly.
InitializeComponent();this.DataContext = new TileControlViewModel();
Doing this allows the bindings on your XamRadialGauges to resolve correctly and allows the gauges to render.
At the moment, I am rather unsure why WPF will seemingly only allow 20 gauges to render, to be honest. I have also a sample project of my own that is based upon yours, in which if the values that are bound in your project are hard-coded, the first 20 gauges render correctly, and the rest of them will not render until the page resizes and WPF forces the controls to redraw. Even stranger, the page appears to need to resize horizontally for this to happen. However, if these are bound to a data context's source property, then all of them appear to render correctly.
This is unexpected behavior, and as such I have asked our engineering staff to examine this a bit further. To ensure that it receives attention, I have logged this issue in our internal tracking system with a development ID of 221516. I have also created a support case for you on your behalf so that you can track this development issue. It has an ID of CAS-174873-P7V2D5 and you can access it here: https://es.infragistics.com/my-account/support-activity.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Scene 2
Scene 1