Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

I would probably do...

Name your window x:Name=window
RelativeSource FindAncestor is sort of a taboo

<TextBox Text="{Binding Title}"
  IsEnabled="{Binding ElementName=window, Path=DataContext.AllowEditing, Converter=NegateConverter}"
  Grid.Row="0"
  Grid.Column="1"/>


You need to create an account or log in to post comments to this site.