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 would like to update the image and text of a primary button based upon the click of a child StackButton. While SetImageSource works, SetText does not.
private void Demo_StackButtonClick(object sender, WebFishEyeButtonEventArgs e) { WebFishEyeStackButton button = (WebFishEyeStackButton)e.Button; DemoUpdateParentButtonWithDelay(button.Parent, button); } static void DemoUpdateParentButtonWithDelay(WebFishEyeButton button, WebFishEyeStackButton stackButton) { Storyboard story = new Storyboard() { BeginTime = TimeSpan.FromSeconds(.01) }; story.Completed += (s, args) => DemoUpdateParentButton(button, stackButton); story.Begin(); } static void DemoUpdateParentButton(WebFishEyeButton button, WebFishEyeStackButton stackButton) { BitmapImage bmp = (BitmapImage)stackButton.ImageSource; button.SetImageSource(bmp.UriSource.OriginalString); button.SetText(stackButton.Text); }
In my test in order to update the text and image during button click per your scenario you will only need to update the property of the ImageSource and Text. Here is the snippet:
private void DemoUpdateParentButtonWithDelay(WebFishEyeButton button, WebFishEyeStackButton stackButton) { Storyboard story = new Storyboard() { BeginTime = TimeSpan.FromSeconds(.1) }; story.Completed += (s, args) => { BitmapImage bmp = (BitmapImage)stackButton.ImageSource; button.ImageSource = new BitmapImage(new Uri(bmp.UriSource.OriginalString, UriKind.RelativeOrAbsolute)); button.Text = stackButton.Text; }; story.Begin(); }
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