{"id":158561,"date":"2012-11-15T05:04:02","date_gmt":"2012-11-15T01:04:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=158561"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=158561","title":{"rendered":"<span class=\"post_title\">WPF: \u041d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043e\u043a\u043d\u043e<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0430 \u0434\u043d\u044f\u0445, \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u043b\u0433\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0430, \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 WPF, \u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043d\u0430\u0434\u043e\u0435\u0432\u0448\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0438\u0434 \u043e\u043a\u043e\u043d Windows 7 \u043d\u0430 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u043e\u043b\u0435\u0435 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u044f\u044e\u0449\u0435\u0435, \u0441\u043a\u0430\u0436\u0435\u043c \u0432 \u0441\u0442\u0438\u043b\u0435 Visual Studio 2012:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/01d\/94c\/07a\/01d94c07adc9c667d7e65157ad3a197d.png\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 Windows 8 \u0440\u0430\u0434\u0438 \u044d\u0442\u043e\u0433\u043e \u0435\u0449\u0435 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u043a\u0430\u043a \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043c\u0435\u0442\u0440\u043e-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438* \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c\u0438 \u2014 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0448\u0438\u043c \u0448\u0430\u0433\u043e\u043c. \u0410 \u043f\u043e\u043a\u0430 \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0435\u0447\u0435\u0440 \u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043a\u043e\u0434\u0430. \u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0435\u0434, \u0441\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043a\u0430\u043a \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0438\u0441\u0442\u044b\u043c: \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438, \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043e\u043a\u043d\u043e \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430. \u0412\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b\u0438\u0441\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c \u0441\u0442\u0438\u043b\u044f.<\/p>\n<pre><code class=\"xml\">&lt;Window ... Style=&quot;{StaticResource VS2012WindowStyle}&quot;&gt;     &lt;DockPanel&gt;         &lt;StatusBar&gt;             &lt;TextBlock&gt;Ready&lt;\/TextBlock&gt;             &lt;StatusBarItem HorizontalAlignment=&quot;Right&quot;&gt;                 &lt;ResizeGrip \/&gt;             &lt;\/StatusBarItem&gt;         &lt;\/StatusBar&gt;         &lt;TextBox Text=&quot;Hello, world!&quot; \/&gt;     &lt;\/DockPanel&gt; &lt;\/Window&gt; <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/D-Key\/whosh\"><img decoding=\"async\" align=\"right\" src=\"http:\/\/habrastorage.org\/storage2\/46a\/827\/758\/46a82775831a1512d23a2767a929230c.png\"\/><\/a>\u0414\u0430\u043b\u044c\u0448\u0435 \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0441\u044c \u043d\u0430 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u0445 \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u044f\u0445 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0438\u043b\u044f \u043e\u043a\u043d\u0430. \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/D-Key\/whosh\">github&#8217;\u0435<\/a>, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u0442\u0438\u043b\u044c \u043d\u0435 \u0432\u0434\u0430\u0432\u0430\u044f\u0441\u044c \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h3>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h3>\n<p>   <i>WPF \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 NC-area.<\/i> NC, \u043e\u043d\u0430 \u0436\u0435 \u00abNon-client area\u00bb, \u043e\u043d\u0430 \u0436\u0435 \u00ab\u043d\u0435-\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c\u00bb, \u043e\u043d\u0430 \u0436\u0435 \u0445\u0440\u043e\u043c, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u043a\u043d\u0430 \u2014 \u0431\u043e\u0440\u0434\u044e\u0440, \u0438\u043a\u043e\u043d\u043a\u0443, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443, \u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 <a href=\"http:\/\/stackoverflow.com\/questions\/9978444\/how-can-i-style-the-border-and-title-bar-of-a-window-in-wpf?lq=1\">\u0441\u043e\u0432\u0435\u0442<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u2014 \u044d\u0442\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u044c \u043e\u043a\u043d\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0430\u043c\u043e\u043c\u0443. \u0426\u0435\u043b\u0438\u043a\u043e\u043c.<\/p>\n<pre><code class=\"xml\">&lt;Window \tAllowsTransparency=&quot;true&quot; \tWindowStyle=&quot;None&quot;&gt; ... <\/code><\/pre>\n<p>   \u0417\u0430 \u0432\u0441\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f WPF \u0432 \u044d\u0442\u043e\u043c \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043c\u0430\u043b\u043e \u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0438\u0437 \u0441\u0442\u0430\u0440\u0438\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u0410\u043b\u0435\u043a\u0441\u0430 \u042f\u0445\u043d\u0438\u043d\u0430 \u043f\u043e \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0434 \u041e\u0444\u0438\u0441 2007, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043f\u0438\u0441\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u043d\u0430\u0434 \u0434\u0435\u043c\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u043f\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0438\u0437\u0430\u0446\u0438\u0438 WPF \u0434\u043b\u044f \u041c\u0438\u043a\u0440\u043e\u0441\u043e\u0444\u0442\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u0441 \u043d\u0443\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u043c\u043d\u0435 \u043d\u0435 \u0433\u0440\u043e\u0437\u0438\u043b\u043e.<\/p>\n<p>  <img decoding=\"async\" align=\"right\" src=\"http:\/\/habrastorage.org\/storage2\/a15\/7ca\/0fe\/a157ca0feee8b4e8ef7a99cf50418b5b.png\"\/>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0441\u0442\u0438\u043b\u044c, \u0438 \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432: \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 XAML \u0438 \u043a\u043e\u0434 \u0441\u0442\u0438\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0438\u0441\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 CustomizedWindow, \u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  \u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0442\u0438\u043b\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u043e \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443.<\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u044c<\/h3>\n<p>   \u0421\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u043e\u043a\u043d\u0430, \u043a\u0430\u043a \u0438 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0430 \u0432 WPF \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 ControlTemplate. \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043e\u043a\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f ContentPresenter&#8217;\u043e\u043c, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0440\u043e\u0449\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043a\u043e\u0434\u0435 c# \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 x:Class \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u0432 ResourceDictionary. \u0412\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e \u0434\u043b\u044f XAML&#8217;\u0430.<\/p>\n<pre><code class=\"xml\">&lt;ResourceDictionary \tx:Class=&quot;Whush.Demo.Styles.CustomizedWindow.VS2012WindowStyle&quot;&gt;     &lt;Style x:Key=&quot;VS2012WindowStyle&quot; TargetType=&quot;{x:Type Window}&quot;&gt;         &lt;Setter Property=&quot;Template&quot;&gt;             &lt;Setter.Value&gt;                 &lt;ControlTemplate TargetType=&quot;{x:Type Window}&quot;&gt;                     &lt;!-- XAML \u0445\u0440\u043e\u043c\u0430 \u043e\u043a\u043d\u0430 \u0441 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u043e\u0439 \u0431\u043e\u0440\u0434\u044e\u0440\u0430, \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u043a\u043d\u043e\u043f\u043e\u043a --&gt;                     &lt;ContentPresenter \/&gt;                     &lt;!-- \u0435\u0449\u0435 XAML \u0445\u0440\u043e\u043c\u0430 \u043e\u043a\u043d\u0430 --&gt;                 &lt;\/ControlTemplate&gt;             &lt;\/Setter.Value&gt;         &lt;\/Setter&gt;     &lt;\/Style&gt; &lt;\/ResourceDictionary&gt; <\/code><\/pre>\n<p>   \u0421\u0440\u0430\u0437\u0443 \u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043a\u043d\u043e\u043f\u043a\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u043a\u043d\u043e\u043c \u0432 \u0441\u0442\u0438\u043b\u0435 \u0421\u0442\u0443\u0434\u0438\u0438 2012. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0435\u0441\u043b\u0438 \u043f\u043e\u0442\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/3c4\/625\/4eb\/3c46254eb91c35c26d39e4a48013a69b.png\"\/><\/p>\n<p>  \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438, \u043d\u043e \u0441 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e\u0439 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u043e\u0439 \u2014 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u043d \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">XAML \u0441\u0442\u0438\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;Style x:Key=&quot;VS2012WindowStyleTitleBarButton&quot; TargetType=&quot;{x:Type Button}&quot;&gt;     &lt;Setter Property=&quot;Focusable&quot; Value=&quot;false&quot; \/&gt;     &lt;Setter Property=&quot;Template&quot;&gt;         &lt;Setter.Value&gt;             &lt;ControlTemplate TargetType=&quot;{x:Type Button}&quot;&gt;                 &lt;Grid&gt;                     &lt;Border x:Name=&quot;border&quot; Background=&quot;Transparent&quot; \/&gt;                     &lt;ContentPresenter \/&gt;                 &lt;\/Grid&gt;                 &lt;ControlTemplate.Triggers&gt;                     &lt;Trigger Property=&quot;IsMouseOver&quot; Value=&quot;True&quot;&gt;                         &lt;Setter TargetName=&quot;border&quot; Property=&quot;Background&quot; Value=&quot;#FFF&quot; \/&gt;                         &lt;Setter TargetName=&quot;border&quot; Property=&quot;Opacity&quot; Value=&quot;0.7&quot; \/&gt;                     &lt;\/Trigger&gt;                     &lt;Trigger Property=&quot;IsPressed&quot; Value=&quot;True&quot;&gt;                         &lt;Setter TargetName=&quot;border&quot; Property=&quot;Background&quot;                             Value=&quot;{StaticResource VS2012WindowBorderBrush}&quot;\/&gt;                         &lt;Setter TargetName=&quot;border&quot; Property=&quot;Opacity&quot; Value=&quot;1&quot; \/&gt;                         &lt;Setter Property=&quot;Foreground&quot; Value=&quot;#FFF&quot;\/&gt;                     &lt;\/Trigger&gt;                 &lt;\/ControlTemplate.Triggers&gt;             &lt;\/ControlTemplate&gt;         &lt;\/Setter.Value&gt;     &lt;\/Setter&gt; &lt;\/Style&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>   \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430\u0445 \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u00ab\u0432 \u0432\u0435\u043a\u0442\u043e\u0440\u0435\u00bb. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 maximize:  <\/p>\n<pre><code class=\"xml\">&lt;Path StrokeThickness=&quot;1&quot;     RenderOptions.EdgeMode=&quot;Aliased&quot;     Data=&quot;M0,0 H8 V8 H0 V0 M0,1 H8 M0,2 H8&quot; \/&gt; <\/code><\/pre>\n<p>   \u0414\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442 Segoe UI. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u2014 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0442\u0435\u043a\u0441\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d \u0431\u0435\u0437 \u0440\u0430\u0437\u043c\u044b\u0442\u0438\u044f, \u0438\u043d\u0430\u0447\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043e\u043a\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c\u2026 \u043f\u043b\u043e\u0445\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u2014 \u043a\u0430\u043a \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/16e\/82d\/3df\/16e82d3dfba992bc1c685e83cbf38027.png\"\/><\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0434\u043b\u044f Path&#8217;\u0430 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430\u0445 \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0446\u0435\u043b\u044c\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f EdgeMode=\u00abAliased\u00bb, \u0430<br \/>   \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 WPF 4+ \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0434\u043e\u043b\u0433\u043e\u0436\u0434\u0430\u043d\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435, \u0430 \u043d\u0435 \u043d\u0430 \u00ab\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435\u00bb, \u0447\u0442\u043e \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u0435\u043c\u043b\u0438\u043c\u043e\u0439 \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u0438 \u043d\u0430 \u043d\u0430\u0448\u0438\u0445 \u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u0430\u0445.<\/p>\n<pre><code class=\"xml\">&lt;TextBlock     TextOptions.TextRenderingMode=&quot;ClearType&quot;     TextOptions.TextFormattingMode=&quot;Display&quot; &gt; ... <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u00ab\u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0435\u0439 Windows 7\u00bb \u043f\u0440\u0438 \u0440\u0430\u0441\u043f\u0430\u0445\u0438\u0432\u0430\u043d\u0438\u0438 \u043e\u043a\u043d\u0430 \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d. Windows \u0436\u0443\u043b\u044c\u043d\u0438\u0447\u0430\u0435\u0442, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u044f \u043e\u043a\u043d\u043e \u0442\u0430\u043a, \u0447\u0442\u043e \u0431\u043e\u0440\u0434\u044e\u0440 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0443\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u044d\u043a\u0440\u0430\u043d\u0430, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043d\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043e\u043a\u043d\u0430. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e Windows \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0431\u043e\u0440\u0434\u044e\u0440 \u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043e\u043a\u043e\u043d \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c. WPF \u044d\u0442\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0438, \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043e\u043a\u043e\u043d \u043a\u0430\u043a \u0443 \u043d\u0430\u0441, \u0435\u0441\u0442\u044c \u0440\u0438\u0441\u043a \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0435, \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u043c\u0435\u043d\u0435\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b, \u043d\u043e \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 <a href=\"https:\/\/github.com\/D-Key\/whosh\/blob\/master\/Whush%20Solution\/Whush.Demo\/Styles\/CustomizedWindow\/VS2012WindowStyle.xaml\">\u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a>.<\/p>\n<h3>\u041e\u0436\u0438\u0432\u043b\u044f\u0435\u043c \u043e\u043a\u043d\u043e<\/h3>\n<p>   \u041f\u043e\u043c\u0438\u043c\u043e \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0438\u043a\u043e\u043d\u043a\u0443, \u043e\u043a\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u0438 drag&#8217;\u0435 \u0437\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0437\u0430 \u043a\u0440\u0430\u044f \u0438 \u0443\u0433\u043e\u043b\u043a\u0438. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u0437\u043e\u043d\u044b \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432. \u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u043b\u0435\u0432\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e (\u0441\u0435\u0432\u0435\u0440\u043e-\u0437\u0430\u043f\u0430\u0434\u043d\u043e\u0433\u043e) \u0443\u0433\u043b\u0430.<\/p>\n<pre><code class=\"xml\">&lt;Rectangle     x:Name=&quot;rectSizeNorthWest&quot;     MouseDown=&quot;OnSizeNorthWest&quot;     Cursor=&quot;SizeNWSE&quot; Fill=&quot;Transparent&quot;     VerticalAlignment=&quot;Top&quot; HorizontalAlignment=&quot;Left&quot;     Width=&quot;5&quot; Height=&quot;5&quot; \/&gt; <\/code><\/pre>\n<p>   \u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 Class \u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445, \u043c\u0435\u0442\u043e\u0434\u044b \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0447\u0435\u043c \u043c\u044b \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c. \u0421\u0430\u043c\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 MinButtonClick \u0438 OnSizeNorthWest, \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>void MinButtonClick(object sender, RoutedEventArgs e) {     Window window = ((FrameworkElement)sender).TemplatedParent as Window;     if (window != null) window.WindowState = WindowState.Minimized; }  void OnSizeNorthWest(object sender) {     if (Mouse.LeftButton == MouseButtonState.Pressed) {         Window window = ((FrameworkElement)sender).TemplatedParent as Window;         if (window != null && window.WindowState == WindowState.Normal) {             DragSize(w.GetWindowHandle(), SizingAction.NorthWest);         }     } } <\/code><\/pre>\n<p>   DragSize \u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 WinAPI (<a href=\"https:\/\/github.com\/D-Key\/whosh\/blob\/master\/Whush%20Solution\/Whush.Demo\/Styles\/CustomizedWindow\/VS2012WindowStyle.cs\">\u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/a>) \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 Windows \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043e\u043a\u043d\u0430 \u043a\u0430\u043a \u0432 \u0434\u043e-\u0434\u043e\u0442\u043d\u0435\u0442\u043e\u0432\u0441\u043a\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430.<\/p>\n<p>  \u041f\u043e\u0447\u0442\u0438 \u0433\u043e\u0442\u043e\u0432\u043e. \u0417\u0430\u0434\u0430\u0434\u0438\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u043a\u043d\u0430. \u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u0432 XAML \u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043c StatusBar&#8217;\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0446\u0432\u0435\u0442 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Window.IsActive.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">XAML \u0434\u043b\u044f StatusBar&#39;\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;Style.Resources&gt;     &lt;Style TargetType=&quot;{x:Type StatusBar}&quot;&gt;         &lt;Style.Triggers&gt;             &lt;DataTrigger Value=&quot;True&quot;                 Binding=&quot;{Binding IsActive, RelativeSource={RelativeSource AncestorType=Window}}&quot;&gt;                 &lt;Setter Property=&quot;Foreground&quot;                      Value=&quot;{StaticResource VS2012WindowStatusForeground}&quot; \/&gt;                 &lt;Setter Property=&quot;Background&quot;                      Value=&quot;{StaticResource VS2012WindowBorderBrush}&quot; \/&gt;             &lt;\/DataTrigger&gt;             &lt;DataTrigger Value=&quot;False&quot;                 Binding=&quot;{Binding IsActive, RelativeSource={RelativeSource AncestorType=Window}}&quot; &gt;                 &lt;Setter Property=&quot;Foreground&quot;                     Value=&quot;{StaticResource VS2012WindowStatusForegroundInactive}&quot; \/&gt;                 &lt;Setter Property=&quot;Background&quot;                     Value=&quot;{StaticResource VS2012WindowBorderBrushInactive}&quot; \/&gt;             &lt;\/DataTrigger&gt;         &lt;\/Style.Triggers&gt;     &lt;\/Style&gt; &lt;\/Style.Resources&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0441\u0442\u0438\u043b\u044c \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0435 \u043d\u0430 \u0442\u0435\u043c\u043b\u044d\u0439\u0442 \u043e\u043a\u043d\u0430, \u0430 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u0432 \u043d\u0430\u0448\u0435 \u043e\u043a\u043d\u043e. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0441\u0430\u043c\u044b\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u043a\u043e\u0434\u043e\u043c?<\/p>\n<pre><code class=\"xml\">&lt;Window ... Style=&quot;{StaticResource VS2012WindowStyle}&quot;&gt;     ...     &lt;StatusBarItem HorizontalAlignment=&quot;Right&quot;&gt;     ... &lt;\/Window&gt; <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0441\u0442\u0438\u043b\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0433\u043e StatusBar&#8217;\u0430 \u043c\u044b \u0441\u0435\u0439\u0447\u0430\u0441 \u0438 \u0437\u0430\u0434\u0430\u043b\u0438. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u044c ScrollBar, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0442\u043e\u0436\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u0441\u0442\u0438\u043b\u044e. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0432\u0435\u0447\u0435\u0440.<\/p>\n<h3>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u043c\u0435\u0441\u0442\u0435<\/h3>\n<p>   \u0412\u0441\u0435. \u041d\u0430\u043c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0438\u043b\u044c \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"xml\">&lt;Application ... StartupUri=&quot;MainWindow.xaml&quot;&gt;     &lt;Application.Resources&gt;         &lt;ResourceDictionary&gt;             &lt;ResourceDictionary.MergedDictionaries&gt;                 &lt;ResourceDictionary Source=&quot;Styles\/CustomizedWindow\/VS2012WindowStyle.xaml&quot; \/&gt;             &lt;\/ResourceDictionary.MergedDictionaries&gt;         &lt;\/ResourceDictionary&gt;     &lt;\/Application.Resources&gt; &lt;\/Application&gt; <\/code><\/pre>\n<p>   \u0418 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u043e\u043a\u043d\u0435.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/389\/ccb\/422\/389ccb4223c18931aa006b4cf32ac46f.png\"\/> <\/p>\n<p>   \u2014 \u0414.<\/p>\n<p>  P.S. \u0415\u0449\u0435 \u0440\u0430\u0437 <a href=\"https:\/\/github.com\/D-Key\/whosh\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a> \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043d\u0430 github&#8217;\u0435 \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u043b \u0432\u043d\u0438\u0437 \u0440\u0430\u0434\u0438 \u043d\u0435\u0435.    \t   \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\/158561\/\"> http:\/\/habrahabr.ru\/post\/158561\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0430 \u0434\u043d\u044f\u0445, \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u043b\u0433\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0430, \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 WPF, \u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043d\u0430\u0434\u043e\u0435\u0432\u0448\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0438\u0434 \u043e\u043a\u043e\u043d Windows 7 \u043d\u0430 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u043e\u043b\u0435\u0435 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u044f\u044e\u0449\u0435\u0435, \u0441\u043a\u0430\u0436\u0435\u043c \u0432 \u0441\u0442\u0438\u043b\u0435 Visual Studio 2012:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/01d\/94c\/07a\/01d94c07adc9c667d7e65157ad3a197d.png\"\/><\/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-158561","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158561","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=158561"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158561\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}