iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I want to be able to move content from one ContentTransition Control to another one.
My problem is when I host my ContentTransition to an ExpandableGroupBox (as content) and then move it to another ContentTransition nothing appears. I got the same behaviour from WPF Expander. Which means that something is on the standard behaviour of expander that is causing it. Any help how to ciromvent this will be appreaciated
I am attaching a simple solution cling move to Expander and you will see a button then click Move To Left but nadda.
Thanks
Yiannis
Hi Yiannis,
I have attach a sample of yours changed with the code I have given to you.
Please kindly try the sample.
Have a nice day.
Best regards,
Niven Prasetya
Hello Yiannis,
I am able to replicate your issue from the given sample. I will investigate more further regarding your issue.
I will give you any news as soon as possible.
Thank you and have a nice day.
The problem apparently doesn’t have relation with ExpandableGroupBox. The actual issue occurred because you’re transitioning the same object across two different containers which is prohibited in WPF or Silverlight tree model.
To support this scenario, we have enhanced the ContentTransition with a new method called ClearContent(). You need to call this method before assigning it to the target container. The sample code is as following:
// Clears the content before transitioning it to new container ContentTransition1.ClearContent(); // Sets the user control as the content for the new container ContentTransition2.SetContent(MyUserControl11);
The transition should work fine using the above approach. Let me know how it works in your end.
Please apply the new nightly build to your development machine for this enhancement.
Can I ask you how can I do this generally?,
Also do mean that you cannot move controls only between Contentcontrols or cannot you move controls even between panels?
Finally when are the fixes going to be included officially.
In the standard content control and panels, the content moving should work just fine without additional methods. This case is unique only for ContentTransition because it performs animation when the content is changed, which in this case applied to same object. This isn't allowed in WPF since a Freezable object can run only one animation at a time.
The official new build is scheduled to release on mid September. Let me know if you have any questions.
Thanks Niven,
Two final questions:
1) I see that you have given me a new set of client dll's where do I put the so all apps that I am building use them. Will this break the installation when the new official version is released?
2) How can I be notified when visibility is changed on a Silverlight User Control. There seems to be no event for that. I am refering to silverlight 4.
Many thanks for your help
1. No, it will not break the installation when the new official version is released. As I said before it was a nightly build, but I have removed the dll's from this thread because there's still need a further enhancement. But if you need the dll's again I can send it to you via e-mail.
2. The visibility comes from the Silverlight itself, they dont provide the event to handle that. If you want, you handle it from LayoutUpdated event, but it will affect others object properties as well . Or you can use SizeChanged, when it collapsed, set the Height properties into 0. So, it will change back to normal when visible.
Hope every explaination I said can be an appropriate answer for your questions.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname