{"id":195760,"date":"2013-10-03T17:13:03","date_gmt":"2013-10-03T13:13:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=195760"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=195760","title":{"rendered":"<span class=\"post_title\">Windows Phone 8: \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041c\u0430\u0442\u0440\u0438\u0446\u0430. \u0427\u0430\u0441\u0442\u044c 2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<a href=\"http:\/\/habrahabr.ru\/post\/195422\/\">Windows Phone 8: \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041c\u0430\u0442\u0440\u0438\u0446\u0430. \u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/topic\/edit\/195760\/\">Windows Phone 8: \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041c\u0430\u0442\u0440\u0438\u0446\u0430. \u0427\u0430\u0441\u0442\u044c 2<\/a><\/p>\n<p>  \u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u00ab\u041f\u0430\u043d\u043e\u0440\u0430\u043c\u0430\u00bb, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445, \u0440\u0435\u0437\u043a\u043e \u043f\u043e\u043d\u0438\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u043c\u044b \u0435\u0449\u0435 \u0431\u0443\u0434\u0435\u043c \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0447\u0430\u0441\u0442\u044f\u0445. <\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0445\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0446\u0435\u043b\u0438 \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439: \u044d\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432\u0441\u0435\u0433\u043e: \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432, \u0442\u0435\u0445\u043d\u0438\u043a, \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0438 \u0442.\u0434. \u041d\u0443 \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/897\/bb3\/fb2\/897bb3fb2f999fad169f8136a89dbe67.png\"\/>  <\/p>\n<h6>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h6>\n<p>  <a name=\"habracut\"><\/a>\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u0442\u043e\u0447\u0435\u043d\u043d\u0443\u044e, \u0432 \u043f\u043b\u0430\u043d\u0435 \u043a\u043e\u0434\u0430, \u043e\u0434\u043d\u0430\u043a\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0435\u0435 \u0441\u0442\u0430\u043b\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438. \u0415\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0435\u0449\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e, \u0442\u043e \u044d\u0442\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442 \u043f\u0440\u043e\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u043a\u0438. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438. \u041d\u0430\u0447\u043d\u0435\u043c.<\/p>\n<h4>\u0426\u0435\u043b\u0438 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/h4>\n<p>  <\/p>\n<ol>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u041f\u0430\u043d\u043e\u0440\u0430\u043c\u0430 <\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <\/li>\n<\/ol>\n<p>  <\/p>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/h4>\n<p>  <\/p>\n<ul>\n<li>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435<\/li>\n<li>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438<\/li>\n<li>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0437\u0443\u0449\u0438\u0445 \u0437\u043c\u0435\u0435\u043a \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435<\/li>\n<li>\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430<\/li>\n<li>\u0421\u0442\u0430\u0440\u0442 \/ \u0421\u0442\u043e\u043f<\/li>\n<li>\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/li>\n<li>\u0420\u0430\u0437\u043c\u0435\u0440(\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e) \u043a\u043b\u0435\u0442\u043e\u0447\u0435\u043a \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0435<\/li>\n<li>\u0414\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435<\/li>\n<li>\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \/ \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/li>\n<li>\u0412\u044b\u0431\u043e\u0440 \u044f\u0437\u044b\u043a\u0430 \u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/li>\n<li>\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/li>\n<li>\u0426\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/li>\n<li>\u0413\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u0434\u043b\u044f \u0437\u043c\u0435\u0439\u043a\u0438<\/li>\n<\/ul>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e:<\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/CcRsiLBk_fM?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/IfKt-18buxM?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h4>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0432 Visual Studio<\/h4>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Windows Phone \u0441 \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u043e\u0439.<br \/>  \u0423 \u043c\u0435\u043d\u044f \u0438\u043c\u044f \u0431\u0443\u0434\u0435\u0442 SE_Matrix_2d_v_4.<br \/>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u0430\u043a \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437.<\/p>\n<h4>MainPage.xaml<\/h4>\n<p>  \u0422\u0443\u0442 \u0443 \u043d\u0430\u0441 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0412 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u041f\u0430\u043d\u043e\u0440\u0430\u043c\u0430 \u0443 \u043c\u0435\u043d\u044f 3 \u0441\u0435\u043a\u0446\u0438\u0438:<\/p>\n<pre><code class=\"xml\">&lt;!--\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Panorama--&gt;         &lt;phone:Panorama Title=&quot;&quot;&gt;             &lt;phone:Panorama.Background&gt;                 &lt;ImageBrush \/&gt;             &lt;\/phone:Panorama.Background&gt;              &lt;!--\u041f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem &gt; ...             &lt;\/phone:PanoramaItem&gt;              &lt;!--\u0412\u0442\u043e\u0440\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem&gt;    ...             &lt;\/phone:PanoramaItem&gt;              &lt;!--\u0422\u0440\u0435\u0442\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem&gt;    ...             &lt;\/phone:PanoramaItem&gt;         &lt;\/phone:Panorama&gt; <\/code><\/pre>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u0422\u0443\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c, \u0432\u0441\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<pre><code class=\"xml\">            &lt;!--\u041f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem &gt;                 &lt;Grid x:Name=&quot;LayoutRootSecond&quot; Background=&quot;Black&quot; Margin=&quot;0,-32,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; Tap=&quot;Event_Grid_Tap_LayoutRoot&quot;\/&gt;             &lt;\/phone:PanoramaItem&gt; <\/code><\/pre>\n<p>  \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u0435\u0440\u0432\u044b\u0435 9 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438\u0437 13, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u041d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432 TextBlock, TextBox \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438 Button \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0422\u0430\u043a \u0436\u0435 \u0432\u0441\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u043e \u0432 ScrollViewer \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043e\u043a \u0432 \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d \u043d\u0435 \u0432\u043b\u0435\u0437\u0430\u0435\u0442. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 TextBox \u043c\u0435\u0442\u043e\u0434 \u0432\u0432\u043e\u0434\u0430 \u0432\u044b\u0431\u0440\u0430\u043d \u043a\u0430\u043a \u0447\u0438\u0441\u043b\u0430, InputScope=\u00abNumber\u00bb. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u043f\u0430\u0440\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u0449\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 InputScope=\u00abDefault\u00bb.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. \u0412\u0442\u043e\u0440\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">            &lt;!--\u0412\u0442\u043e\u0440\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem&gt;                     &lt;Grid x:Name=&quot;LayoutRootThierd&quot; Grid.Column=&quot;1&quot; Background=&quot;Transparent&quot; Margin=&quot;0, 0,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; &gt;                     &lt;ScrollViewer  HorizontalScrollBarVisibility=&quot;Auto&quot;  &gt;                         &lt;Grid x:Name=&quot;Grid_SettingsRight&quot; Grid.Column=&quot;1&quot; Background=&quot;Transparent&quot; Margin=&quot;0, 0,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; &gt;                             &lt;!-- \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0437\u043c\u0435\u0439\u043a\u0438 \u0432 \u043c\u0441\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043c\u0441 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,3,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043c\u0441&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_SppeedFrom&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;20&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;100&quot; Margin=&quot;9,28,0,0&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_SppeedTo&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;40&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;100&quot; Margin=&quot;114,28,0,0&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_SpeedApplay&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;65&quot; Margin=&quot;288,30,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_SpeedApplay&quot;\/&gt;                              &lt;!-- \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,95,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438&quot; VerticalAlignment=&quot;Top&quot; RenderTransformOrigin=&quot;-0.256,0.233&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_CountQueue&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; Margin=&quot;10,127,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;5&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot; RenderTransformOrigin=&quot;0.49,-0.049&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_CountQueue&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;287,127,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_CountQueue&quot; RenderTransformOrigin=&quot;1.474,0.483&quot; Height=&quot;67&quot;\/&gt;                              &lt;!-- \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,194,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_\u0421ountSimultaneously&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,221,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_\u0421ountSimultaneously&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;288,221,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_\u0421ountSimultaneously&quot; RenderTransformOrigin=&quot;1.474,0.483&quot;\/&gt;                              &lt;!-- \u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;27,293,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 (+ - [n])&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_FontSize&quot; InputScope=&quot;Default&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;9,320,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;-2&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_FontSize&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;288,320,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_FontSize&quot; RenderTransformOrigin=&quot;1.474,0.483&quot;\/&gt;                              &lt;!-- \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,392,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_CountSymbol&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,419,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;3&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_CountSymbol&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;288,419,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_CountSymbol&quot; RenderTransformOrigin=&quot;1.474,0.483&quot;\/&gt;                              &lt;!-- \u0421\u0430\u0442\u0440\u0442 \/ \u0421\u0442\u043e\u043f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f --&gt;                             &lt;TextBlock x:Name=&quot;TextBlock_OnOff&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,491,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u043a\u043b\/\u0412\u044b\u043a\u043b \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;ToggleButton x:Name=&quot;Button_Stop&quot; Content=&quot;Stop&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;214,523,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_Stop&quot; Width=&quot;180&quot;\/&gt;                             &lt;ToggleButton x:Name=&quot;Button_Start&quot; Content=&quot;Start&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,523,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_Start&quot; Width=&quot;180&quot;\/&gt;                                                          &lt;!-- \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,605,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0425\u043e\u0442\u0438\u0442\u0435 \u043e\u0447\u0438\u0441\u0442\u0438\u0442 \u044d\u043a\u0440\u0430\u043d?&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;Button Content=&quot; YES &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,632,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;371&quot; Click=&quot;Event_Button_Click_Clear&quot;\/&gt;                              &lt;!-- \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;27,709,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;369&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_ElementSize&quot; InputScope=&quot;Default&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,734,0,-17&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;-6&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button Content=&quot;Ok&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;286,736,0,-19&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;93&quot; Click=&quot;Event_Button_Click_ElementSize&quot;\/&gt;                              &lt;!-- \u0414\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;27,809,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0414\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 \u043e\u0442: \u0434\u043e:&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;369&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_MinLength&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,834,0,-17&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;3&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_MaxLength&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;10&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;100&quot; Margin=&quot;114,834,0,-17&quot;\/&gt;                             &lt;Button Content=&quot;Ok&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;286,836,0,-19&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;93&quot; Click=&quot;Event_Button_Click_MaxLength&quot;\/&gt;                                                          &lt;!-- \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043a\u043b\u044c\u043d\u043e\u0435 \/  \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,905,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u0443&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;ToggleButton x:Name=&quot;ToggleButton_Turn&quot; Content=&quot;\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,932,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;371&quot; Click=&quot;Event_Button_Click_Turn&quot;\/&gt;                                                 &lt;\/Grid&gt;                     &lt;\/ScrollViewer&gt;                 &lt;\/Grid&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 4 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438: \u0432\u044b\u0431\u043e\u0440 \u044f\u0437\u044b\u043a\u0430, \u0446\u0432\u0435\u0442\u0430 \u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443, \u0444\u043e\u043d\u0443, \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0437\u043c\u0435\u0439\u043a\u0438. \u0422\u0430\u043a \u0436\u0435 \u0432\u0441\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 ScrollViewer \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0442\u0443\u0442 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e ColorPicker. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"http:\/\/coding4fun.codeplex.com\/\">Coding4Fun<\/a>. <\/p>\n<h5>\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Coding4Fun<\/h5>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u0441 \u043d\u0443\u0433\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u0430\u0447\u0430\u043b \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<br \/>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435.<br \/>   \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043a\u0440\u0430\u0441\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0441 \u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e \u00abVia CodePlex Current Release Zip\u00bb. <br \/>  \u041a\u0430\u0447\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u00abCoding4Fun.Toolkit (Windows Phone 8).zip\u00bb.<br \/>  \u0418\u0437 \u0430\u0440\u0445\u0438\u0432\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u00abCoding4Fun.Toolkit.Controls.dll\u00bb \u043a \u0441\u0435\u0431\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442.<br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u043f\u0430\u043f\u043e\u0447\u043a\u0443 \u00abReferences\u00bb. \u0416\u043c\u0435\u043c \u043d\u0430 \u043d\u0435\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u2014 \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u2014 \u0421\u043f\u0440\u0430\u0432\u0430 \u0432\u043d\u0438\u0437\u0443 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u041e\u0431\u0437\u043e\u0440\u2026 \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430\u0448\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0438 \u0436\u043c\u0435\u043c \u041e\u041a.<br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u041f\u0430\u043d\u0435\u043b\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0433\u0434\u0435 \u0443\u0433\u043e\u0434\u043d\u043e \u0432 \u0435\u0435 \u043f\u0440\u0438\u0434\u0435\u043b\u0430\u0445 \u2014 \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b\u2026 \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 Windows Phone Components. \u0421\u043f\u0440\u0430\u0432\u0430 \u0432\u043d\u0438\u0437\u0443 \u0436\u043c\u0435\u043c \u043e\u0431\u0437\u043e\u0440 \u0438 \u0441\u043d\u043e\u0432\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Coding4Fun.Toolkit.Controls.dll. \u041d\u043e\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0435\u043d\u044b. \u0421\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0431 \u0432\u043e\u0437\u043b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0431\u044b\u043b\u0430 \u0433\u0430\u043b\u043e\u0447\u043a\u0430.<br \/>  \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0430<\/p>\n<pre><code class=\"xml\">    xmlns:Controls=&quot;clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls&quot; <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c. \u041f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c ColorPicker \u0441 \u041f\u0430\u043d\u0435\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0438\u043c\u044f. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0446\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435, \u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u043a \u0440\u0430\u0437\u043d\u044b\u043c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u044b.<\/p>\n<pre><code class=\"xml\">                            &lt;!-- \u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0432\u0435\u0442\u0430. Codding4Fun --&gt;                             &lt;Controls:ColorPicker x:Name=&quot;ColorPicker&quot; VerticalAlignment=&quot;Top&quot; Height=&quot;360&quot; Margin=&quot;10,154,10,0&quot;\/&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,114,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0438\u0440\u0435\u0442\u0435 \u0446\u0432\u0435\u0442&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;412&quot; Height=&quot;35&quot;\/&gt; <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043d\u043e\u043f\u043a\u0443, \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u044f\u0437\u044b\u043a\u0430:<\/p>\n<pre><code class=\"xml\">                            &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u044f\u0437\u044b\u043a\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 --&gt;                             &lt;StackPanel Margin=&quot;0,0,0,649&quot; &gt;                                 &lt;!-- \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e --&gt;                                 &lt;Popup  Name=&quot;Popup_ButtonDropDownSelectLanguage&quot; Margin=&quot;0,0,10,0&quot;&gt;                                     &lt;StackPanel Margin=&quot;10,50,0,0&quot; Background=&quot;DarkGray&quot;  Width=&quot;393&quot; Name=&quot;StackPanel_ButtonDropDownSelectLanguage&quot;&gt;                                     &lt;\/StackPanel&gt;                                 &lt;\/Popup&gt;                                 &lt;TextBlock TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0438\u0440\u0435\u0442\u0435 \u044f\u0437\u044b\u043a \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&quot;\/&gt;                                 &lt;!-- \u041a\u043d\u043e\u043f\u043a\u0430, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0430\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043e\u043a\u043d\u043e --&gt;                                 &lt;Button Margin=&quot;0,10,10,0&quot; x:Name=&quot;Button_SelectLanguage&quot; Content=&quot;\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439&quot;  Click=&quot;Event_Button_Click_SelectLanguage&quot; Height=&quot;74&quot; \/&gt;                             &lt;\/StackPanel&gt; <\/code><\/pre>\n<p>  \u0418 \u0435\u0449\u0435 \u043f\u0430\u0440\u0430 \u043a\u043d\u043e\u043f\u043e\u043a \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u044b.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. \u0422\u0440\u0435\u0442\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">            &lt;!--\u0422\u0440\u0435\u0442\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem &gt;                 &lt;Grid x:Name=&quot;LayoutRoot123&quot; Background=&quot;Transparent&quot; Margin=&quot;0,-32,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; &gt;                     &lt;ScrollViewer HorizontalScrollBarVisibility=&quot;Hidden&quot; Margin=&quot;0,26,0,0&quot; &gt;                                              &lt;Grid Margin=&quot;0,0,0,0&quot; Height=&quot;984&quot; &gt;                             &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u044f\u0437\u044b\u043a\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 --&gt;                             &lt;StackPanel Margin=&quot;0,0,0,649&quot; &gt;                                 &lt;!-- \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e --&gt;                                 &lt;Popup  Name=&quot;Popup_ButtonDropDownSelectLanguage&quot; Margin=&quot;0,0,10,0&quot;&gt;                                     &lt;StackPanel Margin=&quot;10,50,0,0&quot; Background=&quot;DarkGray&quot;  Width=&quot;393&quot; Name=&quot;StackPanel_ButtonDropDownSelectLanguage&quot;&gt;                                     &lt;\/StackPanel&gt;                                 &lt;\/Popup&gt;                                 &lt;TextBlock TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0438\u0440\u0435\u0442\u0435 \u044f\u0437\u044b\u043a \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&quot;\/&gt;                                 &lt;!-- \u041a\u043d\u043e\u043f\u043a\u0430, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0430\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043e\u043a\u043d\u043e --&gt;                                 &lt;Button Margin=&quot;0,10,10,0&quot; x:Name=&quot;Button_SelectLanguage&quot; Content=&quot;\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439&quot;  Click=&quot;Event_Button_Click_SelectLanguage&quot; Height=&quot;74&quot; \/&gt;                             &lt;\/StackPanel&gt;                                                          &lt;!-- \u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0432\u0435\u0442\u0430. Codding4Fun --&gt;                             &lt;Controls:ColorPicker x:Name=&quot;ColorPicker&quot; VerticalAlignment=&quot;Top&quot; Height=&quot;360&quot; Margin=&quot;10,154,10,0&quot;\/&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,114,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0438\u0440\u0435\u0442\u0435 \u0446\u0432\u0435\u0442&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;412&quot; Height=&quot;35&quot;\/&gt;                                                         &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b --&gt;                             &lt;Button x:Name=&quot;Button_BackgroundColor&quot; Content=&quot;\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,533,0,0&quot; VerticalAlignment=&quot;Top&quot; RenderTransformOrigin=&quot;-0.404,-0.757&quot; Width=&quot;412&quot; Click=&quot;Event_Button_Click_ChangeBackground&quot;\/&gt;                                                          &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 --&gt;                             &lt;Button x:Name=&quot;Button_FirstSymbolColor&quot; Content=&quot;\u0426\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,605,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;412&quot; Click=&quot;Event_Button_Click_FirstSymbolColor&quot;\/&gt;                                                          &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,682,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0446\u0432\u0435\u0442\u0430 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438&quot; VerticalAlignment=&quot;Top&quot; RenderTransformOrigin=&quot;-0.915,-1.222&quot; Width=&quot;412&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_GradientFrom&quot; Content=&quot;\u041e\u0442&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,714,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;180&quot; Click=&quot;Event_Button_Click_GradientFrom&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_GradientTo&quot; Content=&quot;\u0414\u043e&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;245,714,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;180&quot; Click=&quot;Event_Button_Click_GradientTo&quot;\/&gt;                         &lt;\/Grid&gt;                     &lt;\/ScrollViewer&gt;                 &lt;\/Grid&gt;             &lt;\/phone:PanoramaItem&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. MainPage.xaml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;phone:PhoneApplicationPage     xmlns=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&quot;     xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;     xmlns:phone=&quot;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone&quot;     xmlns:shell=&quot;clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone&quot;     xmlns:d=&quot;http:\/\/schemas.microsoft.com\/expression\/blend\/2008&quot;     xmlns:mc=&quot;http:\/\/schemas.openxmlformats.org\/markup-compatibility\/2006&quot;     xmlns:UI=&quot;clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI&quot;     xmlns:Controls=&quot;clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls&quot;     x:Class=&quot;SE_Matrix_2d_v_4.MainPage&quot;     mc:Ignorable=&quot;d&quot;     d:DataContext=&quot;{d:DesignData SampleData\/MainViewModelSampleData.xaml}&quot;     FontFamily=&quot;{StaticResource PhoneFontFamilyNormal}&quot;     FontSize=&quot;{StaticResource PhoneFontSizeNormal}&quot;     Foreground=&quot;{StaticResource PhoneForegroundBrush}&quot;     SupportedOrientations=&quot;Portrait&quot;  Orientation=&quot;Portrait&quot;     shell:SystemTray.IsVisible=&quot;False&quot;&gt;      &lt;!--LayoutRoot \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u0443\u044e \u0441\u0435\u0442\u043a\u0443, \u0433\u0434\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b--&gt;     &lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;Transparent&quot;&gt;          &lt;!-- \u041f\u0420\u0418\u041c\u0415\u0427\u0410\u041d\u0418\u0415 \u041e \u041b\u041e\u041a\u0410\u041b\u0418\u0417\u0410\u0426\u0418\u0418:             \u0427\u0442\u043e\u0431\u044b \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u043d\u044b\u0435             \u043a\u043b\u044e\u0447\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (AppResources.resx), \u0430 \u0437\u0430\u0442\u0435\u043c             \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0436\u0435\u0441\u0442\u043a\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u043c\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432             \u043d\u0430 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043d\u0430 \u0438\u043c\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.              \u041f\u0440\u0438\u043c\u0435\u0440:                  Text=&quot;{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}&quot;              \u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c &quot;ApplicationTitle&quot;.              \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &quot;\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430&quot; \u0441\u043e\u0437\u0434\u0430\u0435\u0442             \u043d\u043e\u0432\u044b\u0439 RESX-\u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0433\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f             \u0441\u0442\u0440\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u0432 \u044d\u0442\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443             \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0438\u0437 RESX-\u0444\u0430\u0439\u043b\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e             CurrentUICulture \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.          --&gt;          &lt;!--\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Panorama--&gt;         &lt;phone:Panorama Title=&quot;&quot;&gt;             &lt;phone:Panorama.Background&gt;                 &lt;ImageBrush \/&gt;             &lt;\/phone:Panorama.Background&gt;              &lt;!--\u041f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem &gt;                 &lt;!--\u0422\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430--&gt;                 &lt;Grid x:Name=&quot;LayoutRootSecond&quot; Background=&quot;Black&quot; Margin=&quot;0,-32,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; Tap=&quot;Event_Grid_Tap_LayoutRoot&quot;\/&gt;             &lt;\/phone:PanoramaItem&gt;              &lt;!--\u0412\u0442\u043e\u0440\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem&gt;                     &lt;Grid x:Name=&quot;LayoutRootThierd&quot; Grid.Column=&quot;1&quot; Background=&quot;Transparent&quot; Margin=&quot;0, 0,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; &gt;                     &lt;ScrollViewer  HorizontalScrollBarVisibility=&quot;Auto&quot;  &gt;                         &lt;Grid x:Name=&quot;Grid_SettingsRight&quot; Grid.Column=&quot;1&quot; Background=&quot;Transparent&quot; Margin=&quot;0, 0,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; &gt;                             &lt;!-- \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0437\u043c\u0435\u0439\u043a\u0438 \u0432 \u043c\u0441\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043c\u0441 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,3,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043c\u0441&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_SppeedFrom&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;20&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;100&quot; Margin=&quot;9,28,0,0&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_SppeedTo&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;40&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;100&quot; Margin=&quot;114,28,0,0&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_SpeedApplay&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;65&quot; Margin=&quot;288,30,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_SpeedApplay&quot;\/&gt;                              &lt;!-- \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,95,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438&quot; VerticalAlignment=&quot;Top&quot; RenderTransformOrigin=&quot;-0.256,0.233&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_CountQueue&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; Margin=&quot;10,127,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;5&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot; RenderTransformOrigin=&quot;0.49,-0.049&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_CountQueue&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;287,127,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_CountQueue&quot; RenderTransformOrigin=&quot;1.474,0.483&quot; Height=&quot;67&quot;\/&gt;                              &lt;!-- \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,194,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_\u0421ountSimultaneously&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,221,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_\u0421ountSimultaneously&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;288,221,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_\u0421ountSimultaneously&quot; RenderTransformOrigin=&quot;1.474,0.483&quot;\/&gt;                              &lt;!-- \u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;27,293,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 (+ - [n])&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_FontSize&quot; InputScope=&quot;Default&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;9,320,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;-2&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_FontSize&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;288,320,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_FontSize&quot; RenderTransformOrigin=&quot;1.474,0.483&quot;\/&gt;                              &lt;!-- \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,392,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_CountSymbol&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,419,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;3&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_CountSymbol&quot; Content=&quot; Ok &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;288,419,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_CountSymbol&quot; RenderTransformOrigin=&quot;1.474,0.483&quot;\/&gt;                              &lt;!-- \u0421\u0430\u0442\u0440\u0442 \/ \u0421\u0442\u043e\u043f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f --&gt;                             &lt;TextBlock x:Name=&quot;TextBlock_OnOff&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,491,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u043a\u043b\/\u0412\u044b\u043a\u043b \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;ToggleButton x:Name=&quot;Button_Stop&quot; Content=&quot;Stop&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;214,523,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_Stop&quot; Width=&quot;180&quot;\/&gt;                             &lt;ToggleButton x:Name=&quot;Button_Start&quot; Content=&quot;Start&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,523,0,0&quot; VerticalAlignment=&quot;Top&quot; Click=&quot;Event_Button_Click_Start&quot; Width=&quot;180&quot;\/&gt;                                                          &lt;!-- \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,605,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0425\u043e\u0442\u0438\u0442\u0435 \u043e\u0447\u0438\u0441\u0442\u0438\u0442 \u044d\u043a\u0440\u0430\u043d?&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;Button Content=&quot; YES &quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,632,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;371&quot; Click=&quot;Event_Button_Click_Clear&quot;\/&gt;                              &lt;!-- \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;27,709,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;369&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_ElementSize&quot; InputScope=&quot;Default&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,734,0,-17&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;-6&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;Button Content=&quot;Ok&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;286,736,0,-19&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;93&quot; Click=&quot;Event_Button_Click_ElementSize&quot;\/&gt;                              &lt;!-- \u0414\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;27,809,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0414\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 \u043e\u0442: \u0434\u043e:&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;369&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_MinLength&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;72&quot; Margin=&quot;10,834,0,-17&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;3&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;101&quot;\/&gt;                             &lt;TextBox x:Name=&quot;TextBox_MaxLength&quot; InputScope=&quot;Number&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;67&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;10&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;100&quot; Margin=&quot;114,834,0,-17&quot;\/&gt;                             &lt;Button Content=&quot;Ok&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;286,836,0,-19&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;93&quot; Click=&quot;Event_Button_Click_MaxLength&quot;\/&gt;                                                          &lt;!-- \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043a\u043b\u044c\u043d\u043e\u0435 \/  \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;28,905,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u0443&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;352&quot;\/&gt;                             &lt;ToggleButton x:Name=&quot;ToggleButton_Turn&quot; Content=&quot;\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,932,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;371&quot; Click=&quot;Event_Button_Click_Turn&quot;\/&gt;                                                 &lt;\/Grid&gt;                     &lt;\/ScrollViewer&gt;                 &lt;\/Grid&gt;                                  &lt;\/phone:PanoramaItem&gt;              &lt;!--\u0422\u0440\u0435\u0442\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Panorama--&gt;             &lt;phone:PanoramaItem &gt;                 &lt;Grid x:Name=&quot;LayoutRoot123&quot; Background=&quot;Transparent&quot; Margin=&quot;0,-32,-2,7&quot; RenderTransformOrigin=&quot;0.500,0.500&quot; &gt;                     &lt;ScrollViewer HorizontalScrollBarVisibility=&quot;Hidden&quot; Margin=&quot;0,26,0,0&quot; &gt;                                              &lt;Grid Margin=&quot;0,0,0,0&quot; Height=&quot;984&quot; &gt;                             &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u044f\u0437\u044b\u043a\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 --&gt;                             &lt;StackPanel Margin=&quot;0,0,0,649&quot; &gt;                                 &lt;!-- \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e --&gt;                                 &lt;Popup  Name=&quot;Popup_ButtonDropDownSelectLanguage&quot; Margin=&quot;0,0,10,0&quot;&gt;                                     &lt;StackPanel Margin=&quot;10,50,0,0&quot; Background=&quot;DarkGray&quot;  Width=&quot;393&quot; Name=&quot;StackPanel_ButtonDropDownSelectLanguage&quot;&gt;                                     &lt;\/StackPanel&gt;                                 &lt;\/Popup&gt;                                 &lt;TextBlock TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0438\u0440\u0435\u0442\u0435 \u044f\u0437\u044b\u043a \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&quot;\/&gt;                                 &lt;!-- \u041a\u043d\u043e\u043f\u043a\u0430, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0430\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043e\u043a\u043d\u043e --&gt;                                 &lt;Button Margin=&quot;0,10,10,0&quot; x:Name=&quot;Button_SelectLanguage&quot; Content=&quot;\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439&quot;  Click=&quot;Event_Button_Click_SelectLanguage&quot; Height=&quot;74&quot; \/&gt;                             &lt;\/StackPanel&gt;                                                          &lt;!-- \u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0432\u0435\u0442\u0430. Codding4Fun --&gt;                             &lt;Controls:ColorPicker x:Name=&quot;ColorPicker&quot; VerticalAlignment=&quot;Top&quot; Height=&quot;360&quot; Margin=&quot;10,154,10,0&quot;\/&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,114,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0438\u0440\u0435\u0442\u0435 \u0446\u0432\u0435\u0442&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;412&quot; Height=&quot;35&quot;\/&gt;                                                         &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b --&gt;                             &lt;Button x:Name=&quot;Button_BackgroundColor&quot; Content=&quot;\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,533,0,0&quot; VerticalAlignment=&quot;Top&quot; RenderTransformOrigin=&quot;-0.404,-0.757&quot; Width=&quot;412&quot; Click=&quot;Event_Button_Click_ChangeBackground&quot;\/&gt;                                                          &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 --&gt;                             &lt;Button x:Name=&quot;Button_FirstSymbolColor&quot; Content=&quot;\u0426\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,605,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;412&quot; Click=&quot;Event_Button_Click_FirstSymbolColor&quot;\/&gt;                                                          &lt;!-- \u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 --&gt;                             &lt;TextBlock HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,682,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0446\u0432\u0435\u0442\u0430 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438&quot; VerticalAlignment=&quot;Top&quot; RenderTransformOrigin=&quot;-0.915,-1.222&quot; Width=&quot;412&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_GradientFrom&quot; Content=&quot;\u041e\u0442&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,714,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;180&quot; Click=&quot;Event_Button_Click_GradientFrom&quot;\/&gt;                             &lt;Button x:Name=&quot;Button_GradientTo&quot; Content=&quot;\u0414\u043e&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;245,714,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;180&quot; Click=&quot;Event_Button_Click_GradientTo&quot;\/&gt;                         &lt;\/Grid&gt;                     &lt;\/ScrollViewer&gt;                 &lt;\/Grid&gt;             &lt;\/phone:PanoramaItem&gt;         &lt;\/phone:Panorama&gt;          &lt;!--\u0420\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0435\u0442\u043a\u0443 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c             \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u043e\u0431\u0449\u0438\u043c \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u043c.  \u0412\u0435\u0440\u0445\u043d\u0435\u0435 \u043f\u043e\u043b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0432\u043d\u043e -32 \u043f\u0438\u043a\u0441\u0435\u043b\u044f, \u0447\u0442\u043e\u0431\u044b             \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e \u0440\u0430\u0432\u043d\u044b\u043c 0 (\u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u043f\u043e\u043b\u0435),             \u0435\u0441\u043b\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0441\u043a\u0440\u044b\u0442\u0430.              \u041f\u0435\u0440\u0435\u0434 \u0441\u0434\u0430\u0447\u0435\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 XAML \u0438 \u0441\u0430\u043c\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435.--&gt;         &lt;!--&lt;Image Source=&quot;\/Assets\/AlignmentGrid.png&quot; VerticalAlignment=&quot;Top&quot; Height=&quot;800&quot; Width=&quot;480&quot; Margin=&quot;0&quot; Grid.Row=&quot;0&quot; Grid.RowSpan=&quot;2&quot; IsHitTestVisible=&quot;False&quot; \/&gt;--&gt;      &lt;\/Grid&gt; &lt;\/phone:PhoneApplicationPage&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u043d\u0435\u0448\u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/590\/b8a\/dc8\/590b8adc8fcbed98433354a14c103a59.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/e91\/b8a\/649\/e91b8a64907c90e4c422e025e9d26aee.png\"\/><\/p>\n<h4>MainPage.xaml.cs<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/* ****************************** \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 ****************************** *\/         \/\/ \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e         Random random = new Random();          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438         int iteration = 5;          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f         int countSimultaneously = 3;          \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432         int speedFrom = 20;         int speedTo = 40;          \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430         int addingSize = -6;          \/\/ \u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430         int fontSize;          \/\/ \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438         int minLength = 10;         int maxLength = 15;          \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430         double ScreenWidth = System.Windows.Application.Current.Host.Content.ActualWidth - 60;         double ScreenHeight = System.Windows.Application.Current.Host.Content.ActualHeight - 100;                  \/\/ \u041a\u043e\u0435\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0432\u0442\u043e \u044f\u0447\u0435\u0435\u043a \u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0437\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430         int kolich = 30;          \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 kolich + addingFontSize.         int addingFontSize = -2;          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435         int countSymbol = 3;          \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c (false), \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c (true) \u043c\u0430\u0442\u0440\u0438\u0446\u0443         bool flagOnOff = false;          \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c (false), \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c (true) &quot;\u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430&quot;         bool turnOnOff = true;          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432         int countWidth = 10;         int countHeight = 10;          \/\/ \u0421\u043b\u043e\u0432\u0430\u0440\u044c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u044f\u0437\u044b\u043a\u0430 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0435\u043c\u0443 ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432         Dictionary&lt;string, int[]&gt; languages = new Dictionary&lt;string, int[]&gt;();          \/\/ \u0417\u0430\u0434\u0430\u044e \u044f\u0437\u044b\u043a \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e         string actualLanguage = &quot;\u0420\u0443\u0441\u0441\u043a\u0438\u0439&quot;;          \/\/ \u0424\u043b\u0430\u0433, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (true) \/ \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (false) \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e (PopUp) \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u044f\u0437\u044b\u043a\u0430         bool flagShowLanguages = true;          \/\/ \u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b, ARGB         Dictionary&lt;string, int&gt; colorMatrixBackground = new Dictionary&lt;string, int&gt;();          \/\/ \u0426\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430, ARGB         Dictionary&lt;string, int&gt; colorFirstSymbol = new Dictionary&lt;string, int&gt;();          \/\/ \u0426\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 \u043e\u0442 (\u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b) - \u0434\u043e (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b), ARGB         Dictionary&lt;string, int&gt; gradientFrom = new Dictionary&lt;string, int&gt;();         Dictionary&lt;string, int&gt; gradientTo = new Dictionary&lt;string, int&gt;(); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043a\u043b\u0430\u0441\u0441\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043a\u043b\u0430\u0441\u0441\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440         public MainPage()         {             InitializeComponent();              \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0446\u0432\u0435\u0442\u043e\u0432 \u0444\u043e\u043d\u0430, \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u0442.\u0434.             BeginColorSettings();              \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0438\u043c ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432             ListLanguages();              \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432             this.countWidth = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + Math.Abs(addingSize);             this.countHeight = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);              \/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u044b\u043f\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430             CreateElement();              \/\/ \u041f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0412\u043a\u043b \u0438\u043b\u0438 \u0412\u044b\u043a\u043b,  \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0444\u043b\u0430\u0433\u0430             if (this.flagOnOff)             {                 Button_Stop.Background = new SolidColorBrush(Colors.Cyan);                 Button_Start.Background = new SolidColorBrush(Colors.Black);             }             else             {                 Button_Stop.Background = new SolidColorBrush(Colors.Black);                 Button_Start.Background = new SolidColorBrush(Colors.Cyan);             }              \/\/ \u041c\u0435\u043d\u044f\u0435\u043c \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             ChangeBackground();         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0432\u0435\u0442\u0430. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 BeginColorSettings();  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. BeginColorSettings<\/b><\/p>\n<div class=\"spoiler_text\">  <\/p>\n<pre><code class=\"cs\">        \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0446\u0432\u0435\u0442\u043e\u0432 \u0444\u043e\u043d\u0430, \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u0442.\u0434         private void BeginColorSettings()         {             \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             colorMatrixBackground[&quot;A&quot;] = 0;             colorMatrixBackground[&quot;R&quot;] = 0;             colorMatrixBackground[&quot;G&quot;] = 0;             colorMatrixBackground[&quot;B&quot;] = 0;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430             colorFirstSymbol[&quot;A&quot;] = 255;             colorFirstSymbol[&quot;R&quot;] = 248;             colorFirstSymbol[&quot;G&quot;] = 248;             colorFirstSymbol[&quot;B&quot;] = 255;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u043e\u0442 (\u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0437\u043c\u0435\u0439\u043a\u0435)             gradientFrom[&quot;A&quot;] = 255;             gradientFrom[&quot;R&quot;] = 1;             gradientFrom[&quot;G&quot;] = 255;             gradientFrom[&quot;B&quot;] = 1;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0434\u043e (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0437\u043c\u0435\u0439\u043a\u0435)             gradientTo[&quot;A&quot;] = 0;             gradientTo[&quot;R&quot;] = 0;             gradientTo[&quot;G&quot;] = 0;             gradientTo[&quot;B&quot;] = 0;         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/h5>\n<p>  \u0417\u0430\u0434\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443 \u0446\u0432\u0435\u0442, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 ARGB. \u041f\u043e\u0447\u0435\u043c\u0443 \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435? \u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c (\u0410) \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0437\u0430\u0442\u0443\u0445\u0430\u043d\u0438\u044f.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. ChangeBackground<\/b><\/p>\n<div class=\"spoiler_text\">  <\/p>\n<pre><code class=\"cs\">        \/\/ \u041c\u0435\u0442\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0447\u0435\u0440\u043d\u044b\u0439.         private void ChangeBackground()         {             \/\/ \u0417\u0430\u0434\u0430\u044e \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             LayoutRootSecond.Background = new SolidColorBrush(new Color()             {                 A = (byte)(colorMatrixBackground[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(colorMatrixBackground[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(colorMatrixBackground[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(colorMatrixBackground[&quot;B&quot;]) \/*Blue*\/             });         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u0442\u043e\u0434. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431 \u0446\u0432\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f, \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u0437 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0430 ColorPicker, \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 \u0438 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 ChangeBackground:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_ChangeBackground<\/b><\/p>\n<div class=\"spoiler_text\">  <\/p>\n<pre><code class=\"cs\">        \/\/ \u041c\u0435\u043d\u044f\u0435\u043c \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b         private void Event_Button_Click_ChangeBackground(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 colorMatrixBackground \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             colorMatrixBackground[&quot;A&quot;] = ColorPicker.Color.A;             colorMatrixBackground[&quot;R&quot;] = ColorPicker.Color.R;             colorMatrixBackground[&quot;G&quot;] = ColorPicker.Color.G;             colorMatrixBackground[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_BackgroundColor.Background = new SolidColorBrush(new Color()             {                 A = (byte)(colorMatrixBackground[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(colorMatrixBackground[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(colorMatrixBackground[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(colorMatrixBackground[&quot;B&quot;]) \/*Blue*\/             });              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             ChangeBackground();         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0426\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0437\u043c\u0435\u0439\u043a\u0438<\/h5>\n<p>  \u0418\u0437\u043c\u0435\u043d\u0438\u043c \u0446\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0437\u043c\u0435\u0439\u043a\u0438. \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0437\u043c\u0435\u0439\u043a\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 RandomElementQ_Async \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e:  <\/p>\n<pre><code class=\"cs\">                    \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u043f\u0440\u043e\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u043f\u0435\u0440\u0432\u044b\u0439, \u0441\u0430\u043c\u044b\u0439 \u044f\u0440\u043a\u0438\u0439 \u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e.                     \/\/ colorFirstSymbol[&quot;A&quot;]. \u0426\u0432\u0435\u0442 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443.                                        await Change(element, timeOut, colorFirstSymbol); <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_FirstSymbolColor<\/b><\/p>\n<div class=\"spoiler_text\">  <\/p>\n<pre><code class=\"cs\">        \/\/ \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430         private void Event_Button_Click_FirstSymbolColor(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 colorFirstSymbol \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             colorFirstSymbol[&quot;A&quot;] = ColorPicker.Color.A;             colorFirstSymbol[&quot;R&quot;] = ColorPicker.Color.R;             colorFirstSymbol[&quot;G&quot;] = ColorPicker.Color.G;             colorFirstSymbol[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_FirstSymbolColor.Background = new SolidColorBrush(new Color()             {                 A = (byte)(colorFirstSymbol[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(colorFirstSymbol[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(colorFirstSymbol[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(colorFirstSymbol[&quot;B&quot;]) \/*Blue*\/             });         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430<\/h5>\n<p>  \u041d\u0443 \u0432\u043e\u0442 \u0438 \u0434\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0434\u043e \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u044d\u0442\u043e \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0446\u0432\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_Gradient<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0417\u0430\u0434\u0430\u0435\u043c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u0437\u043c\u0435\u0439\u043a\u0438. \u0426\u0432\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430.         private void Event_Button_Click_GradientFrom(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 gradientFrom \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             gradientFrom[&quot;A&quot;] = ColorPicker.Color.A;             gradientFrom[&quot;R&quot;] = ColorPicker.Color.R;             gradientFrom[&quot;G&quot;] = ColorPicker.Color.G;             gradientFrom[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u043e\u0442 \u0437\u043c\u0435\u0439\u043a\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_GradientFrom.Background = new SolidColorBrush(new Color()             {                 A = (byte)(gradientFrom[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(gradientFrom[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(gradientFrom[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(gradientFrom[&quot;B&quot;]) \/*Blue*\/             });         }           \/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0417\u0430\u0434\u0430\u0435\u043c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u0437\u043c\u0435\u0439\u043a\u0438. \u0426\u0432\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430.         private void Event_Button_Click_GradientTo (object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 gradientTo \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             gradientTo[&quot;A&quot;] = ColorPicker.Color.A;             gradientTo[&quot;R&quot;] = ColorPicker.Color.R;             gradientTo[&quot;G&quot;] = ColorPicker.Color.G;             gradientTo[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0434\u043e \u0437\u043c\u0435\u0439\u043a\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_GradientTo.Background = new SolidColorBrush(new Color()             {                 A = (byte)(gradientTo[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(gradientTo[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(gradientTo[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(gradientTo[&quot;B&quot;]) \/*Blue*\/             });         }      <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0438 \u0446\u0432\u0435\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a \u043d\u0430\u0448\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043c\u0435\u0442\u043e\u0434 RandomElementQ_Async \u0438 \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0443 \u0447\u0430\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0440\u0430\u0441\u0447\u0435\u0442 \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u0438 \u0446\u0432\u0435\u0442\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. RandomElementQ_Async \u0438 Change<\/b><\/p>\n<div class=\"spoiler_text\">\u041c\u0435\u043d\u044f\u0435\u043c   <\/p>\n<pre><code class=\"cs\">\/\/int greenCoefficient = (int)Math.Round(255 \/ (double)(count + 1)) - 1; <\/code><\/pre>\n<p>  \u043d\u0430   <\/p>\n<pre><code class=\"cs\">                    int A_Coefficient = (int)Math.Round((gradientFrom[&quot;A&quot;] - 10) \/ (double)(count + 1)) - 1;                     int R_Coefficient = (int)Math.Round((gradientFrom[&quot;R&quot;] - gradientTo[&quot;R&quot;]) \/ (double)(count + 1)) - 1;                     int G_Coefficient = (int)Math.Round((gradientFrom[&quot;G&quot;] - gradientTo[&quot;G&quot;]) \/ (double)(count + 1)) - 1;                     int B_Coefficient = (int)Math.Round((gradientFrom[&quot;B&quot;] - gradientTo[&quot;B&quot;]) \/ (double)(count + 1)) - 1; <\/code><\/pre>\n<p>  \u0410 \u0442\u0430\u043a \u0436\u0435 \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c Task dsvv = Change(previousElement, timeOut, SymbolColor); \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:  <\/p>\n<pre><code class=\"cs\">                            \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b                             \/\/ (greenCoefficient * (k + 1)) - 20 \u0412\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u0431 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0431\u044b\u043b\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0437\u043c\u0435\u0439\u043a\u0430\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f                             \/\/ \u0438 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u043b\u0430\u0441\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0435\u0435 \u0434\u043b\u0438\u043d\u044b(\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432)                             SymbolColor[&quot;A&quot;] = (gradientFrom[&quot;A&quot;] - ((i - k) * A_Coefficient));                             SymbolColor[&quot;R&quot;] = (gradientFrom[&quot;R&quot;] - ((i - k) * R_Coefficient));                             SymbolColor[&quot;G&quot;] = (gradientFrom[&quot;G&quot;] - ((i - k) * G_Coefficient));                             SymbolColor[&quot;B&quot;] = (gradientFrom[&quot;B&quot;] - ((i - k) * B_Coefficient)); <\/code><\/pre>\n<p>  \u0418 \u043c\u0435\u043d\u044f\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 Change, \u0433\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u043e int Opacity \u0441\u0442\u0430\u0432\u0438\u043c Dictionary&lt;string, int&gt; SymbolColor:  <\/p>\n<pre><code class=\"cs\"> \/\/ \u041c\u0435\u0442\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0435\u0442\u0435         public async Task Change(TextBlock element, int timeOut, Dictionary&lt;string, int&gt; SymbolColor) <\/code><\/pre>\n<p>  \u0410 \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0437\u0430\u0434\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u0432\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u041c\u0435\u043d\u044f\u0435\u043c   <\/p>\n<pre><code class=\"cs\">            \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u044f\u0440\u043a\u043e\u0441\u0442\u044c\u044e             SolidColorBrush NewColor = new SolidColorBrush(new Color()             {                 A = (byte)(255) \/*Opacity*\/,                 R = (byte)(0) \/*Red*\/,                 G = (byte)(Opacity) \/*Green*\/,                 B = (byte)(0) \/*Blue*\/             }); <\/code><\/pre>\n<p>  \u043d\u0430   <\/p>\n<pre><code class=\"cs\">            \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u044f\u0440\u043a\u043e\u0441\u0442\u044c\u044e             SolidColorBrush NewColor = new SolidColorBrush(new Color()             {                 A = (byte)(SymbolColor[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(SymbolColor[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(SymbolColor[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(SymbolColor[&quot;B&quot;]) \/*Blue*\/             }); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0412\u044b\u0431\u043e\u0440 \u044f\u0437\u044b\u043a\u0430<\/h5>\n<p>  \u0421 \u0446\u0432\u0435\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0435\u0448\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441 \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u044f\u0437\u044b\u043a\u0430. \u0412 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0438 \u043c\u0435\u0442\u043e\u0434 ListLanguages \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. ListLanguages<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u044f\u0437\u044b\u043a\u0430 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0435\u043c\u0443 ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432         public void ListLanguages()         {             \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u043a\u043b\u044e\u0447\u044c -  \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044f\u0437\u044b\u043a\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 -  \u043c\u0430\u0441\u0441\u0438\u0432, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 ASCII \u043a\u043e\u0434\u043e\u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.             languages.Add(&quot;\u041c\u0430\u0442\u0440\u0438\u0446\u0430&quot;, new int[] { 64, 127 });             languages.Add(&quot;\u041a\u0438\u0442\u0430\u0441\u043a\u0438\u0439&quot;, new int[] { 19968, 20223 });             languages.Add(&quot;\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439&quot;, new int[] { 64, 127 });             languages.Add(&quot;\u0426\u0438\u0444\u0440\u044b&quot;, new int[] { 48, 57 });             languages.Add(&quot;\u0421\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b&quot;, new int[] { 0, 1000 });             languages.Add(&quot;\u0420\u0443\u0441\u0441\u043a\u0438\u0439&quot;, new int[] { 1040, 1103 });              \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u044f\u0437\u044b\u043a\u0438 \u0432 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0445 \u0432\u044b\u0431\u043e\u0440\u0430             foreach (var language in languages)             {                 \/\/ \u0421\u043e\u0437\u0434\u0430\u044e \u043a\u043d\u043e\u043f\u043a\u0443                 Button newLang = new Button();                  \/\/ \u0417\u0430\u0434\u0430\u044e \u043d\u0430\u0434\u043f\u0438\u0441\u044c \u043a\u043d\u043e\u043f\u043a\u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u044f\u0437\u044b\u043a\u0443                 newLang.Content = language.Key.ToString();                  \/\/ \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435                 newLang.HorizontalAlignment = HorizontalAlignment.Stretch;                  \/\/ \u0422\u043e\u043b\u0449\u0438\u043d\u0430 \u0440\u0430\u043c\u043a\u0438                 newLang.BorderThickness = new Thickness(1);                  \/\/ \u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435                 newLang.Margin = new Thickness(0,0,0,0);                  \/\/ \u0421\u043e\u0431\u044b\u0442\u0438\u0435, \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041e\u0434\u043d\u043e \u043d\u0430 \u0432\u0441\u0435.                 newLang.Click += Event_Button_Click_SelectLanguageUpdate;                  \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0441\u043e\u0437\u0434\u0430\u043d\u0443\u044e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 StackPanel_ButtonDropDownSelectLanguage.Children.Add(newLang);             }         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043d\u043e\u043f\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0438 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_SelectLanguage<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u041a\u043d\u043e\u043f\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044f\u0437\u044b\u043a\u0430. \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u043d\u044e \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.         private void Event_Button_Click_SelectLanguage(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (true) \/ \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (false) \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e (PopUp) \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u044f\u0437\u044b\u043a\u0430             if (flagShowLanguages)             {                 \/\/ \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 Popup_ButtonDropDownSelectLanguage.IsOpen = true;                 flagShowLanguages = false;             }             else             {                 \/\/ \u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 Popup_ButtonDropDownSelectLanguage.IsOpen = false;                 flagShowLanguages = true;             }         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0438, \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0439 \u044f\u0437\u044b\u043a. \u0423 \u0432\u0441\u0435\u0445 \u043a\u043d\u043e\u043f\u043e\u043a \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043a\u043d\u043e\u043f\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u043e\u043c \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u044f\u0437\u044b\u043a\u0430. \u0417\u0430\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 actualLanguage:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_SelectLanguageUpdate<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u043e\u0440\u0430 \u044f\u0437\u044b\u043a\u0430.         private void Event_Button_Click_SelectLanguageUpdate(object sender, RoutedEventArgs e)         {             \/\/ \u0415\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u044b\u0431\u043e\u0440\u0430 \u044f\u0437\u044b\u043a\u0430, \u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u044f\u0437\u044b\u043a \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d, \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043c\u0435\u043d\u044e \u0441\u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f.              if (!flagShowLanguages)             {                 \/\/ \u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 Popup_ButtonDropDownSelectLanguage.IsOpen = false;                 flagShowLanguages = true;             }              \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0436\u0430\u043b\u0438             string newLanguagr = (sender as Button).Content.ToString();              \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a             Button_SelectLanguage.Content = newLanguagr;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044f\u0437\u044b\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c             this.actualLanguage = newLanguagr;         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430. \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u043c\u0435\u0442\u043e\u0434 RandomActualSymbol, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. RandomActualSymbol<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.         public string RandomActualSymbol()         {             \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e \u043a\u043b\u044e\u0447\u0443, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u044f\u0437\u044b\u043a\u0430, \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432 actualLanguage             int[] sd = (languages[actualLanguage]);              \/\/ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0444\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0437\u0430\u0434\u0430\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435             return char.ConvertFromUtf32(this.random.Next((int)sd.GetValue(0), (int)sd.GetValue(1)));         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u044b\u0437\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0432\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 Change:  <\/p>\n<pre><code class=\"cs\">                \/\/ \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0440\u0430\u0437\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430                 element.Text = RandomActualSymbol();    <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0421\u0442\u0430\u0440\u0442 \/ \u0421\u0442\u043e\u043f<\/h5>\n<p>  \u0422\u0443\u0442 \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0444\u043b\u0430\u0433\u0430 flagOnOff, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0434\u0430\u043d \u043a\u0430\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0446\u0438\u043a\u043b\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b. <br \/>  \u0417\u0430\u0434\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043a\u043d\u043e\u043f\u043e\u043a \u00ab\u0421\u0442\u0430\u0440\u0442\u00bb \u0438 \u00ab\u0421\u0442\u043e\u043f\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u044e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0444\u043b\u0430\u0433\u0430 \u043d\u0430 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0439:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_Stop \u0438 Event_Button_Click_Start<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043c\u0435\u0435\u043a         private void Event_Button_Click_Stop(object sender, RoutedEventArgs e)         {             this.flagOnOff = true;              \/\/ \u0415\u0441\u043b\u0438 flagOnOff \u0432 true \u0442\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Stop             if (this.flagOnOff)             {                 Button_Stop.Background = new SolidColorBrush(Colors.Cyan);                 Button_Start.Background = new SolidColorBrush(Colors.Black);             }         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043c\u0435\u0435\u043a         private void Event_Button_Click_Start(object sender, RoutedEventArgs e)         {             this.flagOnOff = false;              \/\/ \u0415\u0441\u043b\u0438 flagOnOff \u0432 false \u0442\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Start             if (!this.flagOnOff)             {                 Button_Stop.Background = new SolidColorBrush(Colors.Black);                 Button_Start.Background = new SolidColorBrush(Colors.Cyan);             }         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0446\u0438\u043a\u043b\u043e\u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435  <\/p>\n<pre><code class=\"cs\"> if (flagOnOff) break; <\/code><\/pre>\n<p>  \u0410 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0446\u0438\u043a\u043b\u0430\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Event_Grid_Tap_LayoutRoot, RandomElementQ_Async, Change:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\u0412 Event_Grid_Tap_LayoutRoot:  <\/p>\n<pre><code class=\"cs\">            \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f             for (int i = 0; i &lt; countSimultaneously; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break; <\/code><\/pre>\n<p>  \u0412 RandomElementQ_Async \u0442\u0443\u0442:  <\/p>\n<pre><code class=\"cs\">             \/\/ \u0426\u0438\u043a\u043b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0437\u043c\u0435\u0439\u043a\u0443 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b length             for (int i = 0; i &lt;= length; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break; <\/code><\/pre>\n<p>  \u0438 \u0442\u0443\u0442:  <\/p>\n<pre><code class=\"cs\">                    \/\/ \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435  \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0437\u043c\u0435\u0439\u043a\u0443 \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u043e\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u043d\u0443\u0436\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b.                     for (int k = 0; k &lt;= i; k++)                     {                                                \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                         if (flagOnOff) break; <\/code><\/pre>\n<p>  \u0412 Change:  <\/p>\n<pre><code class=\"cs\">            \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0435             for (int i = 0; i &lt; countSymbol; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0430\u0436 \u0432 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u043c\u0435\u0441\u0442\u0430\u0445? \u0415\u0441\u043b\u0438 \u0437\u043c\u0435\u0435\u043a \u043c\u0430\u043b\u043e, \u0442\u043e \u0432\u0441\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u041d\u043e \u0435\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u043d\u0435\u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 50+, \u0442\u043e \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u043c\u0438 \u0442\u043e\u0440\u043c\u043e\u0437\u0430\u043c\u0438. \u0410 \u0442\u0430\u043a \u043c\u044b \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b.<br \/>  \u041d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u0440\u0430\u0441\u043e\u0442\u044b, \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0436\u0430\u0442\u0430. \u0412 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u0437\u0430 \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"cs\">            \/\/ \u041f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0412\u043a\u043b \u0438\u043b\u0438 \u0412\u044b\u043a\u043b,  \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0444\u043b\u0430\u0433\u0430             if (this.flagOnOff)             {                 Button_Stop.Background = new SolidColorBrush(Colors.Cyan);                 Button_Start.Background = new SolidColorBrush(Colors.Black);             }             else             {                 Button_Stop.Background = new SolidColorBrush(Colors.Black);                 Button_Start.Background = new SolidColorBrush(Colors.Cyan);             } <\/code><\/pre>\n<p>  \u0422\u043e\u0447\u043d\u0435\u0435 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h5>\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/h5>\n<p>  \u041f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f Event_Button_Click_Clear \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u0432 CreateElement, \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u043a\u0430\u043a \u0441\u0438\u043c\u0432\u043e\u043b \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u043e\u0442\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_Clear<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430         private void Event_Button_Click_Clear(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0435\u0442\u043a\u0443 \u044f\u0447\u0435\u0435\u043a \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0435 \u043a\u0430\u043a \u0441\u0438\u043c\u0432\u043e\u043b - \u043f\u0443\u0441\u0442\u043e\u0442\u0443             for ( int i = 0; i &lt; countWidth; i++)             {                 for (int j = 0; j &lt; countHeight; j++)                 {                     \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u043e\u0447\u0438\u0449\u0430\u0442\u044c                     string elementName = &quot;TB_&quot; + i + &quot;_&quot; + j;                      \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438                     object wantedNode = LayoutRoot.FindName(elementName);                     TextBlock element = (TextBlock)wantedNode;                      \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435                     element.Text = &quot;&quot;;                 }             }         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \/ \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/h5>\n<p>  \u041e\u043f\u044f\u0442\u044c \u0432\u0441\u0435 \u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0442 \u0444\u043b\u0430\u0433\u0430 turnOnOff. \u0427\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c? \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443. \u041c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0434\u043f\u0438\u0441\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435. \u041c\u0435\u043d\u044f\u0435\u043c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0441\u043d\u043e\u0432\u0430, \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u043c\u0435\u0442\u043e\u0434 CreateElement:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_Turn<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u0435\u0440\u0438\u0442\u043a\u0430\u043b\u044c\u043d\u0430\u044f \/ \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430         private void Event_Button_Click_Turn(object sender, RoutedEventArgs e)         {             \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c (true), \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c (false) &quot;\u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430&quot;             if (turnOnOff)             {                 \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 false \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 turnOnOff                 this.turnOnOff = false;                  \/\/ \u041d\u0430\u0434\u043f\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043d\u043e\u043f\u043a\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c ToggleButton_Turn \u043c\u0435\u043d\u044f\u044e \u043d\u0430 \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e                 ToggleButton_Turn.Content = &quot;\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e&quot;;                  \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0418\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438.                 this.countHeight = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);                 this.countWidth = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);             }             else             {                 \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 true \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 turnOnOff                 this.turnOnOff = true;                  \/\/ \u041d\u0430\u0434\u043f\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043d\u043e\u043f\u043a\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c ToggleButton_Turn \u043c\u0435\u043d\u044f\u044e \u043d\u0430 \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e                 ToggleButton_Turn.Content = &quot;\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e&quot;;                  \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438                 this.countWidth = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + Math.Abs(addingSize);                 this.countHeight = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);             }              \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = true;              \/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 (\u0441\u0430\u043c\u0438 \u044f\u0447\u0435\u0439\u043a\u0438)             LayoutRootSecond.Children.Clear();              \/\/ \u041f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u044f\u0447\u0435\u0439\u043a\u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438             CreateElement();              \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = false;         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/h5>\n<p>  \u041b\u043e\u0433\u0438\u043a\u0430 \u0441\u0445\u043e\u0436\u0430 \u0441 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043e\u043c. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u043c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432, \u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u0440\u0430\u0441\u0447\u0435\u0442\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Button_Click_ElementSize<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">        \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430         private void Event_Button_Click_ElementSize(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_ElementSize \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 addingSize             this.addingSize = int.Parse(TextBox_ElementSize.Text.ToString());              \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438             this.countWidth = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + Math.Abs(addingSize);             this.countHeight = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);              \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = true;              \/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 (\u0441\u0430\u043c\u0438 \u044f\u0447\u0435\u0439\u043a\u0438)             LayoutRootSecond.Children.Clear();              \/\/ \u041f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u044f\u0447\u0435\u0439\u043a\u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438             CreateElement();              \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = false;         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/h5>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u0443. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438.<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0437\u0443\u0449\u0438\u0445 \u0437\u043c\u0435\u0435\u043a:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. Event_Grid_Tap_LayoutRoot<\/b><\/p>\n<div class=\"spoiler_text\">\u0412\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u043a\u0438  <\/p>\n<pre><code class=\"cs\">        \/\/ \u0421\u043e\u0431\u044b\u0442\u0438\u0435 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u044d\u0435\u043b\u0435\u043c\u0435\u0442 Grid (\u043d\u0430 \u044d\u043a\u0440\u0430\u043d)         private void Event_Grid_Tap_LayoutRoot(object sender, System.Windows.Input.GestureEventArgs e)         {             \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f             for (int i = 0; i &lt; 5; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break;                  Start();                  \/\/\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438. \u0414\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b.                 Task.Delay(100);             }         } <\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0443:  <\/p>\n<pre><code class=\"cs\">        \/\/ \u0421\u043e\u0431\u044b\u0442\u0438\u0435 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u044d\u0435\u043b\u0435\u043c\u0435\u0442 Grid (\u043d\u0430 \u044d\u043a\u0440\u0430\u043d)         private void Event_Grid_Tap_LayoutRoot(object sender, System.Windows.Input.GestureEventArgs e)         {             \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f             for (int i = 0; i &lt; countSimultaneously; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break;                  Start();                  \/\/\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438. \u0414\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b.                 Task.Delay(100);             }         } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434. MainPage.xaml.cs<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using System; using System.Net; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using System.Windows.Media; using System.Threading.Tasks; using System.Diagnostics; using System.Collections.ObjectModel;  namespace SE_Matrix_2d_v_4 {     public partial class MainPage : PhoneApplicationPage     {         \/* ****************************** \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 ****************************** *\/         \/\/ \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e         Random random = new Random();          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438         int iteration = 5;          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f         int countSimultaneously = 3;          \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432         int speedFrom = 20;         int speedTo = 40;          \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430         int addingSize = -6;          \/\/ \u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430         int fontSize;          \/\/ \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438         int minLength = 10;         int maxLength = 15;          \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430         double ScreenWidth = System.Windows.Application.Current.Host.Content.ActualWidth - 60;         double ScreenHeight = System.Windows.Application.Current.Host.Content.ActualHeight - 100;                  \/\/ \u041a\u043e\u0435\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0432\u0442\u043e \u044f\u0447\u0435\u0435\u043a \u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0437\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430         int kolich = 30;          \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 kolich + addingFontSize.         int addingFontSize = -2;          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435         int countSymbol = 3;          \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c (false), \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c (true) \u043c\u0430\u0442\u0440\u0438\u0446\u0443         bool flagOnOff = false;          \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c (false), \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c (true) &quot;\u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430&quot;         bool turnOnOff = true;          \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432         int countWidth = 10;         int countHeight = 10;          \/\/ \u0421\u043b\u043e\u0432\u0430\u0440\u044c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u044f\u0437\u044b\u043a\u0430 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0435\u043c\u0443 ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432         Dictionary&lt;string, int[]&gt; languages = new Dictionary&lt;string, int[]&gt;();          \/\/ \u0417\u0430\u0434\u0430\u044e \u044f\u0437\u044b\u043a \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e         string actualLanguage = &quot;\u0420\u0443\u0441\u0441\u043a\u0438\u0439&quot;;          \/\/ \u0424\u043b\u0430\u0433, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (true) \/ \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (false) \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e (PopUp) \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u044f\u0437\u044b\u043a\u0430         bool flagShowLanguages = true;          \/\/ \u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b, ARGB         Dictionary&lt;string, int&gt; colorMatrixBackground = new Dictionary&lt;string, int&gt;();          \/\/ \u0426\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430, ARGB         Dictionary&lt;string, int&gt; colorFirstSymbol = new Dictionary&lt;string, int&gt;();          \/\/ \u0426\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 \u043e\u0442 (\u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b) - \u0434\u043e (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b), ARGB         Dictionary&lt;string, int&gt; gradientFrom = new Dictionary&lt;string, int&gt;();         Dictionary&lt;string, int&gt; gradientTo = new Dictionary&lt;string, int&gt;();                  \/* ****************************** \u041c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 ****************************** *\/         \/\/ \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440         public MainPage()         {             InitializeComponent();              \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0446\u0432\u0435\u0442\u043e\u0432 \u0444\u043e\u043d\u0430, \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u0442.\u0434.             BeginColorSettings();              \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0438\u043c ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432             ListLanguages();              \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432             this.countWidth = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + Math.Abs(addingSize);             this.countHeight = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);              \/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u044b\u043f\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430             CreateElement();              \/\/ \u041f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0412\u043a\u043b \u0438\u043b\u0438 \u0412\u044b\u043a\u043b,  \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0444\u043b\u0430\u0433\u0430             if (this.flagOnOff)             {                 Button_Stop.Background = new SolidColorBrush(Colors.Cyan);                 Button_Start.Background = new SolidColorBrush(Colors.Black);             }             else             {                 Button_Stop.Background = new SolidColorBrush(Colors.Black);                 Button_Start.Background = new SolidColorBrush(Colors.Cyan);             }              \/\/ \u041c\u0435\u043d\u044f\u0435\u043c \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             ChangeBackground();         }          \/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u044b\u043f\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430         public void CreateElement()         {             \/\/ \u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \/ \u043f\u0435\u0440\u0435\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438             this.fontSize = kolich + addingFontSize + addingSize;              \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0442\u043a\u0443 \u044f\u0447\u0435\u0435\u043a             for (int i = 0; i &lt; countWidth; i++)             {                 for (int j = 0; j &lt; countHeight; j++)                 {                     \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c TextBlock                     TextBlock element = new TextBlock();                      \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 TextBlock                     element.Name = &quot;TB_&quot; + i + &quot;_&quot; + j;                      \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u043a\u0438 \u044f\u0447\u0435\u0435\u043a                     \/\/ element.Text = char.ConvertFromUtf32(random.Next(0x4E00, 0x4FFF)); \/\/ \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430                     \/\/ element.Text = random.Next(0, 9).ToString(); \/\/ \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c                     element.Text = &quot;&quot;; \/\/ \u041f\u0443\u0441\u0442\u043e\u0442\u0430                      \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 TextBlock                     \/\/ \u0422\u0430\u043a\u0436\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \/ \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439                     int turnY = j * (kolich + addingSize);                     int turnX = i * (kolich + addingSize);                      \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c (false), \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c (true) &quot;\u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430&quot;                     if (turnOnOff)                     {                         \/\/ \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435                         element.Margin = new Thickness(turnX, turnY, 0, 0);                     }                     else                     {                         \/\/ \u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0435, \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435                         element.Margin = new Thickness(turnY, turnX, 0, 0);                     }                      \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0430                     element.Foreground = new SolidColorBrush(Colors.Green);                      \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430                     element.FontSize = fontSize;                      \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 Grid                     LayoutRootSecond.Children.Add(element);                 }             }         }          \/\/ \u0421\u043e\u0431\u044b\u0442\u0438\u0435 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u044d\u0435\u043b\u0435\u043c\u0435\u0442 Grid (\u043d\u0430 \u044d\u043a\u0440\u0430\u043d)         private void Event_Grid_Tap_LayoutRoot(object sender, System.Windows.Input.GestureEventArgs e)         {             \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f             for (int i = 0; i &lt; countSimultaneously; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break;                  Start();                  \/\/\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438. \u0414\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b.                 Task.Delay(100);             }         }          \/\/ \u041c\u0435\u0442\u043e\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0437\u043c\u0435\u0439\u043a\u0438         public async void Start()         {             int count;              \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438             for (count = 0; count &lt; iteration; count++)             {                 \/\/ \u041d\u0430\u0447\u0430\u043b\u043e \u0437\u043c\u0435\u0439\u043a\u0438 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c                 int ranX = random.Next(0, countWidth);                  \/\/ \u041d\u0430\u0447\u0430\u043b\u043e \u0437\u043c\u0435\u0439\u043a\u0438 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c                 int ranY = random.Next(-5, countHeight - 1);                  \/\/ \u0414\u043b\u0438\u043d\u0430 \u0437\u043c\u0435\u0439\u043a\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c                 int length = random.Next(minLength, maxLength);                  \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0437\u043c\u0435\u0439\u043a\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c                 int time = random.Next(speedFrom, speedTo);                  await Task.Delay(1);                                  \/\/\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u043c\u0435\u0439\u043a\u0438                 await RandomElementQ_Async(ranX, ranY, length, time);             }         }          \/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b         public async Task RandomElementQ_Async(int x, int y, int length, int timeOut)         {             \/\/ \u0421\u043b\u043e\u0432\u0430\u0440\u044c \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u044f\u0447\u0435\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435.             Dictionary&lt;int, TextBlock&gt; dicElem = new Dictionary&lt;int, TextBlock&gt;();              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432             Dictionary&lt;string, int&gt; SymbolColor = new Dictionary&lt;string, int&gt;();              \/\/ \u0421\u0447\u0435\u0442\u0447\u0438\u043a, \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0435 if ((y + i) &lt; countHeight && (y + i) &gt;= 0). \u0421\u043c\u043e\u0442\u0440\u0438 \u043d\u0430 4 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432\u043d\u0438\u0437.             \/\/ \u0422\u043e\u0435\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432\u044b\u0448\u0435 \u0438\u043b\u0438 \u043d\u0438\u0436\u0435 \u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u043a\u0438 (\u043c\u0430\u0442\u0440\u0438\u0446\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432).             int count = 0;              \/\/ \u0426\u0438\u043a\u043b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0437\u043c\u0435\u0439\u043a\u0443 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b length             for (int i = 0; i &lt;= length; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break;                  \/\/\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0431 \u0437\u043c\u0435\u0439\u043a\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0430\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u043a\u0435                 if ((y + i) &lt; countHeight && (y + i) &gt;= 0)                 {                     \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u044b                     string elementName = &quot;TB_&quot; + x + &quot;_&quot; + (y + i);                      \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438                     object wantedNode = LayoutRoot.FindName(elementName);                     TextBlock element = (TextBlock)wantedNode;                      \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 &quot;\u043f\u0430\u0434\u0435\u043d\u0438\u044f&quot; \u0438 &quot;\u0437\u0430\u0442\u0443\u0445\u0430\u043d\u0438\u044f&quot; \u0437\u043c\u0435\u0439\u043a\u0438                     dicElem[count] = (element);                      \/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043e\u0435\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u044f\u0440\u043a\u043e\u0441\u0442\u0438. \u041f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442(\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0430\u0434\u0430\u0435\u0442) -  \u0432\u0441\u0435\u0433\u0430 \u0441\u0430\u043c\u044b\u0439 \u044f\u0440\u043a\u0438\u0439, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 - \u0441\u0430\u043c\u044b\u0439 \u0442\u0435\u043c\u043d\u044b\u0439.                     \/\/ \u041e\u0442\u043d\u0438\u043c\u0430\u0435\u043c 1, \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 (\u043a\u043e\u0433\u0434\u0430 \u043a -  \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435) \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 255 \u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u044f\u0440\u043a\u0438\u043c.                     int A_Coefficient = (int)Math.Round((gradientFrom[&quot;A&quot;] - 10) \/ (double)(count + 1)) - 1;                     int R_Coefficient = (int)Math.Round((gradientFrom[&quot;R&quot;] - gradientTo[&quot;R&quot;]) \/ (double)(count + 1)) - 1;                     int G_Coefficient = (int)Math.Round((gradientFrom[&quot;G&quot;] - gradientTo[&quot;G&quot;]) \/ (double)(count + 1)) - 1;                     int B_Coefficient = (int)Math.Round((gradientFrom[&quot;B&quot;] - gradientTo[&quot;B&quot;]) \/ (double)(count + 1)) - 1;                     \/\/int greenCoefficient = (int)Math.Round(255 \/ (double)(count + 1)) - 1;                      \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u043f\u0440\u043e\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u043f\u0435\u0440\u0432\u044b\u0439, \u0441\u0430\u043c\u044b\u0439 \u044f\u0440\u043a\u0438\u0439 \u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e.                     \/\/ colorFirstSymbol[&quot;A&quot;]. \u0426\u0432\u0435\u0442 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443.                                        await Change(element, timeOut, colorFirstSymbol);                      \/\/ \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435  \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0437\u043c\u0435\u0439\u043a\u0443 \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u043e\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u043d\u0443\u0436\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b.                     for (int k = 0; k &lt;= i; k++)                     {                                                \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                         if (flagOnOff) break;                          \/\/ \u0415\u0441\u043b\u0438 \u0437\u043c\u0435\u0439\u043a\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0438\u0441\u044f &quot;\u0432\u044b\u0448\u0435&quot; \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 y = -5)                         if (dicElem.ContainsKey(k))                         {                             \/\/\u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0437\u0430 \u0441\u0430\u043c\u044b\u043c \u044f\u0440\u043a\u0438\u043c. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u0444\u0444\u0435\u043a\u0442 &quot;\u0437\u0430\u0442\u0443\u0445\u0430\u043d\u0438\u044f&quot; \u0446\u0432\u0435\u0442\u0430                             TextBlock previousElement = dicElem[k];                              \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b                             \/\/ (greenCoefficient * (k + 1)) - 20 \u0412\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u0431 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0431\u044b\u043b\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0437\u043c\u0435\u0439\u043a\u0430\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f                             \/\/ \u0438 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u043b\u0430\u0441\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0435\u0435 \u0434\u043b\u0438\u043d\u044b(\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432)                             SymbolColor[&quot;A&quot;] = (gradientFrom[&quot;A&quot;] - ((i - k) * A_Coefficient));                             SymbolColor[&quot;R&quot;] = (gradientFrom[&quot;R&quot;] - ((i - k) * R_Coefficient));                             SymbolColor[&quot;G&quot;] = (gradientFrom[&quot;G&quot;] - ((i - k) * G_Coefficient));                             SymbolColor[&quot;B&quot;] = (gradientFrom[&quot;B&quot;] - ((i - k) * B_Coefficient));                              Task dsvv = Change(previousElement, timeOut, SymbolColor);                         }                     }                     count++;                 }             }         }          \/\/ \u041c\u0435\u0442\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0435\u0442\u0435         public async Task Change(TextBlock element, int timeOut, Dictionary&lt;string, int&gt; SymbolColor)         {             \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u044f\u0440\u043a\u043e\u0441\u0442\u044c\u044e             SolidColorBrush NewColor = new SolidColorBrush(new Color()             {                 A = (byte)(SymbolColor[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(SymbolColor[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(SymbolColor[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(SymbolColor[&quot;B&quot;]) \/*Blue*\/             });              \/\/ \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c &quot;\u043f\u0430\u0434\u0435\u043d\u0438\u0438&quot; \u043d\u0430 1 \u043a\u043b\u0435\u0442\u043e\u0447\u043a\u0443 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e &quot;\u0437\u0430\u0442\u0443\u0445\u0430\u0435\u0442&quot;             element.Foreground = NewColor;              \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0435             for (int i = 0; i &lt; countSymbol; i++)             {                 \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e                 if (flagOnOff) break;                  \/\/ \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0440\u0430\u0437\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430                 element.Text = RandomActualSymbol();                                \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430                 element.FontSize = fontSize;                  \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435                 await Task.Delay(timeOut);             }         }          \/\/ \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 ViewModel         protected override void OnNavigatedTo(NavigationEventArgs e)         {             if (!App.ViewModel.IsDataLoaded)             {                 App.ViewModel.LoadData();             }         }          \/* ****************************** \u0421\u043e\u0431\u044b\u0442\u0438\u044f ****************************** *\/         \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.         private void Event_Button_Click_SpeedApplay(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_SppeedFrom \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 speedFrom             this.speedFrom = int.Parse(TextBox_SppeedFrom.Text.ToString());              \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_SppeedTo \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 speedTo             this.speedTo = int.Parse(TextBox_SppeedTo.Text.ToString());         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438         private void Event_Button_Click_CountQueue(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_CountQueue \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 iteration             this.iteration = int.Parse(TextBox_CountQueue.Text.ToString());         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043c\u0435\u0435\u043a \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435         private void Event_Button_Click_\u0421ountSimultaneously(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_\u0421ountSimultaneously \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 countSimultaneously             this.countSimultaneously = int.Parse(TextBox_\u0421ountSimultaneously.Text.ToString());         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430         private void Event_Button_Click_FontSize(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_FontSize \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 addingFontSize             this.addingFontSize = int.Parse(TextBox_FontSize.Text.ToString());              \/\/ \u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \/ \u043f\u0435\u0440\u0435\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438             this.fontSize = kolich + addingFontSize + addingSize;         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435         private void Event_Button_Click_CountSymbol(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_CountSymbol \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 countSymbol             this.countSymbol = int.Parse(TextBox_CountSymbol.Text.ToString());         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043c\u0435\u0435\u043a         private void Event_Button_Click_Stop(object sender, RoutedEventArgs e)         {             this.flagOnOff = true;              \/\/ \u0415\u0441\u043b\u0438 flagOnOff \u0432 true \u0442\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Stop             if (this.flagOnOff)             {                 Button_Stop.Background = new SolidColorBrush(Colors.Cyan);                 Button_Start.Background = new SolidColorBrush(Colors.Black);             }         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043c\u0435\u0435\u043a         private void Event_Button_Click_Start(object sender, RoutedEventArgs e)         {             this.flagOnOff = false;              \/\/ \u0415\u0441\u043b\u0438 flagOnOff \u0432 false \u0442\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Start             if (!this.flagOnOff)             {                 Button_Stop.Background = new SolidColorBrush(Colors.Black);                 Button_Start.Background = new SolidColorBrush(Colors.Cyan);             }         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430         private void Event_Button_Click_Clear(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0435\u0442\u043a\u0443 \u044f\u0447\u0435\u0435\u043a \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0435 \u043a\u0430\u043a \u0441\u0438\u043c\u0432\u043e\u043b - \u043f\u0443\u0441\u0442\u043e\u0442\u0443             for ( int i = 0; i &lt; countWidth; i++)             {                 for (int j = 0; j &lt; countHeight; j++)                 {                     \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u043e\u0447\u0438\u0449\u0430\u0442\u044c                     string elementName = &quot;TB_&quot; + i + &quot;_&quot; + j;                      \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438                     object wantedNode = LayoutRoot.FindName(elementName);                     TextBlock element = (TextBlock)wantedNode;                      \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435                     element.Text = &quot;&quot;;                 }             }         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430         private void Event_Button_Click_ElementSize(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_ElementSize \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 addingSize             this.addingSize = int.Parse(TextBox_ElementSize.Text.ToString());              \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438             this.countWidth = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + Math.Abs(addingSize);             this.countHeight = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);              \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = true;              \/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 (\u0441\u0430\u043c\u0438 \u044f\u0447\u0435\u0439\u043a\u0438)             LayoutRootSecond.Children.Clear();              \/\/ \u041f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u044f\u0447\u0435\u0439\u043a\u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438             CreateElement();              \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = false;         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0417\u0430\u0434\u0430\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0437\u043c\u0435\u0439\u043a\u0438         private void Event_Button_Click_MaxLength(object sender, RoutedEventArgs e)         {             \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_MinLength \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 minLength             this.minLength = int.Parse(TextBox_MinLength.Text.ToString());              \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e TextBox TextBox_MaxLength \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 maxLength             this.maxLength = int.Parse(TextBox_MaxLength.Text.ToString());         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u0435\u0440\u0438\u0442\u043a\u0430\u043b\u044c\u043d\u0430\u044f \/ \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430         private void Event_Button_Click_Turn(object sender, RoutedEventArgs e)         {             \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c (true), \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c (false) &quot;\u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430&quot;             if (turnOnOff)             {                 \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 false \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 turnOnOff                 this.turnOnOff = false;                  \/\/ \u041d\u0430\u0434\u043f\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043d\u043e\u043f\u043a\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c ToggleButton_Turn \u043c\u0435\u043d\u044f\u044e \u043d\u0430 \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e                 ToggleButton_Turn.Content = &quot;\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e&quot;;                  \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0418\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438.                 this.countHeight = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);                 this.countWidth = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);             }             else             {                 \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 true \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 turnOnOff                 this.turnOnOff = true;                  \/\/ \u041d\u0430\u0434\u043f\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043d\u043e\u043f\u043a\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c ToggleButton_Turn \u043c\u0435\u043d\u044f\u044e \u043d\u0430 \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e                 ToggleButton_Turn.Content = &quot;\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e&quot;;                  \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438                 this.countWidth = (int)Math.Round(ScreenWidth \/ (kolich + addingSize)) + Math.Abs(addingSize);                 this.countHeight = (int)Math.Round(ScreenHeight \/ (kolich + addingSize)) + 5 + Math.Abs(addingSize);             }              \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = true;              \/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 (\u0441\u0430\u043c\u0438 \u044f\u0447\u0435\u0439\u043a\u0438)             LayoutRootSecond.Children.Clear();              \/\/ \u041f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u044f\u0447\u0435\u0439\u043a\u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438             CreateElement();              \/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443             this.flagOnOff = false;         }          \/\/ \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u044f\u0437\u044b\u043a\u0430 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0435\u043c\u0443 ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432         public void ListLanguages()         {             \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u043a\u043b\u044e\u0447\u044c -  \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044f\u0437\u044b\u043a\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 -  \u043c\u0430\u0441\u0441\u0438\u0432, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 ASCII \u043a\u043e\u0434\u043e\u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.             languages.Add(&quot;\u041c\u0430\u0442\u0440\u0438\u0446\u0430&quot;, new int[] { 64, 127 });             languages.Add(&quot;\u041a\u0438\u0442\u0430\u0441\u043a\u0438\u0439&quot;, new int[] { 19968, 20223 });             languages.Add(&quot;\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439&quot;, new int[] { 64, 127 });             languages.Add(&quot;\u0426\u0438\u0444\u0440\u044b&quot;, new int[] { 48, 57 });             languages.Add(&quot;\u0421\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b&quot;, new int[] { 0, 1000 });             languages.Add(&quot;\u0420\u0443\u0441\u0441\u043a\u0438\u0439&quot;, new int[] { 1040, 1103 });              \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u044f\u0437\u044b\u043a\u0438 \u0432 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0445 \u0432\u044b\u0431\u043e\u0440\u0430             foreach (var language in languages)             {                 \/\/ \u0421\u043e\u0437\u0434\u0430\u044e \u043a\u043d\u043e\u043f\u043a\u0443                 Button newLang = new Button();                  \/\/ \u0417\u0430\u0434\u0430\u044e \u043d\u0430\u0434\u043f\u0438\u0441\u044c \u043a\u043d\u043e\u043f\u043a\u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u044f\u0437\u044b\u043a\u0443                 newLang.Content = language.Key.ToString();                  \/\/ \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435                 newLang.HorizontalAlignment = HorizontalAlignment.Stretch;                  \/\/ \u0422\u043e\u043b\u0449\u0438\u043d\u0430 \u0440\u0430\u043c\u043a\u0438                 newLang.BorderThickness = new Thickness(1);                  \/\/ \u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435                 newLang.Margin = new Thickness(0,0,0,0);                  \/\/ \u0421\u043e\u0431\u044b\u0442\u0438\u0435, \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041e\u0434\u043d\u043e \u043d\u0430 \u0432\u0441\u0435.                 newLang.Click += Event_Button_Click_SelectLanguageUpdate;                  \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0441\u043e\u0437\u0434\u0430\u043d\u0443\u044e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 StackPanel_ButtonDropDownSelectLanguage.Children.Add(newLang);             }         }          \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.         public string RandomActualSymbol()         {             \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e \u043a\u043b\u044e\u0447\u0443, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 ASCII \u043a\u043e\u0434\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u044f\u0437\u044b\u043a\u0430, \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432 actualLanguage             int[] sd = (languages[actualLanguage]);              \/\/ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0444\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0437\u0430\u0434\u0430\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435             return char.ConvertFromUtf32(this.random.Next((int)sd.GetValue(0), (int)sd.GetValue(1)));         }          \/\/ \u041a\u043d\u043e\u043f\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044f\u0437\u044b\u043a\u0430. \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u043d\u044e \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.         private void Event_Button_Click_SelectLanguage(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (true) \/ \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c (false) \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e (PopUp) \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u044f\u0437\u044b\u043a\u0430             if (flagShowLanguages)             {                 \/\/ \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 Popup_ButtonDropDownSelectLanguage.IsOpen = true;                 flagShowLanguages = false;             }             else             {                 \/\/ \u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 Popup_ButtonDropDownSelectLanguage.IsOpen = false;                 flagShowLanguages = true;             }         }          \/\/ \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u043e\u0440\u0430 \u044f\u0437\u044b\u043a\u0430.         private void Event_Button_Click_SelectLanguageUpdate(object sender, RoutedEventArgs e)         {             \/\/ \u0415\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u044b\u0431\u043e\u0440\u0430 \u044f\u0437\u044b\u043a\u0430, \u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u044f\u0437\u044b\u043a \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d, \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043c\u0435\u043d\u044e \u0441\u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f.             if (!flagShowLanguages)             {                 \/\/ \u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e                 Popup_ButtonDropDownSelectLanguage.IsOpen = false;                 flagShowLanguages = true;             }              \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0436\u0430\u043b\u0438             string newLanguagr = (sender as Button).Content.ToString();              \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a             Button_SelectLanguage.Content = newLanguagr;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044f\u0437\u044b\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c             this.actualLanguage = newLanguagr;         }          \/\/ \u041c\u0435\u043d\u044f\u0435\u043c \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b         private void Event_Button_Click_ChangeBackground(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 colorMatrixBackground \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             colorMatrixBackground[&quot;A&quot;] = ColorPicker.Color.A;             colorMatrixBackground[&quot;R&quot;] = ColorPicker.Color.R;             colorMatrixBackground[&quot;G&quot;] = ColorPicker.Color.G;             colorMatrixBackground[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_BackgroundColor.Background = new SolidColorBrush(new Color()             {                 A = (byte)(colorMatrixBackground[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(colorMatrixBackground[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(colorMatrixBackground[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(colorMatrixBackground[&quot;B&quot;]) \/*Blue*\/             });              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             ChangeBackground();         }          \/\/ \u041c\u0435\u0442\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0447\u0435\u0440\u043d\u044b\u0439.         private void ChangeBackground()         {             \/\/ \u0417\u0430\u0434\u0430\u044e \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             LayoutRootSecond.Background = new SolidColorBrush(new Color()             {                 A = (byte)(colorMatrixBackground[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(colorMatrixBackground[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(colorMatrixBackground[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(colorMatrixBackground[&quot;B&quot;]) \/*Blue*\/             });         }          \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0446\u0432\u0435\u0442\u043e\u0432 \u0444\u043e\u043d\u0430, \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u0442.\u0434         private void BeginColorSettings()         {             \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             colorMatrixBackground[&quot;A&quot;] = 0;             colorMatrixBackground[&quot;R&quot;] = 0;             colorMatrixBackground[&quot;G&quot;] = 0;             colorMatrixBackground[&quot;B&quot;] = 0;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430             colorFirstSymbol[&quot;A&quot;] = 255;             colorFirstSymbol[&quot;R&quot;] = 248;             colorFirstSymbol[&quot;G&quot;] = 248;             colorFirstSymbol[&quot;B&quot;] = 255;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u043e\u0442 (\u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0437\u043c\u0435\u0439\u043a\u0435)             gradientFrom[&quot;A&quot;] = 255;             gradientFrom[&quot;R&quot;] = 1;             gradientFrom[&quot;G&quot;] = 255;             gradientFrom[&quot;B&quot;] = 1;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0434\u043e (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0437\u043c\u0435\u0439\u043a\u0435)             gradientTo[&quot;A&quot;] = 0;             gradientTo[&quot;R&quot;] = 0;             gradientTo[&quot;G&quot;] = 0;             gradientTo[&quot;B&quot;] = 0;         }          \/\/ \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430         private void Event_Button_Click_FirstSymbolColor(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 colorFirstSymbol \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             colorFirstSymbol[&quot;A&quot;] = ColorPicker.Color.A;             colorFirstSymbol[&quot;R&quot;] = ColorPicker.Color.R;             colorFirstSymbol[&quot;G&quot;] = ColorPicker.Color.G;             colorFirstSymbol[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_FirstSymbolColor.Background = new SolidColorBrush(new Color()             {                 A = (byte)(colorFirstSymbol[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(colorFirstSymbol[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(colorFirstSymbol[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(colorFirstSymbol[&quot;B&quot;]) \/*Blue*\/             });         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0417\u0430\u0434\u0430\u0435\u043c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u0437\u043c\u0435\u0439\u043a\u0438. \u0426\u0432\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430.         private void Event_Button_Click_GradientFrom(object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 gradientFrom \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             gradientFrom[&quot;A&quot;] = ColorPicker.Color.A;             gradientFrom[&quot;R&quot;] = ColorPicker.Color.R;             gradientFrom[&quot;G&quot;] = ColorPicker.Color.G;             gradientFrom[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u043e\u0442 \u0437\u043c\u0435\u0439\u043a\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_GradientFrom.Background = new SolidColorBrush(new Color()             {                 A = (byte)(gradientFrom[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(gradientFrom[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(gradientFrom[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(gradientFrom[&quot;B&quot;]) \/*Blue*\/             });         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0417\u0430\u0434\u0430\u0435\u043c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u0437\u043c\u0435\u0439\u043a\u0438. \u0426\u0432\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430.         private void Event_Button_Click_GradientTo (object sender, RoutedEventArgs e)         {             \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u0430 gradientTo \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 ColorPicker \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b             gradientTo[&quot;A&quot;] = ColorPicker.Color.A;             gradientTo[&quot;R&quot;] = ColorPicker.Color.R;             gradientTo[&quot;G&quot;] = ColorPicker.Color.G;             gradientTo[&quot;B&quot;] = ColorPicker.Color.B;              \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430 \u0434\u043e \u0437\u043c\u0435\u0439\u043a\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435             Button_GradientTo.Background = new SolidColorBrush(new Color()             {                 A = (byte)(gradientTo[&quot;A&quot;]) \/*Opacity*\/,                 R = (byte)(gradientTo[&quot;R&quot;]) \/*Red*\/,                 G = (byte)(gradientTo[&quot;G&quot;]) \/*Green*\/,                 B = (byte)(gradientTo[&quot;B&quot;]) \/*Blue*\/             });         }          } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/2c6\/0aa\/9ac\/2c60aa9ac7ade65788e55394ad102328.png\"\/><\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/WA1UOLwF7GI?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434\u044b<\/h4>\n<p>  \u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430. \u0417\u043d\u0430\u044e, \u0447\u0442\u043e \u043a\u043e\u0434 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u044f\u0432\u044b\u0439, \u043d\u043e \u043a\u0430\u043a \u043d\u0430 \u043c\u0435\u043d\u044f \u0442\u0430\u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043a\u043e\u0434\u0430, \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043f\u043e\u0434 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a, \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a \u0434\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>  \u041f.\u0421. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a \u043b\u0443\u0447\u0448\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u2014 \u043f\u0440\u043e\u0448\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438. \u0418 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u0430\u043f\u0430\u043c\u0438 \u0438 \u0431\u0443\u0434\u0443\u0442 \u0435\u0449\u0435 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c 2 \u0447\u0430\u0441\u0442\u0438\u2026 \u0411\u0443\u0434\u0443 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0435\u0442\u0435, \u043a\u0430\u043a \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0432\u0438\u0434\u0435\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u0430 \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e, \u0435\u0441\u043b\u0438 \u00ab\u0445\u0432\u0430\u0442\u0430\u0442\u044c\u00bb \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 ScrollViewer.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/195760\/\"> http:\/\/habrahabr.ru\/post\/195760\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<a href=\"http:\/\/habrahabr.ru\/post\/195422\/\">Windows Phone 8: \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041c\u0430\u0442\u0440\u0438\u0446\u0430. \u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/topic\/edit\/195760\/\">Windows Phone 8: \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041c\u0430\u0442\u0440\u0438\u0446\u0430. \u0427\u0430\u0441\u0442\u044c 2<\/a><\/p>\n<p>  \u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u00ab\u041f\u0430\u043d\u043e\u0440\u0430\u043c\u0430\u00bb, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445, \u0440\u0435\u0437\u043a\u043e \u043f\u043e\u043d\u0438\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u043c\u044b \u0435\u0449\u0435 \u0431\u0443\u0434\u0435\u043c \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0447\u0430\u0441\u0442\u044f\u0445. <\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0445\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0446\u0435\u043b\u0438 \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439: \u044d\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432\u0441\u0435\u0433\u043e: \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432, \u0442\u0435\u0445\u043d\u0438\u043a, \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0438 \u0442.\u0434. \u041d\u0443 \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/897\/bb3\/fb2\/897bb3fb2f999fad169f8136a89dbe67.png\"\/>  <\/p>\n<h6>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h6>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-195760","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/195760","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=195760"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/195760\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}