{"id":487063,"date":"2026-07-13T08:54:45","date_gmt":"2026-07-13T08:54:45","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=487063"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=487063","title":{"rendered":"Coachlight.Avalonia: \u043f\u043e\u0447\u0435\u043c\u0443 \u0432 desktop-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043d\u0431\u043e\u0440\u0434\u0438\u043d\u0433\u0430 \u2014 \u0438 \u043a\u0430\u043a \u044f \u0440\u0435\u0448\u0438\u043b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u0441\u0451 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c<\/h3>\n<p>\u0412\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0448\u0438\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0443 \u043e\u043d\u0431\u043e\u0440\u0434\u0438\u043d\u0433\u0430. Intro.js, Shepherd.js, Driver.js, react-joyride, Reactour \u2014 \u043e\u0442\u043a\u0440\u043e\u0439 \u043b\u044e\u0431\u043e\u0439 SaaS, \u0438 \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0443\u0432\u0438\u0434\u0438\u0448\u044c \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430, \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0435\u043d\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0438 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u00ab\u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0441\u044e\u0434\u0430\u00bb. \u0418\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u044f \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0430\u0441\u044c: \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u0435\u043d \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0442\u0443\u0440.<\/p>\n<p>\u0412 desktop-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u0441\u0442\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442. WPF, WinForms, Avalonia, MAUI \u2014 \u0445\u043e\u0442\u044c \u043e\u0434\u0438\u043d \u0437\u0430\u0432\u043e\u0434. \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u2014 <code>ToolTip<\/code> \u0438, \u0435\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0437\u043b\u043e, <code>TeachingTip<\/code> \u0438\u0437 FluentAvalonia \u0438\u043b\u0438 WinUI: \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 callout \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u043e\u0439, \u0431\u0435\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0448\u0430\u0433\u043e\u0432, \u0431\u0435\u0437 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430, \u0431\u0435\u0437 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0431\u0435\u0437 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c desktop-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043f\u0440\u043e\u0449\u0435. \u041f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \u0441 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u043c \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u0440\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b, \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0437\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u2014 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0442\u0451\u0442, \u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043a\u0430\u043a \u043d\u0435 \u0431\u044b\u043b\u043e, \u0442\u0430\u043a \u0438 \u043d\u0435\u0442. \u041a\u0430\u0436\u0434\u044b\u0439, \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c, \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u0442 \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0437\u0430\u043d\u043e\u0432\u043e, \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0431\u0435\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u042f \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432 \u044d\u0442\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2014 desktop-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043d\u0430 Avalonia. \u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u044f\u0442\u044c \u044d\u043a\u0440\u0430\u043d\u043e\u0432, \u0442\u0440\u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e \u0441\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0431\u043e\u043a\u043e\u0432\u044b\u043c\u0438 \u043f\u0430\u043d\u0435\u043b\u044f\u043c\u0438 \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u043c\u0438 \u043e\u0442 \u0440\u0435\u0436\u0438\u043c\u0430. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043e\u043d\u0431\u043e\u0440\u0434\u0438\u043d\u0433 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0410 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0440\u043e\u0432\u043d\u043e \u0442\u0443 \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Avalonia \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u2014 \u0438 \u0432\u044b\u043d\u0435\u0441 \u0435\u0451 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443.<\/p>\n<h3>\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c: Coachlight.Avalonia<\/h3>\n<p><a href=\"https:\/\/github.com\/c3n9\/Coachlight.Avalonia\" rel=\"noopener noreferrer nofollow\"><strong>Coachlight.Avalonia<\/strong><\/a> \u2014 open-source (MIT) NuGet-\u043f\u0430\u043a\u0435\u0442 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0443\u0440\u043e\u0432 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043d\u0430 Avalonia. Coachmark\u2019\u0438, \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435-\u043f\u0440\u043e\u0436\u0435\u043a\u0442\u043e\u0440, \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0435 \u0448\u0430\u0433\u0438, \u0430\u0432\u0442\u043e\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438, \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u2014 \u0438 \u0432\u0441\u0451 \u044d\u0442\u043e \u0441 \u043d\u0443\u043b\u0451\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043f\u043e\u0432\u0435\u0440\u0445 \u0441\u0430\u043c\u043e\u0439 Avalonia.<\/p>\n<pre><code>var tour = TourBuilder.Create(\"demo\")    .Modal(s =&gt; s        .Title(\"\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c!\")        .Text(\"\u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0442\u0443\u0440 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443.\"))    .Coachmark(\"btnConnect\", s =&gt; s        .Placement(Side.Right)        .Title(\"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\")        .Text(\"\u042d\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043a \u0440\u043e\u0431\u043e\u0442\u0443.\"))    .Build();anchor.StartTour(tour); \/\/ anchor \u2014 \u043b\u044e\u0431\u043e\u0439 Visual, \u0443\u0436\u0435 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0451\u043d\u043d\u044b\u0439 \u043a \u043e\u043a\u043d\u0443<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 XAML, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0446\u0435\u043b\u044c:<\/p>\n<pre><code class=\"xml\">&lt;Button xmlns:cl=\"clr-namespace:Coachlight.Avalonia.Targeting;assembly=Coachlight.Avalonia\"        cl:Coachmark.Id=\"btnConnect\" Content=\"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f\"\/&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418 \u0442\u0443\u0440 \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u0441 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u043e\u0439, \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u043e\u043c.<\/p>\n<h3>\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u044b, \u0432\u043e\u043a\u0440\u0443\u0433 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0440\u043e\u0438\u043b\u0430\u0441\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h3>\n<p><strong>Zero dependencies.<\/strong> \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0435 \u0442\u044f\u043d\u0435\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043d\u0438 <code>CommunityToolkit.Mvvm<\/code>, \u043d\u0438 <code>ReactiveUI<\/code>, \u043d\u0438\u0447\u0435\u0433\u043e. \u0415\u0441\u043b\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0439 MVVM-\u0441\u0442\u0435\u043a (\u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 code-behind) \u2014 \u043e\u043d \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0432 \u0441\u0432\u043e\u0451\u043c \u0434\u0435\u0440\u0435\u0432\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0447\u0443\u0436\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 15-\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 <code>RelayCommand<\/code> \u2014 \u043d\u043e \u044d\u0442\u043e \u0440\u0430\u0437\u0443\u043c\u043d\u0430\u044f \u0446\u0435\u043d\u0430 \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u0431\u0435\u0437 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u0432\u0435\u0440\u0441\u0438\u0439 MVVM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0432 \u0447\u0443\u0436\u043e\u043c \u0433\u0440\u0430\u0444\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<\/p>\n<p><strong>Fully re-themeable.<\/strong> \u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u2014 \u044d\u0442\u043e <code>TemplatedControl<\/code> \u0441 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0439 <code>ControlTheme<\/code>, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0446\u0432\u0435\u0442 \u2014 <code>DynamicResource<\/code>. \u0425\u043e\u0447\u0435\u0448\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0446\u0432\u0435\u0442\u043e\u0432\u0443\u044e \u0441\u0445\u0435\u043c\u0443 \u2014 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438 \u043a\u043b\u044e\u0447\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0425\u043e\u0447\u0435\u0448\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u2014 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c \u0441\u0432\u043e\u044e <code>ControlTheme<\/code>, \u043e\u043d\u0430 \u0443\u0432\u0438\u0434\u0438\u0442 \u0442\u043e\u0442 \u0436\u0435 \u043d\u0430\u0431\u043e\u0440 bindable-\u0441\u0432\u043e\u0439\u0441\u0442\u0432 (<code>Title<\/code>, <code>Content<\/code>, <code>ProgressText<\/code>, <code>IsFirst<\/code>, <code>IsLast<\/code>, \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438). \u0421\u0432\u0435\u0442\u043b\u0430\u044f\/\u0442\u0451\u043c\u043d\u0430\u044f \u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 <code>ThemeDictionaries<\/code> \u0438 <code>ActualThemeVariant<\/code> \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p><strong>Opt-in persistence.<\/strong> \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u0442 \u0434\u0438\u0441\u043a, \u0435\u0441\u043b\u0438 \u0435\u0451 \u044f\u0432\u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0435 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438. <code>StartTour(anchor, tour)<\/code> \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0443\u0440. \u0425\u043e\u0447\u0435\u0448\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2014 \u043f\u0435\u0440\u0435\u0434\u0430\u0439 <code>IProgressStore<\/code>:<\/p>\n<pre><code>static readonly IProgressStore Store = new JsonProgressStore();anchor.StartTour(tour, Store);              \/\/ \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437anchor.StartTour(tour, Store, force: true);  \/\/ \u0432\u0441\u0435\u0433\u0434\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab?\u00bb)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0438\u0448\u0435\u0442 JSON \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u2014 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c \u0441\u0432\u043e\u044e (\u0411\u0414, \u043e\u0431\u043b\u0430\u043a\u043e, \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e).<\/p>\n<h3>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435, \u0447\u0435\u043c \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c<\/h3>\n<h4>\u041f\u0440\u043e\u0436\u0435\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043a\u043b\u0438\u043a\u0430\u0442\u044c<\/h4>\n<p>\u0417\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435 \u0441 \u00ab\u0434\u044b\u0440\u043a\u043e\u0439\u00bb \u0432\u043e\u043a\u0440\u0443\u0433 \u0446\u0435\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>StreamGeometry<\/code> \u0441 <code>FillRule.EvenOdd<\/code>: \u0434\u0432\u0430 \u043a\u043e\u043d\u0442\u0443\u0440\u0430 (\u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0438 \u0441\u043a\u0440\u0443\u0433\u043b\u0451\u043d\u043d\u044b\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0446\u0435\u043b\u0438) \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u0432\u044b\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f. \u041d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 <code>Path<\/code> \u0432 Avalonia \u0445\u0438\u0442-\u0442\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u043f\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u043c <code>Bounds<\/code>, \u0430 \u043d\u0435 \u043f\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438 \u2014 \u0437\u043d\u0430\u0447\u0438\u0442, \u0434\u044b\u0440\u043a\u0430 \u0442\u043e\u0436\u0435 \u00ab\u043b\u043e\u0432\u0438\u043b\u0430\u00bb \u0431\u044b \u043a\u043b\u0438\u043a\u0438, \u0438 \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0435\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0431\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 <code>ICustomHitTest<\/code> \u043d\u0430 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>internal class SpotlightDim : Control, ICustomHitTest{    public bool HitTest(Point point) =&gt; Data?.FillContains(point) ?? false;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>FillContains<\/code> \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 <code>EvenOdd<\/code> \u2014 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u044b\u0440\u043a\u0438 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044f \u043d\u0435 \u0437\u0430\u043b\u0438\u0442\u0430, \u0437\u043d\u0430\u0447\u0438\u0442 <code>false<\/code>, \u0438 \u043a\u043b\u0438\u043a \u0443\u0445\u043e\u0434\u0438\u0442 \u0432\u043d\u0438\u0437, \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443. \u042d\u0442\u043e \u0436\u0435 \u0438 \u0434\u0430\u043b\u043e \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441: \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e\u0434 \u043f\u0440\u043e\u0436\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u0435\u043d (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0442\u0438\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0433\u0435\u0439\u043c\u043f\u0430\u0434\u0430), \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c <strong>\u043f\u0440\u044f\u043c\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0443\u0440\u0430<\/strong>.<\/p>\n<h4>\u041c\u0430\u0441\u0448\u0442\u0430\u0431 \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u044b<\/h4>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u0447\u0438\u0442\u0430\u043b\u0430 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0446\u0435\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0433\u043e\u043b\u044b\u0435 <code>Bounds<\/code> \u0438 <code>TranslatePoint<\/code> \u2014 \u0438 \u043e\u0448\u0438\u0431\u0430\u043b\u0430\u0441\u044c \u0432\u0441\u044f\u043a\u0438\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0446\u0435\u043b\u044c \u043b\u0435\u0436\u0430\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 <code>Viewbox<\/code> \u0438\u043b\u0438 \u043f\u043e\u0434 \u0434\u0440\u0443\u0433\u0438\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u043e\u043c (\u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u2014 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u0430\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 <code>Canvas<\/code>, \u0440\u0430\u0441\u0442\u044f\u043d\u0443\u0442\u0430\u044f \u043f\u043e\u0434 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d). \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u043f\u0440\u043e\u0435\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 bounding box \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>if (target.TransformToVisual(this) is not { } matrix) return null;var rect = new Rect(target.Bounds.Size).TransformToAABB(matrix);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>TransformToAABB<\/code> \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431, \u043f\u043e\u0432\u043e\u0440\u043e\u0442, \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u2014 \u0442\u043e, \u0447\u0442\u043e <code>TranslatePoint<\/code> \u0432 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u0441\u044b\u0440\u044b\u043c\u0438 <code>Bounds.Width\/Height<\/code> \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442.<\/p>\n<h4>\u041f\u0440\u043e\u043f\u0443\u0441\u043a \u0448\u0430\u0433\u043e\u0432 \u0441\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0439 \u0446\u0435\u043b\u044c\u044e<\/h4>\n<p>\u0427\u0430\u0441\u0442\u044c \u0448\u0430\u0433\u043e\u0432 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0438\u0434\u043d\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 (\u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u043e\u0431\u043e\u0442\u0430, \u00ab\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f\u00bb \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430). \u041f\u0440\u043e\u0441\u0442\u043e\u0435 <code>_index++<\/code> \u0432 <code>Next()<\/code> \u043c\u043e\u0433\u043b\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0442\u0443\u0440\u0430 \u0438\u0449\u0435\u0442 <strong>\u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439<\/strong> \u0448\u0430\u0433 \u0432 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>private void ShowStepFrom(int start, int direction){    for (int i = start; i &gt;= 0 &amp;&amp; i &lt; StepCount; i += direction)        if (ShouldShow(_tour.Steps[i])) { ApplyStep(i); return; }    if (direction &gt; 0) Complete(); \/\/ \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e \u2014 \u0442\u0443\u0440 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u00ab\u043f\u0435\u0440\u0432\u044b\u0439\/\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433\u00bb (\u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb\/\u00ab\u0413\u043e\u0442\u043e\u0432\u043e\u00bb) \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e <strong>\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445<\/strong> \u0448\u0430\u0433\u043e\u0432, \u0430 \u043d\u0435 \u043f\u043e \u0441\u044b\u0440\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u2014 \u0438\u043d\u0430\u0447\u0435 \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb \u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u0432\u0435\u0441\u0442\u0438 \u0432 \u043d\u0438\u043a\u0443\u0434\u0430.<\/p>\n<h4>\u041f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u0434\u0440 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u0451\u0440\u0433\u0430\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0421\u0430\u043c\u0430\u044f \u043a\u043e\u0432\u0430\u0440\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043b\u0430\u0432\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043d\u0438\u043c\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 <code>Transitions<\/code> \u043d\u0430 <code>Canvas.Left\/Top<\/code> \u2014 \u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0443\u0440\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u00ab\u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u043b\u0435\u0432\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0433\u043b\u0430 \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443\u00bb, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <code>Canvas.Left\/Top<\/code> \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u044b (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 0,0), \u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0447\u0435\u0441\u0442\u043d\u043e \u0435\u0434\u0435\u0442 \u0438\u0437 (0,0) \u0432 \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u0442\u043e\u0447\u043a\u0443.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u00ab\u043f\u0435\u0440\u0432\u043e\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u0433\u0434\u0430-\u043b\u0438\u0431\u043e\u00bb \u0438 \u00ab\u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0448\u0430\u0433\u0430\u043c\u0438\u00bb. \u041f\u0435\u0440\u0432\u043e\u0435 \u2014 \u0441\u043d\u0430\u043f\u0430\u0435\u043c \u0431\u0435\u0437 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 (\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c <code>Transitions<\/code>, \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e). \u0412\u0441\u0451 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u2014 \u0435\u0434\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u043e:<\/p>\n<pre><code>if (double.IsNaN(Canvas.GetLeft(_card))){    var transitions = _card.Transitions;    _card.Transitions = null;    Canvas.SetLeft(_card, x);    Canvas.SetTop(_card, y);    _card.Transitions = transitions;}else { Canvas.SetLeft(_card, x); Canvas.SetTop(_card, y); }<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043b\u044e\u0441 \u0434\u0435\u0431\u0430\u0443\u043d\u0441: \u043f\u0435\u0440\u0435\u0441\u0447\u0451\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u043e\u0430\u043b\u0435\u0441\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>DispatcherTimer<\/code> \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 <code>LayoutUpdated<\/code>, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0441\u043c\u0435\u043d\u044b \u0448\u0430\u0433\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u00ab\u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0432\u0430\u00bb (~800\u043c\u0441) \u2014 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u043e\u0441\u0435\u0434\u0430\u043d\u0438\u0435 layout (\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 <code>SplitView<\/code>, \u0440\u0435\u0441\u0430\u0439\u0437 \u043e\u043a\u043d\u0430) \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c, \u0435\u0449\u0451 \u043d\u0435 \u0443\u0441\u0442\u043e\u044f\u0432\u0448\u0435\u043c\u0441\u044f \u043a\u0430\u0434\u0440\u0435.<\/p>\n<h4>\u0416\u0438\u0432\u044b\u0435 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0448\u0430\u0433\u0435<\/h4>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c <code>OnEnter<\/code>\/<code>OnExit<\/code> \u2014 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442, \u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u043f\u043e\u043a\u0430 \u0448\u0430\u0433 \u0430\u043a\u0442\u0438\u0432\u0435\u043d. \u0412 \u0434\u0435\u043c\u043e \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0430\u043c \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043b\u0441\u044f \u0442\u0443\u0434\u0430-\u043e\u0431\u0440\u0430\u0442\u043d\u043e, \u043f\u043e\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u043f\u0440\u043e \u043d\u0435\u0433\u043e:<\/p>\n<pre><code>.Coachmark(\"recentItemsList\", s =&gt; s    .Title(\"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b\")    .OnEnter(() =&gt; StartAutoScroll(anchor))    .OnExit(() =&gt; StopAutoScroll(anchor)))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0431\u0430 \u0445\u0443\u043a\u0430 \u043e\u0431\u0451\u0440\u043d\u0443\u0442\u044b \u0432 <code>try\/catch<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u2014 \u0435\u0441\u043b\u0438 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f \u0443\u043f\u0430\u0434\u0451\u0442 \u0441 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u044d\u0442\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \u043f\u043e \u0442\u0443\u0440\u0443.<\/p>\n<h3>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0442\u0430\u0440\u0433\u0435\u0442\u0438\u0440\u0443\u0435\u0442 <code>net8.0<\/code> \u0438 <code>net10.0<\/code>, \u0430 \u043d\u0430 Avalonia \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u043c <code>Version=\"11.0.0\"<\/code> \u2014 \u0431\u0435\u0437 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043b\u043a\u0430. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438\u0441\u044c \u043f\u043e \u0432\u0441\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c \u0447\u043b\u0435\u043d\u0430\u043c \u0441 XML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 (<code>GenerateDocumentationFile<\/code>).<\/p>\n<h3>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h3>\n<p>\u042d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0438 \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c \u043e\u0442 \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0438\u0448\u0435\u0442 desktop \u043d\u0430 Avalonia.<\/p>\n<ul>\n<li>\n<p>GitHub: <a href=\"https:\/\/github.com\/c3n9\/Coachlight.Avalonia\" rel=\"noopener noreferrer nofollow\">github.com\/c3n9\/Coachlight.Avalonia<\/a><\/p>\n<\/li>\n<li>\n<p>NuGet: <code>dotnet add package Coachlight.Avalonia<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0438\u0448\u0435\u0442\u0435 desktop-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043f\u044f\u0442\u0438 \u043a\u043d\u043e\u043f\u043e\u043a \u2014 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 issues \u0438 PR.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1058458\/\">https:\/\/habr.com\/ru\/articles\/1058458\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u0441\u0451 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c\u0412\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0448\u0438\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0443 \u043e\u043d\u0431\u043e\u0440\u0434\u0438\u043d\u0433\u0430. Intro.js, Shepherd.js, Driver.js, react-joyride, Reactour \u2014 \u043e\u0442\u043a\u0440\u043e\u0439 \u043b\u044e\u0431\u043e\u0439 SaaS, \u0438 \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0443\u0432\u0438\u0434\u0438\u0448\u044c \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430, \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0435\u043d\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0438 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u00ab\u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0441\u044e\u0434\u0430\u00bb. \u0418\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u044f \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0430\u0441\u044c: \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u0435\u043d \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0442\u0443\u0440.\u0412 desktop-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u0441\u0442\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442. WPF, WinForms, Avalonia, MAUI \u2014 \u0445\u043e\u0442\u044c \u043e\u0434\u0438\u043d \u0437\u0430\u0432\u043e\u0434. \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u2014 ToolTip \u0438, \u0435\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0437\u043b\u043e, TeachingTip \u0438\u0437 FluentAvalonia \u0438\u043b\u0438 WinUI: \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 callout \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u043e\u0439, \u0431\u0435\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0448\u0430\u0433\u043e\u0432, \u0431\u0435\u0437 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430, \u0431\u0435\u0437 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0431\u0435\u0437 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u044f.\u041f\u0440\u0438 \u044d\u0442\u043e\u043c desktop-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043f\u0440\u043e\u0449\u0435. \u041f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \u0441 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u043c \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u0440\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b, \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0437\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u2014 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0442\u0451\u0442, \u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043a\u0430\u043a \u043d\u0435 \u0431\u044b\u043b\u043e, \u0442\u0430\u043a \u0438 \u043d\u0435\u0442. \u041a\u0430\u0436\u0434\u044b\u0439, \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c, \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u0442 \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0437\u0430\u043d\u043e\u0432\u043e, \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0431\u0435\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.\u042f \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432 \u044d\u0442\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2014 desktop-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043d\u0430 Avalonia. \u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u044f\u0442\u044c \u044d\u043a\u0440\u0430\u043d\u043e\u0432, \u0442\u0440\u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e \u0441\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0431\u043e\u043a\u043e\u0432\u044b\u043c\u0438 \u043f\u0430\u043d\u0435\u043b\u044f\u043c\u0438 \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u043c\u0438 \u043e\u0442 \u0440\u0435\u0436\u0438\u043c\u0430. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043e\u043d\u0431\u043e\u0440\u0434\u0438\u043d\u0433 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0410 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0440\u043e\u0432\u043d\u043e \u0442\u0443 \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Avalonia \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u2014 \u0438 \u0432\u044b\u043d\u0435\u0441 \u0435\u0451 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443.\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c: Coachlight.AvaloniaCoachlight.Avalonia \u2014 open-source (MIT) NuGet-\u043f\u0430\u043a\u0435\u0442 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0443\u0440\u043e\u0432 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043d\u0430 Avalonia. Coachmark\u2019\u0438, \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435-\u043f\u0440\u043e\u0436\u0435\u043a\u0442\u043e\u0440, \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0435 \u0448\u0430\u0433\u0438, \u0430\u0432\u0442\u043e\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438, \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u2014 \u0438 \u0432\u0441\u0451 \u044d\u0442\u043e \u0441 \u043d\u0443\u043b\u0451\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043f\u043e\u0432\u0435\u0440\u0445 \u0441\u0430\u043c\u043e\u0439 Avalonia.var tour = TourBuilder.Create(&#171;demo&#187;)    .Modal(s =&gt; s        .Title(&#171;\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c!&#187;)        .Text(&#171;\u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0442\u0443\u0440 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443.&#187;))    .Coachmark(&#171;btnConnect&#187;, s =&gt; s        .Placement(Side.Right)        .Title(&#171;\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435&#187;)        .Text(&#171;\u042d\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043a \u0440\u043e\u0431\u043e\u0442\u0443.&#187;))    .Build();anchor.StartTour(tour); \/\/ anchor \u2014 \u043b\u044e\u0431\u043e\u0439 Visual, \u0443\u0436\u0435 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0451\u043d\u043d\u044b\u0439 \u043a \u043e\u043a\u043d\u0443\u0422\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 XAML, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0446\u0435\u043b\u044c:&lt;Button xmlns:cl=&#187;clr-namespace:Coachlight.Avalonia.Targeting;assembly=Coachlight.Avalonia&#187;        cl:Coachmark.Id=&#187;btnConnect&#187; Content=&#187;\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f&#187;\/&gt;\u0418 \u0442\u0443\u0440 \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u0441 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u043e\u0439, \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u043e\u043c.\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u044b, \u0432\u043e\u043a\u0440\u0443\u0433 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0440\u043e\u0438\u043b\u0430\u0441\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430Zero dependencies. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0435 \u0442\u044f\u043d\u0435\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043d\u0438 CommunityToolkit.Mvvm, \u043d\u0438 ReactiveUI, \u043d\u0438\u0447\u0435\u0433\u043e. \u0415\u0441\u043b\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0439 MVVM-\u0441\u0442\u0435\u043a (\u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 code-behind) \u2014 \u043e\u043d \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0432 \u0441\u0432\u043e\u0451\u043c \u0434\u0435\u0440\u0435\u0432\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0447\u0443\u0436\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 15-\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 RelayCommand \u2014 \u043d\u043e \u044d\u0442\u043e \u0440\u0430\u0437\u0443\u043c\u043d\u0430\u044f \u0446\u0435\u043d\u0430 \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u0431\u0435\u0437 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u0432\u0435\u0440\u0441\u0438\u0439 MVVM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0432 \u0447\u0443\u0436\u043e\u043c \u0433\u0440\u0430\u0444\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.Fully re-themeable. \u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u2014 \u044d\u0442\u043e TemplatedControl \u0441 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0439 ControlTheme, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0446\u0432\u0435\u0442 \u2014 DynamicResource. \u0425\u043e\u0447\u0435\u0448\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0446\u0432\u0435\u0442\u043e\u0432\u0443\u044e \u0441\u0445\u0435\u043c\u0443 \u2014 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438 \u043a\u043b\u044e\u0447\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0425\u043e\u0447\u0435\u0448\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u2014 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c \u0441\u0432\u043e\u044e ControlTheme, \u043e\u043d\u0430 \u0443\u0432\u0438\u0434\u0438\u0442 \u0442\u043e\u0442 \u0436\u0435 \u043d\u0430\u0431\u043e\u0440 bindable-\u0441\u0432\u043e\u0439\u0441\u0442\u0432 (Title, Content, ProgressText, IsFirst, IsLast, \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438). \u0421\u0432\u0435\u0442\u043b\u0430\u044f\/\u0442\u0451\u043c\u043d\u0430\u044f \u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 ThemeDictionaries \u0438 ActualThemeVariant \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.Opt-in persistence. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u0442 \u0434\u0438\u0441\u043a, \u0435\u0441\u043b\u0438 \u0435\u0451 \u044f\u0432\u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0435 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438. StartTour(anchor, tour) \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0443\u0440. \u0425\u043e\u0447\u0435\u0448\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2014 \u043f\u0435\u0440\u0435\u0434\u0430\u0439 IProgressStore:static readonly IProgressStore Store = new JsonProgressStore();anchor.StartTour(tour, Store);              \/\/ \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437anchor.StartTour(tour, Store, force: true);  \/\/ \u0432\u0441\u0435\u0433\u0434\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab?\u00bb)\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0438\u0448\u0435\u0442 JSON \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u2014 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c \u0441\u0432\u043e\u044e (\u0411\u0414, \u043e\u0431\u043b\u0430\u043a\u043e, \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e).\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435, \u0447\u0435\u043c \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c\u041f\u0440\u043e\u0436\u0435\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043a\u043b\u0438\u043a\u0430\u0442\u044c\u0417\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435 \u0441 \u00ab\u0434\u044b\u0440\u043a\u043e\u0439\u00bb \u0432\u043e\u043a\u0440\u0443\u0433 \u0446\u0435\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 StreamGeometry \u0441 FillRule.EvenOdd: \u0434\u0432\u0430 \u043a\u043e\u043d\u0442\u0443\u0440\u0430 (\u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0438 \u0441\u043a\u0440\u0443\u0433\u043b\u0451\u043d\u043d\u044b\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0446\u0435\u043b\u0438) \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u0432\u044b\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f. \u041d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 Path \u0432 Avalonia \u0445\u0438\u0442-\u0442\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u043f\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u043c Bounds, \u0430 \u043d\u0435 \u043f\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438 \u2014 \u0437\u043d\u0430\u0447\u0438\u0442, \u0434\u044b\u0440\u043a\u0430 \u0442\u043e\u0436\u0435 \u00ab\u043b\u043e\u0432\u0438\u043b\u0430\u00bb \u0431\u044b \u043a\u043b\u0438\u043a\u0438, \u0438 \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0435\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0431\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 ICustomHitTest \u043d\u0430 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u044f:internal class SpotlightDim : Control, ICustomHitTest{    public bool HitTest(Point point) =&gt; Data?.FillContains(point) ?? false;}FillContains \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 EvenOdd \u2014 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u044b\u0440\u043a\u0438 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044f \u043d\u0435 \u0437\u0430\u043b\u0438\u0442\u0430, \u0437\u043d\u0430\u0447\u0438\u0442 false, \u0438 \u043a\u043b\u0438\u043a \u0443\u0445\u043e\u0434\u0438\u0442 \u0432\u043d\u0438\u0437, \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443. \u042d\u0442\u043e \u0436\u0435 \u0438 \u0434\u0430\u043b\u043e \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441: \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e\u0434 \u043f\u0440\u043e\u0436\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u0435\u043d (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0442\u0438\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0433\u0435\u0439\u043c\u043f\u0430\u0434\u0430), \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u043f\u0440\u044f\u043c\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0443\u0440\u0430.\u041c\u0430\u0441\u0448\u0442\u0430\u0431 \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u044b\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u0447\u0438\u0442\u0430\u043b\u0430 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0446\u0435\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0433\u043e\u043b\u044b\u0435 Bounds \u0438 TranslatePoint \u2014 \u0438 \u043e\u0448\u0438\u0431\u0430\u043b\u0430\u0441\u044c \u0432\u0441\u044f\u043a\u0438\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0446\u0435\u043b\u044c \u043b\u0435\u0436\u0430\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 Viewbox \u0438\u043b\u0438 \u043f\u043e\u0434 \u0434\u0440\u0443\u0433\u0438\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u043e\u043c (\u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u2014 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u0430\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 Canvas, \u0440\u0430\u0441\u0442\u044f\u043d\u0443\u0442\u0430\u044f \u043f\u043e\u0434 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d). \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u043f\u0440\u043e\u0435\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 bounding box \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438:if (target.TransformToVisual(this) is not { } matrix) return null;var rect = new Rect(target.Bounds.Size).TransformToAABB(matrix);TransformToAABB \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431, \u043f\u043e\u0432\u043e\u0440\u043e\u0442, \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u2014 \u0442\u043e, \u0447\u0442\u043e TranslatePoint \u0432 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u0441\u044b\u0440\u044b\u043c\u0438 Bounds.Width\/Height \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442.\u041f\u0440\u043e\u043f\u0443\u0441\u043a \u0448\u0430\u0433\u043e\u0432 \u0441\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0439 \u0446\u0435\u043b\u044c\u044e\u0427\u0430\u0441\u0442\u044c \u0448\u0430\u0433\u043e\u0432 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0438\u0434\u043d\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 (\u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u043e\u0431\u043e\u0442\u0430, \u00ab\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f\u00bb \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430). \u041f\u0440\u043e\u0441\u0442\u043e\u0435 _index++ \u0432 Next() \u043c\u043e\u0433\u043b\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0442\u0443\u0440\u0430 \u0438\u0449\u0435\u0442 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u0448\u0430\u0433 \u0432 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438:private void ShowStepFrom(int start, int direction){    for (int i = start; i &gt;= 0 &amp;&amp; i &lt; StepCount; i += direction)        if (ShouldShow(_tour.Steps[i])) { ApplyStep(i); return; }    if (direction &gt; 0) Complete(); \/\/ \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e \u2014 \u0442\u0443\u0440 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d}\u0410 \u00ab\u043f\u0435\u0440\u0432\u044b\u0439\/\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433\u00bb (\u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb\/\u00ab\u0413\u043e\u0442\u043e\u0432\u043e\u00bb) \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0448\u0430\u0433\u043e\u0432, \u0430 \u043d\u0435 \u043f\u043e \u0441\u044b\u0440\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u2014 \u0438\u043d\u0430\u0447\u0435 \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb \u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u0432\u0435\u0441\u0442\u0438 \u0432 \u043d\u0438\u043a\u0443\u0434\u0430.\u041f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u0434\u0440 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u0451\u0440\u0433\u0430\u0442\u044c\u0441\u044f\u0421\u0430\u043c\u0430\u044f \u043a\u043e\u0432\u0430\u0440\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043b\u0430\u0432\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043d\u0438\u043c\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 Transitions \u043d\u0430 Canvas.Left\/Top \u2014 \u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0443\u0440\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u00ab\u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u043b\u0435\u0432\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0433\u043b\u0430 \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443\u00bb, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Canvas.Left\/Top \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u044b (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 0,0), \u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0447\u0435\u0441\u0442\u043d\u043e \u0435\u0434\u0435\u0442 \u0438\u0437 (0,0) \u0432 \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u0442\u043e\u0447\u043a\u0443.\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u00ab\u043f\u0435\u0440\u0432\u043e\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u0433\u0434\u0430-\u043b\u0438\u0431\u043e\u00bb \u0438 \u00ab\u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0448\u0430\u0433\u0430\u043c\u0438\u00bb. \u041f\u0435\u0440\u0432\u043e\u0435 \u2014 \u0441\u043d\u0430\u043f\u0430\u0435\u043c \u0431\u0435\u0437 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 (\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c Transitions, \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e). \u0412\u0441\u0451 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u2014 \u0435\u0434\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u043e:if (double.IsNaN(Canvas.GetLeft(_card))){    var transitions = _card.Transitions;    _card.Transitions = null;    Canvas.SetLeft(_card, x);    Canvas.SetTop(_card, y);    _card.Transitions = transitions;}else { Canvas.SetLeft(_card, x); Canvas.SetTop(_card, y); }\u041f\u043b\u044e\u0441 \u0434\u0435\u0431\u0430\u0443\u043d\u0441: \u043f\u0435\u0440\u0435\u0441\u0447\u0451\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u043e\u0430\u043b\u0435\u0441\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 DispatcherTimer \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 LayoutUpdated, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0441\u043c\u0435\u043d\u044b \u0448\u0430\u0433\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u00ab\u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0432\u0430\u00bb (~800\u043c\u0441) \u2014 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u043e\u0441\u0435\u0434\u0430\u043d\u0438\u0435 layout (\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 SplitView, \u0440\u0435\u0441\u0430\u0439\u0437 \u043e\u043a\u043d\u0430) \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c, \u0435\u0449\u0451 \u043d\u0435 \u0443\u0441\u0442\u043e\u044f\u0432\u0448\u0435\u043c\u0441\u044f \u043a\u0430\u0434\u0440\u0435.\u0416\u0438\u0432\u044b\u0435 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0448\u0430\u0433\u0435\u041a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c OnEnter\/OnExit \u2014 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442, \u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u043f\u043e\u043a\u0430 \u0448\u0430\u0433 \u0430\u043a\u0442\u0438\u0432\u0435\u043d. \u0412 \u0434\u0435\u043c\u043e \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0430\u043c \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043b\u0441\u044f \u0442\u0443\u0434\u0430-\u043e\u0431\u0440\u0430\u0442\u043d\u043e, \u043f\u043e\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u043f\u0440\u043e \u043d\u0435\u0433\u043e:.Coachmark(&#171;recentItemsList&#187;, s =&gt; s    .Title(&#171;\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b&#187;)    .OnEnter(() =&gt; StartAutoScroll(anchor))    .OnExit(() =&gt; StopAutoScroll(anchor)))\u041e\u0431\u0430 \u0445\u0443\u043a\u0430 \u043e\u0431\u0451\u0440\u043d\u0443\u0442\u044b \u0432 try\/catch \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u2014 \u0435\u0441\u043b\u0438 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f \u0443\u043f\u0430\u0434\u0451\u0442 \u0441 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u044d\u0442\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \u043f\u043e \u0442\u0443\u0440\u0443.\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0442\u0430\u0440\u0433\u0435\u0442\u0438\u0440\u0443\u0435\u0442 net8.0 \u0438 net10.0, \u0430 \u043d\u0430 Avalonia \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u043c Version=&#187;11.0.0&#8243; \u2014 \u0431\u0435\u0437 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043b\u043a\u0430. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438\u0441\u044c \u043f\u043e \u0432\u0441\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c \u0447\u043b\u0435\u043d\u0430\u043c \u0441 XML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 (GenerateDocumentationFile).\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435\u042d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0438 \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c \u043e\u0442 \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0438\u0448\u0435\u0442 desktop \u043d\u0430 Avalonia.GitHub: github.com\/c3n9\/Coachlight.AvaloniaNuGet: dotnet add package Coachlight.Avalonia\u0415\u0441\u043b\u0438 \u043f\u0438\u0448\u0435\u0442\u0435 desktop-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043f\u044f\u0442\u0438 \u043a\u043d\u043e\u043f\u043e\u043a \u2014 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 issues \u0438 PR.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1058458\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-487063","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=487063"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487063\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}