.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Animating expander collapse/expand in xaml ?

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :WPF

I'm trying to make a custom template for Expander to animate the collapse and expand (as in windows xp). When i add the following trigger :

<Trigger Property="IsExpanded" Value="True">
DoubleAnimation Storyboard.TargetName="Content"

View Complete Post

More Related Resource Links

Animation of Expander expand / collapse programmatically



once more a post about the expander animation.

i found a lot of xaml examples for a animated expander during expand/collapse.

like this => http://mattserbinski.com/blog/animating-expander


but how can i do that programmatically?

i have dynamic created nested expander controls and i would like to have a global animation for all controls.

how can i solve that ?


thanks for help




May i use the collapse and expand feature (like tree menu) in Report ?


HI all,

May i use the collapse and expand feature (like tree menu) at Report iam using the Report viewer  Control for displaying the Report on my Asp.net Page .


I have number records and each record have detail as i clicked or expand the record then details will be shown is it possible with report viewer control 
If any one have experince before please share the ideas.


Best Regards

How to Prevent the expand/collapse behaviour of my Custom Activity?

  How can I prevent the expand feature of my custom activity with custom designer ? I have custom WF4 activities with Custom designers. These activities are not container activities. I just want to prevent the expand feature of the same; just like Assign activity. I set the Collapsible attribute of teh ActivityDesigner false; but still it is expanding to the next level. Thanks AmbilyIT Analyst

Expand /Collapse quick launch

Hi All, Can any one help in getting the below link script for collapse and expand quick launch. I did not find any script. it says to paste script in master page using designer http://www.endusersharepoint.com/2009/03/27/deploy-custom-jquery-scripts-to-the-sharepoint-site-collection/ any idea? i want exact above link Thanks in Advance

Looking to get the IsMouseOver of a button inside a header of an expander all though xaml

<Window x:Class="Testwpf.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <Expander x:Name="expan" IsExpanded="True" AllowDrop="True"> <Expander.Header> <Grid x:Name="grd"> <TextBlock Text="asdfhasodfjasdfj asjf aspd fk" HorizontalAlignment="Left" Margin="20,4,0,0"/> <Button x:Name="BtnHeaderGreen" Content="1" Width="25" HorizontalAlignment="Left"/> </Grid> </Expander.Header> <Expander.Content> <Grid > <Canvas Margin="0,2,0,0" x:Name="can" Panel.ZIndex="99"> <Canvas.Style> <Style TargetType="{x:Type Canvas}"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Expander}}, Path=Header.IsMouseOver}" Value="true"> <Setter Property="Visibility" Value="Visible"/>

expander control - how to expand "over" something?

I've re-styled the standard expander control to expand horizontally and I am looking for a way for the expander to "expand" over top of other controls on the window instead of pushing them around and forcing the UI to re-draw portions of itself. This is a direct copy of the Visual Studio side and bottom menu pop out behaviors, if that helps anyone understand what I am trying to achieve. I have searched these forums and I found a solution that involves using a Canvas to wrap around the expander but I was looking for a way to accomplish this same task without the Canvas object. The reason for this is that canvas does not provide a method to resize its children and my expander currently can resize itself if provided more room. I do not wish to break this behavior. I obviously tried setting the Panel.Zindex directly on my expander object but this didn't do much for me.  If anyone has any suggestions I can try post them here so I can try to add them in over the next couple of weeks to my project. Thanks in advance for any assistance!

Expand/collapse row to create a new row to display a frame in a datagrid

Hi , I am using .Net Framework 2.0 as its a old application with a datagrid in a page. I want to expand each row when clicked to create a new row to display a page in the newly created row. Can someone help me in this regard<asp:datagrid id="dgdOrders" runat="server" cellpadding="4" borderwidth="1" gridlines="Horizontal" allowpaging="True" autogeneratecolumns="false" datakeyfield="OrderNumber" cssclass="gridStyle" pagerstyle-visible="False"> <itemstyle wrap="False" cssclass="gridItemStyle" backcolor="white"></itemstyle> <alternatingitemstyle wrap="False" cssclass="gridAltItemStyle" backcolor="WhiteSmoke"></alternatingitemstyle> <headerstyle cssclass="gridHeader"></headerstyle> <columns> <asp:templatecolumn headertext="Hold"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <%# DataBinder.Eval(Container.DataItem, "IsHold") %> </itemtemplate> </asp:templatecolumn> <asp:templatecolumn headertext="Purchase Order"> <headerstyle horizontalalign="center"></headerstyle>

Disable Expand All/Collapse All workflow designer hyperlinks?

