treeview

How to bind two different collection at one TreeView branch

て烟熏妆下的殇ゞ 提交于 2020-02-07 05:21:05
问题 I'm writing a WpfCustomControlLibrary based on MVVM pattern. I have a View contains TreeView object which must handle quite expanded model. Model: public class TreeBranchesView { public ObservableCollection<DiscountGroup> DiscoutGroups { get; set; } } public class DiscountGroup : ViewModelBase { public int ID { get; set; } public string GroupName { get; set; } public decimal DefaultValue { get; set; } private bool _isCheckedInMenu; public bool IsCheckedInMenu { get { return _isCheckedInMenu;

Item 'layer 7' already exists in the treeview : in Maya

血红的双手。 提交于 2020-02-06 07:49:59
问题 I want to add two different items that have the same name to a TreeView but they have a different parent. But I get the error: Item 'layer 7' already exists in the TreeView What should I do to avoid this. My code: import maya.cmds as cmds import os window = cmds.window() layout = cmds.formLayout() control = cmds.treeView( parent = layout, numberOfButtons = 0, abr = False ) cmds.formLayout(layout,e=True, attachForm=(control,'top', 2)) cmds.formLayout(layout,e=True, attachForm=(control,'left',

Item 'layer 7' already exists in the treeview : in Maya

梦想与她 提交于 2020-02-06 07:48:24
问题 I want to add two different items that have the same name to a TreeView but they have a different parent. But I get the error: Item 'layer 7' already exists in the TreeView What should I do to avoid this. My code: import maya.cmds as cmds import os window = cmds.window() layout = cmds.formLayout() control = cmds.treeView( parent = layout, numberOfButtons = 0, abr = False ) cmds.formLayout(layout,e=True, attachForm=(control,'top', 2)) cmds.formLayout(layout,e=True, attachForm=(control,'left',

How to fully change the background color on a tkinter.ttk Treeview

风格不统一 提交于 2020-02-03 05:49:53
问题 I have been attempting to make a directory browser for a recent project of mine that I'm developing in python 3.4.4 with tkinter. I do not want the background to be the default color, so I have gone about changing the background of most widgets. I didn't have any trouble until I got to the Treeview. I'm not too good with ttk.Style(), but I still managed to get ttk.Style().configure("Treeview", background="black", foreground="white") to work, however this only changes the background of the

Wpf treeview - i want to animate the expansion of the nodes

扶醉桌前 提交于 2020-02-03 02:14:37
问题 I have a databound treeview that i want to animate when the nodes are expanded. The animation should work vertically. Any ideas on how I could do that? 回答1: Download default style for treeview and apply it to your treeview control, then change/add this xaml code to the treeview style: <!-- change item presenter to include a layout transform --> <ItemsPresenter x:Name="ItemsHost"> <ItemsPresenter.LayoutTransform> <ScaleTransform ScaleY="1" /> </ItemsPresenter.LayoutTransform> </ItemsPresenter>

Multi-column Tree-View in WPF [closed]

流过昼夜 提交于 2020-01-30 14:36:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Anyone know where I can get a control like the Multi-column Tree-View in WPF? 回答1: I've implemented this based on the old blog post here. But if I remember right I had to do some manual work to get things to work right. Specifically with the scroll bars. But that should give you a good start. 回答2: SharpDevelop

Multi-column Tree-View in WPF [closed]

对着背影说爱祢 提交于 2020-01-30 14:36:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Anyone know where I can get a control like the Multi-column Tree-View in WPF? 回答1: I've implemented this based on the old blog post here. But if I remember right I had to do some manual work to get things to work right. Specifically with the scroll bars. But that should give you a good start. 回答2: SharpDevelop

How to Check or Uncheck All Child Nodes in TreeView

白昼怎懂夜的黑 提交于 2020-01-30 02:41:16
问题 I have a Deselect button in my application, but its not working well. If I am going to deselect the folder it will deselect. But the folder within a subfolder will remain selected(checked). Any help with this issue would be appreciated. 回答1: You should find all nodes including descendants and then set Checked=false . For example you can use this extension method to get all descendant nodes of tree or descendants of a node: using System.Linq; using System.Windows.Forms; using System

Shift+Tab not working in TreeView control

对着背影说爱祢 提交于 2020-01-28 06:01:44
问题 I cannot get backwards navigation using Shift+Tab to work in a TreeView that contains TextBoxs, forward navigation using Tab works fine and jump from TextBox to TextBox inside the TreeView. Anytime Shift+Tab is used when one of the TextBoxes inside the TreeView, then the focus is move to the previous control outside the TreeView, instead of the previous control inside the TreeView. Also its only Shift+Tab navigation that are not working correctly, Ctrl+Shift+Tab work as expected and in the

python tkinter treeview not allowing modal window with direct binding like on_rightclick

半腔热情 提交于 2020-01-26 04:11:47
问题 Treeview with mouseclick binding that directly calls a function to open a modal window fails on grab_set() tkinter.TclError: grab failed: window not viewable The same works perfectly well if the mouseclick first opens a popup menu that calls the modal window function. Is it not possible to open a modal window directly from a mouseclick (preferably doubleclick)? Linux Mint 17/Ubuntu 14.04, 64bit, Python 3 My simple code example below. Please note that though I call two different functions, the