﻿<?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 - Setting Stack Buttons Visibility to Collapsed</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Setting-Stack-Buttons-Visibility-to-Collapsed/</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>Setting Stack Buttons Visibility to Collapsed</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Setting-Stack-Buttons-Visibility-to-Collapsed/</link><pubDate>Thu, 24 Jun 2010 22:53:07 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Based on my discussion with the developer, StackButton visibility property will not work because it is only the control model, in order for the visibility property to work you will need to set it to the control element. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;My test show modifying visibility will work during WebFishEyeButton click event handler. However, there will be an empty space where the stackbutton resides. Here is the snippet if you would like to try it yourself:&lt;/p&gt;&lt;pre&gt;private void FishEye1_ButtonClick(object sender, ISNet.Silverlight.WebAqua.WebFishEyeButtonEventArgs e)&lt;br /&gt;{&lt;br /&gt;    if (e.Button.ItemName == "btnSearch")&lt;br /&gt;    {&lt;br /&gt;        Storyboard toolbarDelay = new Storyboard() { BeginTime = TimeSpan.FromSeconds(0.1) };&lt;br /&gt;        toolbarDelay.Completed &amp;#43;= (s, evt) =&amp;gt; {&lt;br /&gt;            ((WebFishEyeButton)e.Button).StackButtons[0].GetButtonElement().Visibility = System.Windows.Visibility.Collapsed;&lt;br /&gt;        };&lt;br /&gt;        toolbarDelay.Begin();&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;For such scenario we suggest removing the stackbutton in order to display the stackbutton correctly.&lt;/p&gt;
&lt;p&gt;If you are interested, we will release WebUI Studio 2010 R1 RC that will inlcude new version of our Silverlight product soon. Please check http://www.intersoftpt.com regularly for further details regarding our RC.    &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Setting Stack Buttons Visibility to Collapsed</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Setting-Stack-Buttons-Visibility-to-Collapsed/</link><pubDate>Thu, 24 Jun 2010 11:16:41 GMT</pubDate><dc:creator>berkaykurtaran</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The Problem is obvious, which is;&lt;/p&gt;
&lt;p&gt;While I can set the visibility of Buttons to Visible by the same code, why can't I do that to stack buttons. &lt;/p&gt;
&lt;p&gt;WebFishEyeButton.Visibility=Visibility.Collapsed works&lt;/p&gt;
&lt;p&gt;but &lt;/p&gt;
&lt;p&gt;WebFishEyeStackButton.Visibility=Visibility.Collapsed doesn't work&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Setting Stack Buttons Visibility to Collapsed</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Setting-Stack-Buttons-Visibility-to-Collapsed/</link><pubDate>Wed, 23 Jun 2010 11:22:39 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Hi Berkay,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; First of all, may I know on which side do you want to perform this action? Does it from server side (FullPostBack) or client side?&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; From what I see on your code, it seems that you are trying to do this on server side, please correct me if I am wrong. However, if we call any FullPostBack action, I am pretty sure that the WebFishEye will re-render again and the stack button will be automatically collapsed.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; It would be different it you are using FlyPostBack Manager. So, could you kindly give me more specific information regarding your scenario and I will investigate it furthermore. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;p /&gt;</description></item><item><title>Setting Stack Buttons Visibility to Collapsed</title><link>http://www.intersoftsolutions.com/Community/WebAqua/Setting-Stack-Buttons-Visibility-to-Collapsed/</link><pubDate>Wed, 23 Jun 2010 02:15:26 GMT</pubDate><dc:creator>berkaykurtaran</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a problem making stack buttons invisible at runtime.My code blog is like this--&amp;gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;WebFishEyeButton&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; but = cor.FindButton(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;"btn1"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;);&lt;/span&gt;&lt;/span&gt; 
&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
but.StackButtons[1].Visibility = &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;Visibility&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;.Collapsed;&lt;/span&gt;&lt;/span&gt; 

&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;i can catch both buttons, there is no exception thrown, but while i can set buttons visibility to collapsed, i cannot do that at stackbuttons.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;i could remove them by this code &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
&lt;p&gt;but.StackButtons.RemoveAt(0);&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&amp;nbsp; 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>