mirror of
				https://github.com/2dust/v2rayN.git
				synced 2025-11-02 21:42:51 +00:00 
			
		
		
		
	Merge pull request #3419 from hxdhttk/hxdhttk/simulateToolTip
Add a control to simulate system tool tip.
This commit is contained in:
		
						commit
						6fb17a4b74
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
					@ -831,6 +831,21 @@
 | 
				
			||||||
                            Header="{x:Static resx:ResUI.menuExit}" />
 | 
					                            Header="{x:Static resx:ResUI.menuExit}" />
 | 
				
			||||||
                    </ContextMenu>
 | 
					                    </ContextMenu>
 | 
				
			||||||
                </tb:TaskbarIcon.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>
 | 
					            </tb:TaskbarIcon>
 | 
				
			||||||
            <materialDesign:Snackbar x:Name="MainSnackbar" MessageQueue="{materialDesign:MessageQueue}" />
 | 
					            <materialDesign:Snackbar x:Name="MainSnackbar" MessageQueue="{materialDesign:MessageQueue}" />
 | 
				
			||||||
        </Grid>
 | 
					        </Grid>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue