﻿<?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 - ClientUI - ExpandableContentPresenter with Auto Height?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ExpandableContentPresenter-with-Auto-Height/</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>ExpandableContentPresenter with Auto Height?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ExpandableContentPresenter-with-Auto-Height/</link><pubDate>Mon, 04 Mar 2013 22:37:04 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;ExpandableContentPresenter is inherited from ISContentControl, which means that it can contain a single object of any types, such as string, an image, or a panel. For more information about this content model, see Content Model Overview.&lt;/p&gt;
&lt;p&gt;The content of ExpandableContentPresenter must be a UIElement with &lt;strong&gt;fixed Height and/or Width&lt;/strong&gt;, which is used as reference for the expand and collapse animation.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Source: Intersoft ClientUI Documentation ExpandableContentPresenter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;You may try to use the ExpandableGroupBox control for your scenario. The following example shows how to define a simple UXQueryBuilder as the content of ExpandableGroupBox.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;Intersoft:ExpandableGroupBox x:Name="ExpandableContainer" VerticalAlignment="Top" &amp;gt;
    &amp;lt;Grid&amp;gt;
        &amp;lt;Intersoft:UXQueryBuilder x:Name="QueryBuilder"/&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/Intersoft:ExpandableGroupBox&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;It is best practice to define the size in the content element of the ExpandableGroupBox instead of defining it in the control itself. This allows the ExpandableGroupBox to support fluid layout and perform smoother operation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>ExpandableContentPresenter with Auto Height?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ExpandableContentPresenter-with-Auto-Height/</link><pubDate>Mon, 04 Mar 2013 19:38:52 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>&lt;p&gt;Good day,&lt;/p&gt;
&lt;p&gt;I'm wondering if it is possible to set the content of ExpandableContentPresenter as Auto Height instead of Fixed Height?&lt;/p&gt;
&lt;p&gt;What I'm trying to achieve is to set a UXQueryBuilder as the content of ExpandableContentPresenter and when a condition is added/removed it is automatically resized (without using a UXScrollViewer).&lt;/p&gt;
&lt;p&gt;The ExpandableContentPresenter is shown when checking a UXCheckBox.&lt;/p&gt;
&lt;p&gt;In other words, I would like to show the UXQueryBuilder when the UXCheckBox state is checked, and hide it when unchecked.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Dave&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>