Skip to content

Commit

Permalink
Resolve Usercontrol access key binding
Browse files Browse the repository at this point in the history
  • Loading branch information
IvenBach committed Jul 9, 2020
1 parent ee06eb3 commit f1a9e7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Rubberduck.Core/UI/Controls/SearchBox.xaml.cs
Expand Up @@ -56,6 +56,8 @@ public string Hint

public ICommand ClearSearchCommand => new DelegateCommand(LogManager.GetCurrentClassLogger(), (arg) => Text = string.Empty);

public TextBox ValueContainerInput { get; }

public SearchBox()
{
// design instance!
Expand All @@ -66,6 +68,7 @@ public SearchBox()
Background = SystemColors.WindowBrush;
// not so much design instance
InitializeComponent();
ValueContainerInput = ValueContainer;
}
}
}
2 changes: 1 addition & 1 deletion Rubberduck.Core/UI/Settings/InspectionSettings.xaml
Expand Up @@ -61,7 +61,7 @@
</StackPanel.Resources>
<Label Content="-" />
<Image Source="{StaticResource FilterImage}" Width="19" />
<Label Target="{Binding ElementName=searchBox, Path=ValueContainer}"
<Label Target="{Binding ElementName=searchBox, Path=ValueContainerInput}"
Content="{Resx Key=InspectionSettings_FilterByDescription, ResxName=Rubberduck.Resources.RubberduckUI}" />
<controls:SearchBox x:Name="searchBox"
Width="100"
Expand Down

0 comments on commit f1a9e7a

Please sign in to comment.