{"id":327,"date":"2007-04-29T16:23:02","date_gmt":"2007-04-29T16:23:02","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=327"},"modified":"2017-01-29T13:20:07","modified_gmt":"2017-01-29T04:20:07","slug":"non-rectangle-window-in-wpf","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=327","title":{"rendered":"Non-Rectangle Window in WPF"},"content":{"rendered":"<p>\uc624\ub298 \uc791\uc131\ud574\ubcf8 WPF\uc5d0\uc11c \uc9c1\uc0ac\uac01\ud615\uc774 \uc544\ub2cc \ucc3d\uc744 \ub098\ud0c0\ub0b4\ub294 \ucf54\ub4dc\uc774\ub2e4. UI \ubd80\ubd84\uc774\ubbc0\ub85c \ubaa8\ub4e0 \uc8fc\uc694 \ucf54\ub4dc\ub294 XAML\uc5d0\uc11c \uc791\uc131\ub418\uba70 \ub4dc\ub808\uadf8\ud588\uc744\uc2dc\uc5d0 \ucc3d\uc774 \uc774\ub3d9\ub418\ub294 \uc774\ubca4\ud2b8 \ucc98\ub9ac\ub294 Behind Code(.CS \ud30c\uc77c)\uc5d0\uc11c \uc791\uc131\ud558\uc600\ub2e4. \uba3c\uc800 XAML \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\ub2e4.<\/p>\n<pre><Window \r\n  x:Class=\"NonRectangularWindowSample.NonRectangularWindow\"\r\n  xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n  xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n  Title=\"Kim Hyoung Jun\" \r\n  MouseLeftButtonDown=\"eventMouseLeftButtonDown\"\r\n  WindowStyle=\"None\" \r\n  AllowsTransparency=\"True\" \r\n  Background=\"Transparent\">\r\n  <Canvas Width=\"200\" Height=\"100\" >\r\n    <Path Stroke=\"LightBlue\" StrokeThickness=\"2\">\r\n      <Path.Fill>\r\n        <LinearGradientBrush StartPoint=\"0,0\" EndPoint=\"1,1\" >\r\n          <GradientStop Color=\"White\" Offset=\"0\" \/>\r\n          <GradientStop Color=\"White\" Offset=\"0.2\" \/>\r\n          <GradientStop Color=\"LightBlue\" Offset=\"0.9\" \/>\r\n          <GradientStop Color=\"Black\" Offset=\"1\" \/>\r\n        <\/LinearGradientBrush>\r\n      <\/Path.Fill>\r\n\r\n      <Path.Data>\r\n        <PathGeometry>\r\n          <PathFigure StartPoint=\"40,20\" IsClosed=\"True\">\r\n            <LineSegment Point=\"160,20\" \/>\r\n            <ArcSegment Point=\"180,40\" Size=\"20,20\" \r\n                        SweepDirection=\"Clockwise\" \/>\r\n            <LineSegment Point=\"180,80\" \/>\r\n            <ArcSegment Point=\"160,100\" Size=\"20,20\" \r\n                        SweepDirection=\"Clockwise\" \/>\r\n            <LineSegment Point=\"40,100\" \/>\r\n            <ArcSegment Point=\"20,80\" Size=\"20,20\" \r\n                        SweepDirection=\"Clockwise\" \/>\r\n            <LineSegment Point=\"20,40\" \/>\r\n            <ArcSegment Point=\"40,20\" Size=\"20,20\" \r\n                        SweepDirection=\"Clockwise\" \/>\r\n          <\/PathFigure>\r\n        <\/PathGeometry>\r\n      <\/Path.Data>\r\n    <\/Path>\r\n\r\n    <Label Width=\"200\"\r\n           Height=\"120\"\r\n           FontSize=\"15\"\r\n           HorizontalContentAlignment=\"Center\"\r\n           VerticalContentAlignment=\"Center\"\r\n           Content=\"\ub04c\uba74 \uc774\ub3d9\ub429\ub2c8\ub2e4\" \/>\r\n  <\/Canvas>\r\n<\/Window><\/pre>\n<p>\ucc3d\uc744 \uc6d0\ud558\ub294 \ubaa8\uc591\uc73c\ub85c \ub9cc\ub4e4\uae30 \uc704\ud574\uc11c \ubc18\ub4dc\uc2dc \uc124\uc815\ud574\uc57c\ud560 Window\uc758 \uc18d\uc131\uc740 \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c \ubd84\ud64d\uc0c9\uc73c\ub85c \ub098\ud0c0\ub0b8 WindowStyle, AllowTransparency, Background \uc18d\uc131\uc774\ub2e4. \uadf8\ub9ac\uace0 Path Element\ub97c \uc774\uc6a9\ud574 \uc6d0\ud558\ub294 \ubaa8\uc591\uc744 \uadf8\ub824\uc8fc\uba74 \ub05d\uc774\ub2e4. \ucc38\uc73c\ub85c \uac04\ub2e8\ud558\uba74\uc11c\ub3c4 \uba85\ud655\ud558\ub2e4. \uc2e4\ud589 \uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1083992448.png\" class=\"aligncenter\" width=\"198\" height=\"110\" alt=\"\" \/>\ub4dc\ub808\uadf8\ub97c \ud558\uba74 \ucc3d\uc774 \uc774\ub3d9\uc744 \ud558\ub294\ub370 \uadf8\uc640 \uad00\ub828\ub41c \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4. \ub9c8\uc6b0\uc2a4\uc758 \uc67c\ucabd \ubc84\ud134\uc744 \ub20c\ub838\uc744 \uacbd\uc6b0 \ubc1c\uc0dd\ud558\ub294 \uc774\ubca4\ud2b8\uc774\ub2e4.<\/p>\n<pre>void eventMouseLeftButtonDown(object sender, \r\n                              MouseButtonEventArgs e) {\r\n     DragMove();\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uc624\ub298 \uc791\uc131\ud574\ubcf8 WPF\uc5d0\uc11c \uc9c1\uc0ac\uac01\ud615\uc774 \uc544\ub2cc \ucc3d\uc744 \ub098\ud0c0\ub0b4\ub294 \ucf54\ub4dc\uc774\ub2e4. UI \ubd80\ubd84\uc774\ubbc0\ub85c \ubaa8\ub4e0 \uc8fc\uc694 \ucf54\ub4dc\ub294 XAML\uc5d0\uc11c \uc791\uc131\ub418\uba70 \ub4dc\ub808\uadf8\ud588\uc744\uc2dc\uc5d0 \ucc3d\uc774 \uc774\ub3d9\ub418\ub294 \uc774\ubca4\ud2b8 \ucc98\ub9ac\ub294 Behind Code(.CS \ud30c\uc77c)\uc5d0\uc11c \uc791\uc131\ud558\uc600\ub2e4. \uba3c\uc800 XAML \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\ub2e4. \ucc3d\uc744 \uc6d0\ud558\ub294 \ubaa8\uc591\uc73c\ub85c \ub9cc\ub4e4\uae30 \uc704\ud574\uc11c \ubc18\ub4dc\uc2dc \uc124\uc815\ud574\uc57c\ud560 Window\uc758 \uc18d\uc131\uc740 \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c \ubd84\ud64d\uc0c9\uc73c\ub85c \ub098\ud0c0\ub0b8 WindowStyle, AllowTransparency, Background \uc18d\uc131\uc774\ub2e4. \uadf8\ub9ac\uace0 Path Element\ub97c \uc774\uc6a9\ud574 \uc6d0\ud558\ub294 \ubaa8\uc591\uc744 \uadf8\ub824\uc8fc\uba74 \ub05d\uc774\ub2e4. \ucc38\uc73c\ub85c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=327\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Non-Rectangle Window in WPF&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[21],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-wpf","tag-wpf"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=327"}],"version-history":[{"count":1,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":3637,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions\/3637"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}