Hi,In a blog post by Matt Winker (http://blogs.msdn.com/mwinkle/archive/2009/10/20/wf4-designer-enhancements-in-vs-2010-beta-2.aspx), he notes that: "Additionally, you can choose to expand or collapse individual nodes, or go to the "Expand All" command in order to expand out the tree.  One thing to note is that we don't allow expansion inside of a flowchart because we don't yet have a mechanism that lets me rearrange all of the items around that newly expanded activity.  "My question is, will there be a way by the time RTM releases to do expansion within a flow chart?  The flow chart model is what I'll be using exclusively, so I'm quite interesetd in this.If there will not be support by the time workflow reaches RTM, is there or will there be a way that we can hide the Expand All/Collapse All hyperlinks?Thank you,Notre

Create a Tree view with expand or collapse using XSLT


I have created an XSLT file to show the contents of xml in HTML format in the form of a tree. Now, my requirement is to add expand or collapse capability to this output(html) using XSLT and Javascript. The sample output looks like this:

Resource Center

  • Home
    • Resource Center
    • List of Resource Types
    • programmatically expand/collapse the collapsiblepanelextender


      using c#.net/asp.net 2005.

      I have a collapsiblepanelextender that is working well when the user clicks on the "expand" and "collapse" buttons on the screen, however I would like to programmatically expand and collapse the collapsiblepanelextender in the c# code-behind.  Has anyone done this before?

      I am typing the name of the collapsiblepanelextender in the code behind function and intellisense is not even showing that control as being a control that I can access from the aspx page so not certain why this is happening.

      when I look in the aspx page the collapsiblepanelextender has a red squiqqly error line under it that says (when you mouse over it): "element 'collapsiblepanelextender' is not a known element. this can occur if there is a compilation error in the website"

      but the panel works well when the user clicks it to expand and collapse and there are no compilation errors on the page, otherwise the page would not run, does this make sense?



Expand /Collapse quick launch


Hi All,

Can any one help in getting the below link script for collapse and expand quick launch.

I did not find any script. it says to paste script in master page using designer


any idea?

i want exact above link

Thanks in Advance

SSRS 2008 - Drilldown - Grouping collapse/expand /title/header



I have been able to have a report with Group / Group count and Details.

The issue I have are:

1. When I collapse the drilldown to get only the Group and Group countit just collapse per page not the full report...I would like to have all Group / Group count on 1 or two pages and then epand as needed...

2. The title and column headers appear only on the first page... how to get it on all pages?

What is the "Linked Report" doing? Is it another kind of Drill Down..?

I need to have my summary report per OS for example shows only the OS Name then Count and if I click to expand I will have the servers in this group... but it seems working reverse way, I mean you have the details and if you collaspe you have the summary but this seems limited per page...



System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 Support

Expand All/Collapse All Buggy


I've scoured the forums and no one has ever answered this question for other people who have posted it.

I have a SSRS 2005 report where the user can choose to expand all groups by selecting yes or no in a parameter called ExpandAllGroups. It works great for the most part - if they chose to expand all groups, then all four groups and my details line all show as expected.

However, once they've run the report with everything initially expanded and they decide to collapse group #1 it will actually still retain all the space that the three child groups occupied. So if it took up five pages total and you collapse it, it still has five pages of white space showing between what you just collapsed and the next grouping. My report is massive and I have one group that if you collapse it then you have something like 50 pages of white space until the next group.

The only suggestion I've seen is setting up your visibilty property via the group dialog box rather than the visibility properties for the row. I did this to no avail. It doesn't appear to matter if I do it on the row or on the group, it still fails to collapse correctly.

Anyone found a solution to this?? There were about a half dozen previous posts with the same issue but no resolution was ever posted.




How to increase the height of Expander control HEADER in XAML



How to increase the height of Expander control HEADER in XAML?



Many Thanks Deepak

How to change th SPGridView Expand/Collapse images


Hi All,

How I can change the SPGridView Expand/Collapse Image for a SPGridView, By default it will display the "plus and minus" images, I want to use my own image insteadof this, Please let me the solution.



How to track Collapse/ Expand event of AJAX Collapsible Panel Extender to call javascript ?



I am working with AJAX Panel Collapsable panel extender.

The Panel which is to be collapsed/Expanded using AJAX panel Extender contains one custom control, containing 3 Radio buttons one of them is set checked through a javascript function when page loads. I have kept the default property of AJAX collapsable panel as Collapsable.

Script for AJAX Collapsible Panel Extender is as follow. 

 <ajax:CollapsiblePanelExtender ID="cpeSOP" runat="Server" CollapseControlID="pnlCollapsable"
   CollapsedSize="0" Collapsed="True" CollapsedImage="~/public/img/arrowRightWhite.gif"
   ExpandControlID="pnlCollapsable" ExpandDirection="Vertical" ExpandedImage="~/public/img/arrowDownWhite.gif"
   ImageControlID="Image1" SuppressPostBack="true" TargetControlID="pnlSearchCriteria">

But problem is that when page loads, collapsible panel gets collapsed but it resets the radio buttons in custom control. i.e. First radio button does not get checked. Script for Collpsable panel is as follow. I want to call some javascript code when the panel is Collapsed or Expanded. Is there any way to track Coll

Collapse / Expand parameters



I've indented the ParameterCaptions on my parameter lists and it works fine, but there are 100's of levels, so this makes the UI extremely non-friendly to the user.

I know that Microsoft has not built in capability to expand or collapse parameter lists, but is there any way to build this in with custom code or by combining it with a different product?

Any ideas are welcome.



Louis Young
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend