Browse Forum Posts by Tags

Showing related tags and posts for the TreeView for Silverlight forum.

  • Re: Bug in TreeView Drag and drop?

    Posted to TreeView for Silverlight by jovca on Sep 25, 2009
    Problem was resolved in 2009.2.
  • Re: SilverLight Treeview Theme Issue

    Posted to TreeView for Silverlight by jovca on Sep 18, 2009
    Hi, True, it's a bug in the theme. Thanks for reporting it.
  • Re: Remove Treeview Border

    Posted to TreeView for Silverlight by jovca on Sep 18, 2009
    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;
  • Re: Possible bug in the new treeview

    Posted to TreeView for Silverlight by jovca on Aug 4, 2009
    Sounds like it. Thanks for reporting, we'll look into it.
  • Re: Multiple roots

    Posted to TreeView for Silverlight by hyera on Jul 23, 2009
    Sorry, I solved the problem, because I thinked wrong. It is possible to have tree view with multiple roots. Sorry
  • Re: [TreeView] Copy & Drop instead of Drag & Drop

    Posted to TreeView for Silverlight by jovca on Jun 22, 2009
    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...
  • Re: Treeview Edit mode

    Posted to TreeView for Silverlight by jovca on May 7, 2009
    myNode.IsInEditMode = true;
  • Re: Search for a node

    Posted to TreeView for Silverlight by jovca on May 6, 2009
    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...
  • Re: How to refresh TreeNode data

    Posted to TreeView for Silverlight by jovca on May 6, 2009
    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...
  • Re: SoaRequestTag missing

    Posted to TreeView for Silverlight by jovca on Apr 29, 2009
    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; }
Page 1 of 2 (12 items) 1 2 Next >