﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebAqua - Bug:  WebFishEyeButton.SetText doesn't work.</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Bug-WebFishEyeButtonSetText-doesnt-work/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Bug:  WebFishEyeButton.SetText doesn't work.</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Bug-WebFishEyeButtonSetText-doesnt-work/</link><pubDate>Fri, 09 Jul 2010 04:25:36 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;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:&lt;/p&gt;&lt;pre&gt;private void DemoUpdateParentButtonWithDelay(WebFishEyeButton button, WebFishEyeStackButton stackButton) 
{
    Storyboard story = new Storyboard()
    {
        BeginTime = TimeSpan.FromSeconds(.1)
    };

    story.Completed &amp;#43;= (s, args) =&amp;gt; { 
        BitmapImage bmp = (BitmapImage)stackButton.ImageSource; 
        &lt;span style="color: #ff0000"&gt;&lt;em&gt;button.ImageSource = new BitmapImage(new Uri(bmp.UriSource.OriginalString, UriKind.RelativeOrAbsolute));
        button.Text = stackButton.Text;&lt;/em&gt;
&lt;/span&gt;    };
    story.Begin(); 
}&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;</description></item><item><title>Bug:  WebFishEyeButton.SetText doesn't work.</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Bug-WebFishEyeButtonSetText-doesnt-work/</link><pubDate>Wed, 07 Jul 2010 18:12:51 GMT</pubDate><dc:creator>Rico</dc:creator><description>&lt;p&gt;I would like to update the image and text of a primary button based upon the click of a child StackButton. While &lt;strong&gt;SetImageSource&lt;/strong&gt; works, &lt;strong&gt;SetText&lt;/strong&gt; does not.  &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;        private void Demo_StackButtonClick(object sender, WebFishEyeButtonEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            WebFishEyeStackButton button = (WebFishEyeStackButton)e.Button;&lt;br /&gt;            DemoUpdateParentButtonWithDelay(button.Parent, button);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        static void DemoUpdateParentButtonWithDelay(WebFishEyeButton button, WebFishEyeStackButton stackButton)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            Storyboard story = new Storyboard() { BeginTime = TimeSpan.FromSeconds(.01) };&lt;br /&gt;            story.Completed &amp;#43;= (s, args) =&amp;gt; DemoUpdateParentButton(button, stackButton);&lt;br /&gt;            story.Begin();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        static void DemoUpdateParentButton(WebFishEyeButton button, WebFishEyeStackButton stackButton)&lt;br /&gt;        {&lt;br /&gt;            BitmapImage bmp = (BitmapImage)stackButton.ImageSource;&lt;br /&gt;            button.SetImageSource(bmp.UriSource.OriginalString);&lt;br /&gt;            button.SetText(stackButton.Text);&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>