dependencyobject Questions

1

I'm using a button where I've shaped it, in its ControlTemplate. I've also added a storyboard in the controlTemplate. The storyboard changes the boarder of the element in my controlTemplate. I acce...

4

I have a class called MyComponent and it has a DependencyProperty caled BackgroundProperty. public class MyComponent { public MyBackground Background { get { return (MyBackground)GetValue(Backg...
Hygienic asked 18/5, 2010 at 9:35

1

Solved

How to make an array of dependency object properties bindable for later binding as a static resource? The code I have now, it seems that my DependencyObject bypasses the dependency property system...
Cochleate asked 2/10, 2013 at 18:44

3

Solved

Does anybody know if it is possible to do databinding on an IValueConverter based class? I have the following converter: [ValueConversion(typeof(int), typeof(Article))] public class LookupArticle...
Pacien asked 9/3, 2009 at 9:22

3

I have a DependencyObject (an Interactivity Behavior), and I'd like to get its x:Name (just get, not set) from code. Is it possible? EDIT: Following AnthonyWJones's answer: I've inserted the foll...
Searle asked 4/3, 2011 at 11:29

2

Solved

I saw online 2 different approaches to enhancing an IValueConverter. One of them extended a ValueConverter from MarkupExtension, the other from DependencyObject. I can't extend from both, so I'm wo...
Spearhead asked 16/9, 2011 at 13:5

1

I have built custom Rules Engine, where each element of this engine is a descendant of DependencyObject class, so that it could be described in XAML including support for dependency properties, mar...
Marcela asked 12/9, 2011 at 19:36

1

Solved

How do I convert a property name (in string) to a DependencyProperty? I have a set of property names, its values in string and a DependencyObject. Now I want to set these property values to the D...
Piccalilli asked 9/6, 2011 at 10:12

1

Solved

Are there any articles that describe how the DependencyObject class in WPF works "under the hood"? Specifically, I'm curious about how dependency properties are stored and accessed efficient...
Mcilwain asked 23/5, 2011 at 21:12

1

Solved

I've just started playing with DependencyProperties in WPF and I was wanting to check a couple of thoughts while I get to grips with them. Given the following (and ignoring naming convention for n...
Berthold asked 25/2, 2011 at 9:48

1

Solved

As of Silverlight 4 it is possible to data bind against a DependencyObject (instead of a Framework element in previous versions). So far so good, but how do I bind agains a collection of Dependency...

1

Solved

I have a set of controls bound to data, on which I would like to programmaticaly add validators to the bindings. Currently I'm able to iterate over the visual tree to find those controls with bindi...
Greenlee asked 2/11, 2009 at 10:59

1

Solved

I'm getting this error: Cannot use a DependencyObject that belongs to a different thread than its parent Freezable What does that even mean? Is it in English? Is the parent frozen, or is it j...
Mercurialize asked 14/5, 2009 at 18:39

2

Solved

I'm struggling to find sufficient information about the property Inheritance Tree (or Inheritence Context) used by DependencyObject and DependencyProperty. I would like to use the value inheritenc...
Center asked 5/3, 2009 at 12:46
1

© 2022 - 2024 — McMap. All rights reserved.