Skip to content

Commit 47098ce

Browse files
committed
Added an invisble background to have the tooltip display always
1 parent 69bb382 commit 47098ce

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

App/Views/Pages/TrayWindowMainPage.xaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,26 @@
240240

241241
<controls:HorizontalRule />
242242

243-
<Grid ToolTipService.ToolTip="{x:Bind ViewModel.SignOutButtonTooltip, Mode=OneWay}">
243+
<Grid>
244+
<Border Background="Transparent"
245+
ToolTipService.ToolTip="{x:Bind ViewModel.SignOutButtonTooltip, Mode=OneWay}" />
244246
<HyperlinkButton
245247
Command="{x:Bind ViewModel.SignOutCommand, Mode=OneWay}"
246248
IsEnabled="{x:Bind ViewModel.VpnLifecycle, Converter={StaticResource StoppedBoolConverter}, Mode=OneWay}"
247249
Margin="-12,0"
248250
HorizontalAlignment="Stretch"
249251
HorizontalContentAlignment="Left">
250252

251-
<TextBlock Text="Sign out" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
252-
</HyperlinkButton>
253-
254-
<HyperlinkButton
255-
Command="{x:Bind ViewModel.ExitCommand, Mode=OneWay}"
256-
Margin="-12,-8,-12,-5"
257-
HorizontalAlignment="Stretch"
258-
HorizontalContentAlignment="Left">
259-
260-
<TextBlock Text="Exit" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
253+
<TextBlock Text="Sign out" Foreground="{x:Bind ViewModel.SignOutButtonForeground, Mode=OneWay}" />
261254
</HyperlinkButton>
262255
</Grid>
256+
<HyperlinkButton
257+
Command="{x:Bind ViewModel.ExitCommand, Mode=OneWay}"
258+
Margin="-12,-8,-12,-5"
259+
HorizontalAlignment="Stretch"
260+
HorizontalContentAlignment="Left">
261+
262+
<TextBlock Text="Exit" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
263+
</HyperlinkButton>
263264
</StackPanel>
264265
</Page>

0 commit comments

Comments
 (0)