attached-properties
WPF: How to get name or other unique identifier of calling object in event handler for serialization?
I have a GridView and want to serialize column widths across sessions. My idea of how to accomplish this is to attach a behavior to the GridViewColumns in such a way that each time the width of a colu[详细]
2023-02-02 17:09 分类:问答multiple uses of attached property does not work
My guess is I\'m not understanding attached properties correctly.I\'m trying to convert the FlowDocument on a RichTextBox to an HTML string property in my view model.I have two RichTextBoxes that are[详细]
2023-02-01 00:57 分类:问答Get attached property instance from dependency property change callback
Is开发者_高级运维 there anyway of getting the instance of an attached property from a property change callback sitting on the attached property type?[详细]
2023-01-31 03:14 分类:问答Where to set window property in XAML
I found some code for an attached property that will let me escape close a window called as a dialog here on SO.[详细]
2023-01-31 01:42 分类:问答Attached or dependecy Property for ValidationRule WPF
I want to bind the attached property or dependency property in xaml for the ValidationRule in xaml and then based on the value of the attached property or dependency property I want to make sum decisi[详细]
2023-01-27 02:03 分类:问答How can an AttachedProperty have multiple values?
How can an AttachedProperty which 开发者_高级运维is a single property defined by an owning parent element, be set with multiple values through several child elements of that parent?[详细]
2023-01-24 03:19 分类:问答The property does not exist in XML namespace
I\'m currently working on enabling drag-and-drop support for our company app. The error I keep getting seems weird to me.[详细]
2023-01-21 20:41 分类:问答Focus on a WPF TextBox doesn't work properly with attached properties
In WPF MVVM environment, I\'m trying to ensure that focus is given to a TextBox. What happens is that the Cursor appears in the TextBox but is not flashing and the TextBox does not have focus. The cod[详细]
2023-01-21 15:49 分类:问答Attached Properties in XAML without the word 'Property'
MS defines attached properties like \'Grid.RowProperty\' and \'Grid.ColumnProperty\', but in XAML you just call it with \'Grid.Row\' and \'Grid.Column\'[详细]
2023-01-20 05:35 分类:问答Removing the render transform of a child element
Ok, So I have a situation, where an border is being scaled (sometimes by a large amount) and translated. Inside the border is a grid, and inside the grid are two images, one is a photo and is stretch[详细]
2023-01-16 19:51 分类:问答