uielement
How to copyclone a UIElement and keep the layout/render information?
I wish to copy a complex data-bound UIElement but keep the Binding, Layout and Rendering information from the original UIElement.[详细]
2023-03-03 14:05 分类:问答collapse UIElements in Silverlight LOB application based upon data in model
Wi开发者_高级运维thin a form I have a user control for each field being returned. The control consists of a label and a texblock within a stack panel. This control is part of a datatemplate that makes[详细]
2023-03-02 19:59 分类:问答How to find out whether a mouse button is pressed when mouse pointer is leaving a UIElement
I\'ve been working on a GUI in WPF which I\'m fairly new to, having only used Windows Forms up until now. So far, my GUI is very simple: it contains two rectangles, each of which drops a shadow. The s[详细]
2023-02-22 19:13 分类:问答How to add UIElement to List<UIElement>?
I try to add two Canvas to a List<Canvas>, but I receive exception from the following code: List<Canvas> cvList = new List<Canvas>();[详细]
2023-02-22 07:47 分类:问答Dynamic and Immutable UIElement Arrays
I have a WrapPanel that contains multiple Canvas of the same size. Each Canvas has some UIElements (i.e. TextBox, TextBlock, Buttons etc) as children. The creation of each Canvas (including its UIElem[详细]
2023-02-21 16:31 分类:问答How do I list UIElements in ListView items?
I\'m trying to access UIElements in the VisualTree of a ListView but the ItemsCollection is empty even though the ListView IsLoaded, IsInitialized and has items in DataContext.[详细]
2023-02-14 09:26 分类:问答Find the applied ScaleTransform on a Control or UIElement?
I have a control sitting somewhere in my Window. At the root of this Window is a grid named MainGrid. I have a ScaleTransform applied on MainGrid\'s LayoutTransform that I use to zoom in on all the co[详细]
2023-02-13 12:10 分类:问答How can you get the parent of a UIElement?
Ok, I know that FrameworkElement, which is a direct subclass of UIElement, has a Parent property, but Panels have children of type UIElement, not FrameworkElement (Children is of type UIElementCollect[详细]
2023-02-11 14:52 分类:问答WPF: ErrorMessage when trying to Bind a Line to two UIElements
Im trying to bind a Line to two ScatterViewItems: private void BindLineToScatterViewItems(Shape line, ScatterViewItem origin, ScatterViewItem destination)[详细]
2023-02-11 05:13 分类:问答Referencing a UIElement in a ViewModel from XAML
I\'m relatively new to using WPF and the MVVM architecture. I have a question about referencing UIelements from a XAML window\'s DataContext.[详细]
2023-02-10 18:21 分类:问答