{"id":21129511,"url":"https://github.com/guorg/gu.wpf.tooltips","last_synced_at":"2025-10-07T01:46:55.579Z","repository":{"id":23925505,"uuid":"27306218","full_name":"GuOrg/Gu.Wpf.ToolTips","owner":"GuOrg","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-25T13:09:45.000Z","size":571,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T21:31:42.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-11-29T15:30:43.000Z","updated_at":"2023-09-01T13:29:46.000Z","dependencies_parsed_at":"2023-12-25T14:32:40.308Z","dependency_job_id":"2ee85f17-2a82-4e2a-af3b-6fcb4a7d2ed7","html_url":"https://github.com/GuOrg/Gu.Wpf.ToolTips","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/GuOrg/Gu.Wpf.ToolTips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.ToolTips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.ToolTips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.ToolTips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.ToolTips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuOrg","download_url":"https://codeload.github.com/GuOrg/Gu.Wpf.ToolTips/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.ToolTips/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708036,"owners_count":26031932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T05:24:25.284Z","updated_at":"2025-10-07T01:46:55.541Z","avatar_url":"https://github.com/GuOrg.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gu.Wpf.ToolTips\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) \n[![NuGet](https://img.shields.io/nuget/v/Gu.Wpf.ToolTips.svg)](https://www.nuget.org/packages/Gu.Wpf.ToolTips/)\n[![Build status](https://ci.appveyor.com/api/projects/status/j4myy99it0now2gv/branch/master?svg=true)](https://ci.appveyor.com/project/JohanLarsson/gu-wpf-tooltips/branch/master)\n[![Build Status](https://dev.azure.com/guorg/Gu.Wpf.ToolTips/_apis/build/status/GuOrg.Gu.Wpf.ToolTips?branchName=master)](https://dev.azure.com/guorg/Gu.Wpf.ToolTips/_build/latest?definitionId=15\u0026branchName=master)\n\nHelpers for tool tips.\n\n## TouchToolTipService\nTool tips for touch users. Setting `TouchToolTipService.Enabled=\"True\"` on an element draws an OverlayAdorner over the element with an icon indicating that there is touch info.\nTapping opens/closes the tool tip.\n\n#### Simple sample:\n```xaml\n\u003cWindow xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n        xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n        xmlns:toolTips=\"http://Gu.com/ToolTips\"\n        Title=\"DemoWindow\"\n        Width=\"100\"\n        SizeToContent=\"Height\"\u003e\n    \u003cWindow.Resources\u003e\n        \u003cStyle TargetType=\"{x:Type Button}\"\u003e\n            \u003cSetter Property=\"Padding\" Value=\"6\" /\u003e\n            \u003cSetter Property=\"toolTips:TouchToolTipService.IsEnabled\" Value=\"False\" /\u003e\n            \u003cSetter Property=\"ToolTipService.ShowOnDisabled\" Value=\"True\" /\u003e\n            \u003cStyle.Triggers\u003e\n                \u003cTrigger Property=\"IsEnabled\" Value=\"False\"\u003e\n                    \u003cSetter Property=\"toolTips:TouchToolTipService.IsEnabled\" Value=\"True\" /\u003e\n                \u003c/Trigger\u003e\n            \u003c/Style.Triggers\u003e\n        \u003c/Style\u003e\n\n        \u003cStyle TargetType=\"{x:Type TextBlock}\"\u003e\n            \u003cSetter Property=\"toolTips:TouchToolTipService.IsEnabled\" Value=\"True\" /\u003e\n            \u003cSetter Property=\"Padding\" Value=\"6\" /\u003e\n        \u003c/Style\u003e\n\n        \u003cStyle TargetType=\"{x:Type Label}\"\u003e\n            \u003cSetter Property=\"toolTips:TouchToolTipService.IsEnabled\" Value=\"True\" /\u003e\n            \u003cSetter Property=\"Padding\" Value=\"6\" /\u003e\n        \u003c/Style\u003e\n    \u003c/Window.Resources\u003e\n\n    \u003cAdornerDecorator\u003e\n        \u003cStackPanel\u003e\n            \u003cButton Content=\"Button\"\n                IsEnabled=\"False\"\n                ToolTip=\"Button tool tip.\" /\u003e\n\n            \u003cTextBlock Text=\"TextBlock\"\n                   ToolTip=\"TextBlock tool tip.\" /\u003e\n\n            \u003cLabel Content=\"Label\"\n                   ToolTip=\"Label tool tip.\" /\u003e\n        \u003c/StackPanel\u003e\n\n    \u003c/AdornerDecorator\u003e\n\u003c/Window\u003e\n```\nRenders:\n\n![Animation](https://user-images.githubusercontent.com/1640096/71777206-fdf02980-2f9c-11ea-85a4-92d0979a2ef0.gif)\n\n#### OverlayAdorner\n\nThe default style for the overlay is:\n\n```xaml\n\u003cStyle TargetType=\"{x:Type local:OverlayAdorner}\"\u003e\n    \u003cSetter Property=\"Template\"\u003e\n        \u003cSetter.Value\u003e\n            \u003cControlTemplate\u003e\n                \u003cEllipse x:Name=\"TouchInfoIcon\"\n                            Height=\"{Binding RelativeSource={RelativeSource Self},\n                                            Path=ActualWidth}\"\n                            Width=\"12\"\n                            Canvas.Top=\"0\"\n                            Canvas.Right=\"0\"\n                            Margin=\"0,2,2,0\"\n                            HorizontalAlignment=\"Right\"\n                            VerticalAlignment=\"Top\"\u003e\n                    \u003cEllipse.Fill\u003e\n                        \u003cDrawingBrush\u003e\n                            \u003cDrawingBrush.Drawing\u003e\n                                \u003cDrawingGroup\u003e\n                                    \u003cDrawingGroup.Children\u003e\n                                        \u003cGeometryDrawing Brush=\"{DynamicResource {x:Static SystemColors.HighlightBrushKey}}\"\u003e\n                                            \u003cGeometryDrawing.Geometry\u003e\n                                                \u003cEllipseGeometry Center=\"50,50\"\n                                                                    RadiusX=\"50\"\n                                                                    RadiusY=\"50\" /\u003e\n                                            \u003c/GeometryDrawing.Geometry\u003e\n                                        \u003c/GeometryDrawing\u003e\n\n                                        \u003cGeometryDrawing Brush=\"White\"\u003e\n                                            \u003cGeometryDrawing.Geometry\u003e\n                                                \u003cGeometryGroup\u003e\n                                                    \u003cRectangleGeometry Rect=\"43,15,14,15\" /\u003e\n                                                    \u003cRectangleGeometry Rect=\"43,36,14,50\" /\u003e\n                                                \u003c/GeometryGroup\u003e\n                                            \u003c/GeometryDrawing.Geometry\u003e\n                                        \u003c/GeometryDrawing\u003e\n                                    \u003c/DrawingGroup.Children\u003e\n                                \u003c/DrawingGroup\u003e\n                            \u003c/DrawingBrush.Drawing\u003e\n                        \u003c/DrawingBrush\u003e\n                    \u003c/Ellipse.Fill\u003e\n                \u003c/Ellipse\u003e\n            \u003c/ControlTemplate\u003e\n        \u003c/Setter.Value\u003e\n    \u003c/Setter\u003e\n\u003c/Style\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguorg%2Fgu.wpf.tooltips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguorg%2Fgu.wpf.tooltips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguorg%2Fgu.wpf.tooltips/lists"}