Browse Source

Add tooltips to both comboboxes in toolbar

pull/1641/head
Christoph Wille 6 years ago
parent
commit
e857fb4f90
  1. 4
      ILSpy/MainWindow.xaml
  2. 18
      ILSpy/Properties/Resources.Designer.cs
  3. 6
      ILSpy/Properties/Resources.resx

4
ILSpy/MainWindow.xaml

@ -93,9 +93,9 @@ @@ -93,9 +93,9 @@
</CheckBox>
<Separator />
<ComboBox Name="languageComboBox" DisplayMemberPath="Name" Width="100" MaxDropDownHeight="Auto"
ItemsSource="{x:Static local:Languages.AllLanguages}"
ItemsSource="{x:Static local:Languages.AllLanguages}" ToolTip="{x:Static properties:Resources.SelectLanguageDropdownTooltip}"
SelectedItem="{Binding FilterSettings.Language}"/>
<ComboBox Name="languageVersionComboBox" DisplayMemberPath="DisplayName" Width="120" MaxDropDownHeight="Auto"
<ComboBox Name="languageVersionComboBox" DisplayMemberPath="DisplayName" Width="120" MaxDropDownHeight="Auto" ToolTip="{x:Static properties:Resources.SelectVersionDropdownTooltip}"
Visibility="{Binding SelectedItem.HasLanguageVersions, ElementName=languageComboBox, Converter={StaticResource BooleanToVisibilityConverter}}"
ItemsSource="{Binding SelectedItem.LanguageVersions, ElementName=languageComboBox, UpdateSourceTrigger=PropertyChanged}"
SelectedItem="{Binding FilterSettings.LanguageVersion, UpdateSourceTrigger=PropertyChanged}"/>

18
ILSpy/Properties/Resources.Designer.cs generated

@ -1566,6 +1566,15 @@ namespace ICSharpCode.ILSpy.Properties { @@ -1566,6 +1566,15 @@ namespace ICSharpCode.ILSpy.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Select language to decompile to.
/// </summary>
public static string SelectLanguageDropdownTooltip {
get {
return ResourceManager.GetString("SelectLanguageDropdownTooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Select a list:.
/// </summary>
@ -1575,6 +1584,15 @@ namespace ICSharpCode.ILSpy.Properties { @@ -1575,6 +1584,15 @@ namespace ICSharpCode.ILSpy.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Select version of language to output.
/// </summary>
public static string SelectVersionDropdownTooltip {
get {
return ResourceManager.GetString("SelectVersionDropdownTooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Shell.
/// </summary>

6
ILSpy/Properties/Resources.resx

@ -745,4 +745,10 @@ Are you sure you want to continue?</value> @@ -745,4 +745,10 @@ Are you sure you want to continue?</value>
<data name="HighlightMatchingBraces" xml:space="preserve">
<value>Highlight matching braces</value>
</data>
<data name="SelectLanguageDropdownTooltip" xml:space="preserve">
<value>Select language to decompile to</value>
</data>
<data name="SelectVersionDropdownTooltip" xml:space="preserve">
<value>Select version of language to output</value>
</data>
</root>
Loading…
Cancel
Save