{"id":150,"date":"2013-07-11T17:10:18","date_gmt":"2013-07-11T13:10:18","guid":{"rendered":"http:\/\/infobs.athn.ru\/?p=150"},"modified":"2013-07-11T17:10:18","modified_gmt":"2013-07-11T13:10:18","slug":"wpf-begushhaya-stroka","status":"publish","type":"post","link":"https:\/\/infobase.athn.ru\/program\/2013\/07\/wpf-begushhaya-stroka\/","title":{"rendered":"WPF \u0411\u0435\u0433\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430"},"content":{"rendered":"<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0430\u0437<\/p>\n<pre>\nCanvas x:Name=\"Canvas\" Background=\"Transparent\" Height=\"25\"\n                VerticalAlignment=\"Top\"&gt;\n            \n                \n                    \n                        \n                            \n                                \n                                    \n                                \n                            \n                        \n                    \n                \n            \n        \n<\/pre>\n<p>http:\/\/axedeos.blogspot.ru\/2012\/11\/wpf.html<\/p>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u0432\u0430, \u0441 \u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c \u0432 \u043a\u043e\u0434\u0435 \u0438 \u0441 \u043f\u0430\u0443\u0437\u043e\u0439<\/p>\n<pre>\n\n  \n    \n    \n      <Button \/>\n      <Button \/>\n      <Button \/>\n      <Button \/>\n    \n    \n\n\npublic partial class StopAnimationWindow : System.Windows.Window\n{\n    AnimationClock clock;\n    public StopAnimationWindow()\n    {\n        InitializeComponent();\n    }\n \n    private void StartAnimation(Object sender, RoutedEventArgs e)\n    {\n        DoubleAnimation animation = new DoubleAnimation();\n        animation.Duration = new Duration(TimeSpan.FromSeconds(5));\n        animation.To = 500d;\n        animation.From = 0d;\n        clock = animation.CreateClock();\n        rect.ApplyAnimationClock(Rectangle.WidthProperty, clock);\n    }\n \n    private void PauseAnimation(Object sender, RoutedEventArgs e)\n    {\n        clock.Controller.Pause();\n    }\n \n    private void ResumeAnimation(Object sender, RoutedEventArgs e)\n    {\n        clock.Controller.Resume();\n    }\n \n    private void StopAnimation(Object sender, RoutedEventArgs e)\n    {\n        clock.Controller.Stop();\n    }\n}\n<\/pre>\n<p>http:\/\/social.msdn.microsoft.com\/Forums\/vstudio\/en-US\/5eb35986-4666-43f4-9e88-e940bf464ff5\/how-to-pause-animation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0430\u0437 Canvas x:Name=&#187;Canvas&#187; Background=&#187;Transparent&#187; Height=&#187;25&#8243; VerticalAlignment=&#187;Top&#187;&gt; http:\/\/axedeos.blogspot.ru\/2012\/11\/wpf.html \u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u0432\u0430, \u0441 \u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c \u0432 \u043a\u043e\u0434\u0435 \u0438 \u0441 \u043f\u0430\u0443\u0437\u043e\u0439 public partial class StopAnimationWindow : System.Windows.Window { AnimationClock clock; public StopAnimationWindow() { InitializeComponent(); <a class=\"more-link\" href=\"https:\/\/infobase.athn.ru\/program\/2013\/07\/wpf-begushhaya-stroka\/\">Continue Reading \u2192<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[74,132,144,246],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-doubleanimation","tag-wpf","tag-begushhaya-stroka","tag-pauza"],"_links":{"self":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":0,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"wp:attachment":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}