01-Navigation/6-Find_usages/6.2-Find_usages_example.xaml (13 lines of code) (raw):

<UserControl x:Class="JetBrains.ReSharper.Koans.Navigation._6_Find_usages.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:navigation="clr-namespace:JetBrains.ReSharper.Koans.Navigation" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <Grid> <!-- This button tells ReSharper the type the DataContext should be (note that no-one sets it in this example) --> <Button Content="{Binding ButtonText}" d:DataContext="{d:DesignInstance Type=navigation:FindUsages}" /> <!-- This button is just using the current DataContext. ReSharper will try to infer usage --> <Button Content="{Binding ButtonText}" /> </Grid> </UserControl>