-
Problem was resolved in 2009.2.
-
Hi, True, it's a bug in the theme. Thanks for reporting it.
-
Hi, This should do the trick (you're almost there): tvSiteMap.BorderThickness = new Thickness(0); tvSiteMap.BorderBrush = new SolidColorBrush(Color.FromArgb(0, 255, 255, 255)); // transparent tvSiteMap.HeaderVisibility = Visibility.Collapsed;
-
Sounds like it. Thanks for reporting, we'll look into it.
-
Sorry,
I solved the problem, because I thinked wrong. It is possible to have tree view with multiple roots.
Sorry
-
Hi, This is definitely possible to do with the TreeView. 1) Attach listener to BeforeNodeDrop event 2) Create a copy of the dragged node and add it to the targetTree: TreeViewNode draggedNode = e.Items[0] as TreeViewNode; e.targetParentNode.Items.Add(new TreeViewNode() { Text = draggedNode.Text, IconSource = draggedNode.IconSource }); // prevent move e.Cancel = true; The dragged node still has all the references to its original tree, i.e. draggedNode.ParentNode is still valid. This allows us to add...
-
myNode.IsInEditMode = true;
-
Simple search function: private TreeViewNode findNodeById(TreeView tree, string mySearchId) { foreach (TreeViewNode node in tree.WalkDepthFirst()) { if (node.Id == mySearchId) return node; } return null; } or, the inline LINQ query: TreeViewNode searchedNode = myTreeView.WalkDepthFirst().FirstOrDefault(n => n.Id == mySearchId); WalkBreadthFirst() is used in the exact same manner. For regular search, your choice might depend on the most common depth of the nodes you're searching for in the...
-
Hi, We don't have a dedicated Refresh() method (one is already planned for SP2 or 2009.2 release, whichever comes first), but you can use the following (admittedly, not very intuitive) workaround: parentNode.IsExpanded = false; parentNode.IsLoadOnDemandCompleted = false; parentNode.IsLoadOnDemandEnabled = false; parentNode.IsLoadOnDemandEnabled = true; parentNode.Items.Clear(); parentNode.Dispatcher.BeginInvoke(() => { parentNode.IsExpanded = true; }); Refreshing the whole TreeView is more...
-
Hi, TreeView SoaRequestTag & SoaResponseTag properties will be available in the forthcoming service pack 1. In the meantime, you can use the following: TreeView1.BeforeSoaRequestSent += new EventHandler(TreeView1_BeforeSoaRequestSent); [...] void TreeView1_BeforeSoaRequestSent(object sender, TreeViewSoaRequestCancelEventArgs e) { e.Request.Tag = myExtraData; }