herbrandson
herbrandson

Reputation: 2417

Using Caliburn.Micro to bind to sub-properties

I'm using Caliburn.Micro and I would like to be able to do something like the following...

<TextBlock x:Name="User.Name"></TextBlock>

However this won't compile because xaml doesn't allow names to contain a "."

What is the preferred solution here? Do I just revert to standard databinding syntax?

Upvotes: 3

Views: 745

Answers (1)

EisenbergEffect
EisenbergEffect

Reputation: 3999

You should use User_Name.

Upvotes: 9

Related Questions