expander

Blacklight Expander problem while expanding programmatically

Hi, I am doing a silverlight project in Silverlight 4 and I included the BlackLight project in my project so that I could use their new controls, especialy the dockpanel and the autoexpander, which is causing me at the moment some little problems. What I would like to do is to have several auto-expander that will expand or collapsed wh...

How to align WPF Expander control toggle button

Hi I was wondering is it possible to align the toggle button on a WPF expander control to the far right side? ...

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 this should be easy, but I'm struggling for the right terms to get a solution via google....

Strange WPF ListBox Behavior

I’m trying to bind a List of items to a listbox in WPF. The items are grouped by one value and each group is to be housed in an expander. Everything works fine when I don’t use any custom styles. However, when I use custom styles (which work properly with non-grouped items and as independent controls) the binding doesn’t display any i...

Customizing WPF Expander; Make only icon clickable not whole header

I want an Expander that only expands/collapse it's content when the user clicks on the header icon. (Instead of the whole header being clickable.) Do I have to redefine the control Template to do this? How would it look like? Where can I find the standard templates/styles for controls? Thanks for your time. ...

ScrollViewr around expanders not scrolling automatically when expander is expanded - silverlight 3

I have several expanders inside a ScrollViewer in a fixed sized ChildWindow. The problem is when each expander expanded,the scroll will not scrolling down automatically and as a result,some of the items in the bottom will get hidden and we have to manually scroll down to see them. I saw some posts like the following link but I guess my s...

Ext JS UX - RowPanelExpander

I have this plugin. It works great with gridPanel. But there are some problems with editorGridPanel. After editing of some row plugin stops work. Maybe someone can fix this problem? I looked at code, but cant find answer.... ...

How do I swallow the dropdown behavior inside an Expander.Header?

Hello, I would like to prevent an Expander from expanding/collapsing when users click inside the header area. This is basically the same question as Q 1396153, but I'd appreciate a more favorable answer :) Is there a non-invasive way to do this? I am not sure exactly how to attach behavior to the Expander.Header content to prevent mous...

WPF - Only want one expander open at a time in grouped Listbox

I have a UserControl with a templated grouped listbox with expanders and only want one expander open at any time. I have browsed through the site but haven't found anything except binding the IsExpanded to IsSelected which isn't quite what I want. I am trying to put some code in the Expanded event that would loop through Expanders and c...

WPF ListView groups repeat column headers

Is there a way to repeat the column headers inside each group of a ListView.GridView when using a grouped CollectionViewSource as the source of the ListView? I am using the example at http://msdn.microsoft.com/en-us/library/ms754027.aspx which uses an Expander control to display each group. I would like the column headers to appear in...

Style an Expander control

Hi, I am trying to style an expander control. But i am unable to style a certian area of the control. The figure can be seen in this post.(figure 1) http://stackoverflow.com/questions/2889778/wpf-expander-button-styled-so-it-is-inside-expander-header I want the circle color to be that of my datagrid. How can i accomplish that in WPF. ...

WPF Expander: Reversing the icon direction while keeping the content location (ExpandDirection) the same

I am using the WPF expander like a drawer, it expands up out so that the header remains above the content. When it is collapsed the grid cell that it is in is made smaller as well. I want the expand direction to remain down so that the content fills in below it, however because it moves up it would look better if the icon with the dire...

Can I toggle expandability of a expander?

Is there any property or state I can set on a expander object that makes it unexpandable but still can be selected? I'm thinking for example of the last Child in a TreeView where I don't wan't the Expander to have an expander button. But other uses could be if someone doesn't have access to more then the header or something along that l...

How to Collapse / Expand multiple Expander controls depending on Group name in WPF?

What I want to achieve: To collapse or expand all Expanders that share the same group name within a group style. We have a ListBox and another ListBox nested inside it to display child items. The child items ItemsSource is bound to a CollectionView with Group descriptions attached. The group item template is quite simple: <Expander Is...

silverlight 4 and Layout Styles

Hi all, Does anybody knows what layout styles has been used on Silverlight toolkit website. Specially the Two Regions on Right Hand Side with Expandable and multiple tab items on it. http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html Can we use that? ...

Long URLs from short ones using C#

Hi, I've been using the LongURL.org API for expanding short URLs. The great thing about this service is that it returns a long URL, the title of the actual page and meta-info. The real problem I have is that it seems to take an inordinate amount of time to fetch the data. I'm considering shifting the request to JavaScript so that the U...

How to calculate a bounding box for an Expander?

I have an Expander control and i need to calculate its bounds without invisible elements and margins. It commonly can be done by VisualTreeHelper.GetDescendantsBounds. But it seems that the rect is calculated by VisualTreeHelper doesn't depend on the expander state. For example: http://i.piccy.info/i5/58/39/273958/collapsed.jpg (i can'...

WPF: Help with Scrollviewer MouseWheel Behavior

For some reason my scrollviewer does not process the mousewheel events (or at least scroll when you mouse wheel) when the mouse is over any child. I want it so that either when the mouse wheel is over the entire scrollviewer area, mousewheel scrolls. Either that or when you click on something contained in the scroller, it processes mou...

WPF: How to make a Expander overflow and fill window.

I'm trying to create a expander that has a togglebutton/header as a slim bar to the left but when expanded fills over the rest of the window, even over material that's already there. I'm not really sure what the best way to do it is. I thought perhaps of a grid with 2 columns. First would have the expander, second the other material. Ne...

Re: Expander control in silverlight 4

Hi I have installed the latest silverlight toolkit and dragged the expander control onto my design, there is some kind of an error going around with the name spaces, and my intellisense stopped to work after I added the control, following is the xmlns that is added to the application when I dragged the control onto the xaml editor: xml...