Skip to content

Commit ffd2d73

Browse files
committed
Added an invisble background to have the tooltip display always
1 parent f0a17ea commit ffd2d73

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
@@ -331,25 +331,26 @@
331331

332332
<controls:HorizontalRule />
333333

334-
<Grid ToolTipService.ToolTip="{x:Bind ViewModel.SignOutButtonTooltip, Mode=OneWay}">
334+
<Grid>
335+
<Border Background="Transparent"
336+
ToolTipService.ToolTip="{x:Bind ViewModel.SignOutButtonTooltip, Mode=OneWay}" />
335337
<HyperlinkButton
336338
Command="{x:Bind ViewModel.SignOutCommand, Mode=OneWay}"
337339
IsEnabled="{x:Bind ViewModel.VpnLifecycle, Converter={StaticResource StoppedBoolConverter}, Mode=OneWay}"
338340
Margin="-12,0"
339341
HorizontalAlignment="Stretch"
340342
HorizontalContentAlignment="Left">
341343

342-
<TextBlock Text="Sign out" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
343-
</HyperlinkButton>
344-
345-
<HyperlinkButton
346-
Command="{x:Bind ViewModel.ExitCommand, Mode=OneWay}"
347-
Margin="-12,-8,-12,-5"
348-
HorizontalAlignment="Stretch"
349-
HorizontalContentAlignment="Left">
350-
351-
<TextBlock Text="Exit" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
344+
<TextBlock Text="Sign out" Foreground="{x:Bind ViewModel.SignOutButtonForeground, Mode=OneWay}" />
352345
</HyperlinkButton>
353346
</Grid>
347+
<HyperlinkButton
348+
Command="{x:Bind ViewModel.ExitCommand, Mode=OneWay}"
349+
Margin="-12,-8,-12,-5"
350+
HorizontalAlignment="Stretch"
351+
HorizontalContentAlignment="Left">
352+
353+
<TextBlock Text="Exit" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
354+
</HyperlinkButton>
354355
</StackPanel>
355356
</Page>

0 commit comments

Comments
 (0)