visual-tree
How come I can only have one instance of a Silverlight UserControl per page?
Its pretty lame, but I tried adding two UserControl\'s to my Silverlight Page, and I get an exception telling me (with extensive digging) that the same control name has been used to the visual tree tw[详细]
2023-04-05 02:31 分类:问答How do I use parent's ItemsHost for HierarchicalDataTemplate in XAML?
I have a tree- or menu-like data structure which I wan开发者_如何学Ct to display in a Panel (specifically a self-made PolarPanel), but all items must be VisualChildren of the same panel.[详细]
2023-03-21 12:26 分类:问答Replace a control within a user control through dependency property
I\'ve made a simple project to illustrate my problem. I have a user control (\'ButtonPod\') that houses a button and a rectangle:[详细]
2023-03-16 12:21 分类:问答When clearing a root datacontext by removing from visual tree, binding further down the tree remains
[Silverlight] I have a large visual object tree I\'m removing from the visual tree (Grid.Children.Clear()), upon removal the DataContext of the root nulls out, but further down the tree a binding开发者[详细]
2023-03-15 04:15 分类:问答how to test the speed of visual tree rendering in silverlight?
For example, I create a Canvas that contains a big amount of Shapes like this: var canvas = CreateCanvasThatContainsShapes();[详细]
2023-03-13 19:20 分类:问答Clear TextBlock from Button when they both are in a DataGridTemplateColumn
I have a DataGrid with DataGridTemplateColumn. The DataGridTemplateColumn contains a button and TextBlock.[详细]
2023-03-08 06:10 分类:问答WPF - How to detect when new Visual child elements are added?
Based on some custom security settings, I alter window child controls to readonly and disabled. To accomplish this, I loop through child controls when the window loads.[详细]
2023-03-06 14:06 分类:问答Help with using the visual tree in Silverlight
I have a question of how I can use the visual tree helper to get an object 开发者_如何转开发that I need.[详细]
2023-02-06 19:50 分类:问答Removing an item from the visual tree in a generic way
I would like to remove a FrameworkElement from the visual tree. Since the FrameworkElement has a Parent property, it would be obvious to solve this problem by removing it from there:[详细]
2023-01-29 09:56 分类:问答WPF: How to walk up the Visual Tree to find a Model3DGroup a clicked 3d-model is in?
I\'m displaying a few 3D-models as Model3DGroups. They are surrounded by Viewport3D which catches MouseDown-events.[详细]
2023-01-17 08:50 分类:问答