An example of a custom view?

I'm thinking of using YLOD but I have a boolean setting where, rather than just having a toggle switch, I want the user to pick between two radio buttons so that each button can have text against them to clarify the choice the user is making.

From the documentation, this would seem to require the creation of a view factory and then providing my own view. However, I'm unclear what I would need to do to achieve this. Can you suggest what is required?

Instead of simply using the type of the option to provide your own value, you can also access the property values of the option that is passed in; that would enable you to even provide different editors based on the option data.

Here, "RadioButtonEditor" is a user control you have created that is able to edit the option value. I somewhat assume that you're following an MVVM approach in the above sample, and set the DataContext of your user control to the option in question (so you
can use bindings etc. to manipulate the option in your editor) - of course you are free to use any kind of control and any way of setting up that control that you can imagine.

In the original code (Views/BooleanEditor.xaml, feel free to look at it) this is all that is required to edit the boolean option: