Skip to content
Permalink
Browse files

Add tooltip status text for link buttons.

  • Loading branch information
dfkeenan authored and xen2 committed Jan 27, 2019
1 parent 24ccfd8 commit aa9577605fa5269c96a2430bf20148d322a9676c

Some generated files are not rendered by default. Learn more.

@@ -418,4 +418,8 @@
<value>Remove From List</value>
<comment>Menu item of recent files list</comment>
</data>
</root>
<data name="ToolTipOpenLink" xml:space="preserve">
<value>Open '{0}'</value>
<comment>The tooltip for website links.</comment>
</data>
</root>
@@ -260,19 +260,37 @@
<DockPanel Margin="10">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" DockPanel.Dock="Bottom" Margin="10">
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Twitter}" SnapsToDevicePixels="True" Margin="2"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}"
Content="{sskk:Image {StaticResource ImageTwitter}, 24, 24, NearestNeighbor}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
</Button>
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Facebook}" SnapsToDevicePixels="True" Margin="2"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}"
Content="{sskk:Image {StaticResource ImageFacebook}, 24, 24, NearestNeighbor}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
</Button>
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Reddit}" SnapsToDevicePixels="True" Margin="2"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}"
Content="{sskk:Image {StaticResource ImageReddit}, 24, 24, NearestNeighbor}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
</Button>
<!--<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
@@ -293,47 +311,83 @@
<UniformGrid Columns="2">
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Issues}">
CommandParameter="{x:Static r:Urls.Issues}"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
<StackPanel Orientation="Horizontal" SnapsToDevicePixels="True">
<Image Margin="5" Source="{StaticResource ImageIssues}" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="16" Height="16"/>
<TextBlock DockPanel.Dock="Bottom" HorizontalAlignment="Center" Text="{x:Static r:Strings.ButtonIssues}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Forums}">
CommandParameter="{x:Static r:Urls.Forums}"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
<StackPanel Orientation="Horizontal" SnapsToDevicePixels="True">
<Image Margin="5" Source="{StaticResource ImageForums}" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="16" Height="16"/>
<TextBlock DockPanel.Dock="Bottom" HorizontalAlignment="Center" Text="{x:Static r:Strings.ButtonForums}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Answers}">
CommandParameter="{x:Static r:Urls.Answers}"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
<StackPanel Orientation="Horizontal" SnapsToDevicePixels="True">
<Image Margin="5" Source="{StaticResource ImageAnswerhub}" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="16" Height="16"/>
<TextBlock DockPanel.Dock="Bottom" HorizontalAlignment="Center" Text="{x:Static r:Strings.ButtonAnswers}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Discord}">
CommandParameter="{x:Static r:Urls.Discord}"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
<StackPanel Orientation="Horizontal" SnapsToDevicePixels="True">
<Image Margin="5" Source="{StaticResource ImageChat}" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="16" Height="16"/>
<TextBlock DockPanel.Dock="Bottom" HorizontalAlignment="Center" Text="{x:Static r:Strings.ButtonDiscord}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Github}">
CommandParameter="{x:Static r:Urls.Github}"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
<StackPanel Orientation="Horizontal" SnapsToDevicePixels="True">
<Image Margin="5" Source="{StaticResource ImageGithub}" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="16" Height="16"/>
<TextBlock DockPanel.Dock="Bottom" HorizontalAlignment="Center" Text="{x:Static r:Strings.ButtonGithub}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Style="{StaticResource TransparentButtonStyle}" HorizontalAlignment="Left"
Command="{Binding OpenUrlCommand}"
CommandParameter="{x:Static r:Urls.Roadmap}">
CommandParameter="{x:Static r:Urls.Roadmap}"
ToolTipService.IsEnabled="False"
ToolTip="{Binding CommandParameter, RelativeSource={RelativeSource Self}, Converter={sskk:FormatString}, ConverterParameter={x:Static r:Strings.ToolTipOpenLink}}">
<i:Interaction.Behaviors>
<sskk:BindCurrentToolTipStringBehavior ToolTipTarget="{Binding CurrentToolTip}"
DefaultValue="{x:Static r:Strings.ToolTipDefault}"/>
</i:Interaction.Behaviors>
<StackPanel Orientation="Horizontal" SnapsToDevicePixels="True">
<Image Margin="5" Source="{StaticResource ImageRoadmap}" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="16" Height="16"/>
<TextBlock DockPanel.Dock="Bottom" HorizontalAlignment="Center" Text="{x:Static r:Strings.ButtonRoadmap}" VerticalAlignment="Center"/>

0 comments on commit aa95776

Please sign in to comment.
You can’t perform that action at this time.