Questions tagged [expander]

An Expander control provides a way to provide content in an expandable area that resembles a window and includes a header.

jQuery Expander plugin: The Expander Plugin hides (collapses) a portion of an element's content and adds a "read more" link so that the text can be viewed by the user if he or she wishes. By default, the expanded content is followed by a "read less" link that the user can click to re-collapse it. Expanded content can also be re-collapsed after a specified period of time.

WPF Expander: Represents the control that displays a header that has a collapsible window that displays content.

555 questions
59
votes
3 answers

How to style a WPF Expander Header?

I would like to apply a style on a WPF Expander Header. In the following XAML I have an Expander but the style is for all of it not just for the…
Vasile Tomoiaga
  • 1,727
  • 3
  • 16
  • 19
32
votes
8 answers

How can I make a WPF Expander Stretch?

The Expander control in WPF does not stretch to fill all the available space. Is there any solutions in XAML for this?
coder_bro
  • 10,503
  • 13
  • 56
  • 88
31
votes
5 answers

Add an expander (collapse/expand) to a Panel WinForm

I have a panel containing a DataGridView and 3 buttons at the bottom of a form. I want to add the possibility to expand and collapse this panel. Is there a way to do it in a Windows Forms application? Has someone done something similar?
aleroot
  • 71,077
  • 30
  • 176
  • 213
28
votes
2 answers

Animate Expander in WPF

How to animate the expanded and collapsed actions of a Wpf expander control?
Sauron
  • 16,668
  • 41
  • 122
  • 174
25
votes
1 answer

Hiding the Arrows for the WPF Expander Control

When using the WPF Expander control it is displayed with the default "Up" and "Down" arrow keys. Is there any way to hide those up and down arrows? UPDATE: I managed to remove the arrows by creating a ControlTemplate but now the expanding ability…
azamsharp
  • 19,710
  • 36
  • 144
  • 222
18
votes
6 answers

I need the Expand / Collapse for RowDetailsTemplate

I have a DataGrid. It has DataGrid.RowDetailsTemplate. When a button is clicked it should Expand / Collapse; how would I do that?
Mediator
  • 14,951
  • 35
  • 113
  • 191
17
votes
4 answers

Expander button on the right side: how to do it?

i want to position the Expander button on the right side of the label. How to do this?
Sender
  • 6,660
  • 12
  • 47
  • 66
17
votes
2 answers

Combine expander and grid (resizable expander)

I would like to have something like a resizable Expander. My basic idea was something like this:
Daniel Bişar
  • 2,663
  • 7
  • 32
  • 54
14
votes
5 answers

WPF Expander.Header horizontal stretch

I have an Expander in Wpf. In the header I have Label on left aligned and want to have a button on the right site. I use the following XAML:
scher
  • 1,813
  • 2
  • 18
  • 39
14
votes
5 answers

WPF Expander IsExpanded binding

I have an Expander control with its IsExpanded property bound to a bool in the mvvm model. The binding works fine until you dont touch the expander. Once you click the arrow in the expander to expand, the binding stops working. Setting the bool…
netraju
  • 141
  • 1
  • 1
  • 5
13
votes
7 answers

Preventing a WPF Expander from expanding when header is clicked

How can I prevent a WPF Expander from expanding when its header is clicked? I would like my Expander to expand or collapse only when the expand button itself is clicked. I imagine the answer has something to do with canceling a bubbled event. If…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
12
votes
7 answers

Multiple Expander have to collapse if ONE is expanded

I have 4 expander controls. When one expander is expanded, how can I make all others collapse/close?
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
11
votes
4 answers

Hiding expander when all content is collapsed

I have A WPF Datagrid that has a Collection View Source with 3 levels of grouping on it. I have styled the datagrid to use 3 expanders such that it looks like this: Level 1 Expander Level 2 Expander Level 3…
Steven Wood
  • 2,675
  • 3
  • 26
  • 51
11
votes
2 answers

How do I change the WPF Expander Header Text when expanded or collapsed?

Using a WPF expander, I want the Header to change from See More to See Less when the control is expanded, and back to See More when it's collapsed again. I'd prefer a WPF pure solution, rather than a C# or other code behind method. I get the feeling…
Scott Ferguson
  • 7,690
  • 7
  • 41
  • 64
11
votes
1 answer

Default ControlTemplate for Expander

can someone (probably using Blend) provide me a working default ControlTemplate for the WPF Expander? I want to do some slight modification but seems that I cannot find a source for a valid template. Thanks in advance.
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
1
2 3
36 37