问题标签 [expander]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
10040 浏览

wpf - WPF - 如何在任何时候只扩展一个扩展器

我有一个带有一组扩展器的 StackPanel,如何设置它以便在任何时候只扩展扩展器?

干杯

AW

0 投票
1 回答
92 浏览

wpf - WPF中的扩展器

我想创建一个可以显示不同配置的扩展器。例如颜色设置、邮件设置。

假设有三个扩展器......垂直对齐。我想当扩展器折叠或扩展时它会移动下一个扩展器。当扩展器折叠时,下部扩展器将与最上面的扩展器对齐。

像扩展器可以在折叠模式下如下对齐:
Exp1
Exp2
Exp3

在扩展模式下它将是

Exp1

内容

经验2

exp2的内容


Exp3

Exp3 的内容

请帮忙

0 投票
4 回答
18691 浏览

c# - WPF 扩展器 IsExpanded 绑定

我有一个Expander控件,其IsExpanded属性绑定到 mvvm 模型中的布尔值。在您不触摸扩展器之前,绑定工作正常。单击展开器中的箭头进行展开后,绑定将停止工作。在模型中将 bool ShowPreview 设置为 false 不会折叠扩展器。

0 投票
1 回答
3081 浏览

wpf - TreeView 的样式扩展按钮

这是我的 XAML:

所以我想要的是,如果项目被扩展,然后显示不同的图像。

0 投票
1 回答
515 浏览

haskell - 没有固定尺寸的 GTK 扩展器

我在使用 GTK Expander 小部件时遇到了一些问题。我在一个垂直的盒子里有几个扩展器。折叠扩展器时,我希望下面的扩展器“随机”向上,以满足折叠扩展器栏的底部。但是,使用 VBox 似乎为每个小部件保留了固定数量的垂直空间,当展开器折叠时,该垂直空间不会改变。

附带说明一下,我使用的是 GTK 版本 2.14.7。我在 Windows 7 上通过 Gtk2Hs 绑定到 Haskell(GHC 版本 6.10.3)使用 GTK。

0 投票
1 回答
909 浏览

wpf - WPF 扩展器 - 在 Visual Studio 2010 设计窗口中看不到内部控件

我正在使用 Visual Studio 2010,在 WPF 应用程序中我正在使用扩展器。问题是 Expander 内的 GroupBox 等在设计窗口的视图中是隐藏的。

有什么想法让他们展示吗?

谢谢!

0 投票
1 回答
874 浏览

wpf - Xaml中的WPF扩展器?

我想做一个ItemsControl提供一些自己的孩子,然后在使用时可以添加其他孩子,类似于内置Expander类。

但是,在此示例中,HeaderTextBlock也被删除。这是我昨天问的一个问题的改写。

LayerPanelItem.xaml:

主要.xaml:

0 投票
1 回答
917 浏览

wpf - wpf - 如何在 datagrid 内部的扩展器和 datagridrow 属性之一之间创建依赖关系

这是一个普遍的问题。并且可能不是特定于数据网格。我如何关联 2 个属性或 2 个不同的 UI 元素/控件

就像每个 datagridRow 都有一个 Expander 一样,我希望 IsExpanded 属性依赖于 datagridrow selected 事件。

谢谢

0 投票
1 回答
1182 浏览

wpf - 我需要在窗口中汇总一个扩展器和它所在的 stackpanel 对象

这是我拥有的代码,我想知道如何完全卷起堆栈、扩展器和其中的对象,以推动其下方的所有对象以占用上层堆栈和对象卷起后留下的空间。我当前的代码如下:

0 投票
0 回答
551 浏览

silverlight - Blacklight Expander problem while expanding programmatically

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 when I click on button. In my case more specifically, each auto-expander have a set of parameter to fill, which in turn will fill the other expander and the current one would collaps and the just filled one would expand.

The idea is simple, yet when I use a button which is on one of my expander, it only works once... It would expand/collapse the first time, then after that, nothing. I trace the code and it seems to go through just fine, but the property value won't change

Here is my code

Could it be a known bug, or must I reset some flags to make it work?

Edit : Forgot to mention, if it makes any difference, but the IsExpanded property seems to be a dependancy property. Thanks.