attachedbehaviors Questions
4
Solved
For those doing pure MVVM, how do you handle a ComboBox SelectionChanged event without reverting to code behind?
I tried e.g. AttachedBehaviors but Event="SelectedChanged" is not supported:
<C...
Wench asked 4/6, 2009 at 13:15
2
Solved
When looking at sample attached properties and behaviors, I've seen a mishmash of uses of FrameworkPropertyMetadata, UIPropertyMetadata and PropertyMetadata. Since they all form an inheritance hier...
Erstwhile asked 21/3, 2010 at 12:11
2
Solved
I know I need to call RemoveValueChanged, but I have not been able to find a reliable place to call this. I'm learning that there probably isn't one.
I looks like I need to find a different way to ...
Herrah asked 15/5, 2014 at 15:11
2
Solved
I am using Resharper 5.1 code analysis many a times i get a comment from resharper as
"Event unsubscription via anonymous delegate"
#Part of Code
if (((bool)e.NewValue))
{
listView.Pre...
Hardi asked 10/1, 2012 at 12:10
3
Solved
I'm working on a WPF MVVM application. The thing that I'm noticing is that I have to write an inordinate amount of boilerplate code just to declare commands (through DelegateCommands from the WPF T...
Chalutz asked 11/8, 2009 at 16:8
1
Solved
In WPF and WinRT it is well known that behaviors do not call their Detach method reliably. The only way to avoid a memory leak is to subscribe to the Unloaded event of the AssociatedObject and unho...
Norword asked 8/7, 2014 at 18:44
3
I am trying to make an attached behavior to reorder rows bby doing Drag & Drop
I found some solution (On Stackoverflow and by googling) and using them i am trying to make the behavior... I too...
Tanya asked 8/5, 2012 at 6:11
1
Solved
I have been trying to implement a behavior on a wpf window therefore I have added reference to System.Winodws.Interactivity in my current solution and then wrote the desired behavior. but in order ...
Questioning asked 13/9, 2013 at 4:46
1
Solved
Is it possible to attach behavior to all TextBoxes in Silverlight application?
I need to add simple functionality to all text boxes.
(select all text on focus event)
void Target_GotFocus(object ...
Semitropical asked 21/11, 2012 at 16:56
2
Solved
I am currently migrating a number of attached behaviours I have created to Blend Behaviours so that they support drag and drop within Expression Blend. I have noticed that authors of Blend behaviou...
Lac asked 8/6, 2011 at 9:13
2
I have created an attached behavior that is used to execute a Delegate of type Func<bool> when the behavior is invoked. Below is the dependancy property definition.
public static readonly De...
Matti asked 8/9, 2010 at 15:17
2
Solved
My goal is to create a reusable Attached Behavior for a FlowDocumentScrollViewer, so that the viewer automaticly scrolls to the end whenever the FlowDocument has been updated (appended).
Problems...
Dufrene asked 21/7, 2010 at 15:27
2
Solved
I am still grokking attached behaviors in general, and am at a loss to see how to write a unit test for one.
I pasted some code below from Sacha Barber's Cinch framework that allows a window to be...
Mandibular asked 19/2, 2010 at 14:43
2
Solved
I've implemented the attached command behavior pattern found here and it works well to allow e.g. a Border to have a left- or right-click event that fires in the ViewModel:
XAML:
<Border Backg...
Askwith asked 29/5, 2009 at 15:0
1
© 2022 - 2024 — McMap. All rights reserved.