Skip to content

Commit

Permalink
Add a control to simulate system tool tip.
Browse files Browse the repository at this point in the history
  • Loading branch information
hxdhttk committed Mar 5, 2023
1 parent 69050bf commit 800c93e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions v2rayN/v2rayN/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,21 @@
Header="{x:Static resx:ResUI.menuExit}" />
</ContextMenu>
</tb:TaskbarIcon.ContextMenu>
<tb:TaskbarIcon.TrayToolTip>
<Border
Background="White"
BorderBrush="Black"
BorderThickness="2"
CornerRadius="2"
Width="auto"
Height="auto">
<TextBlock
Margin="2"
Text="{Binding Mode=OneWay, Path=ToolTipText}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</tb:TaskbarIcon.TrayToolTip>
</tb:TaskbarIcon>
<materialDesign:Snackbar x:Name="MainSnackbar" MessageQueue="{materialDesign:MessageQueue}" />
</Grid>
Expand Down

0 comments on commit 800c93e

Please sign in to comment.