It also gets rid of the longer bindings to find an ancestor and bind on it's data context (which always felt wrong to me).I am leaving this here for anyone else who struggled with this binding, and wondered if …What is the simplest way to bind a group of 3 radiobuttons to a property of type int for values 1, 2, or 3?Datacontext={binding relativesource={relativesource self}} clarification:The data context being set to the value above should be done at whatever element owns the code behind -- so for a window, …I have a wpf 4 application that contains a textblock which has a one-way binding to an integer value (in this case, a temperature in degrees celsius).The xaml looks like this:
Dice Effects Isaac at Adam Goudeau blog
Dice Effects Isaac at Adam Goudeau blog

Dice Effects Isaac at Adam Goudeau blog of Binding Of Isaac Dice Room: Is This The Most Overpowered Strategy EVER? .

18
By 
How do i use relativesource with wpf bindings and what are the different use-cases?The way i worked around this limitation was to expose only a binding property in my class, keeping the dependencyproperty private altogether.I implemented a propertybindingtosource write-only …