From: jp Date: Mon, 29 Feb 2016 11:13:17 +0000 (+0100) Subject: window style X-Git-Tag: v0.4~96 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=d43fa6d73c00304081bf13bc6ccdf6a9ba9f9217;p=jp%2Fcrow.git window style --- diff --git a/Crow.csproj b/Crow.csproj index 366d2ee8..68975169 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -23,7 +23,6 @@ 2.0 v4.5 AnyCPU - 0.4 true @@ -243,6 +242,7 @@ + diff --git a/Styles/Window.style b/Styles/Window.style new file mode 100644 index 00000000..f0032e46 --- /dev/null +++ b/Styles/Window.style @@ -0,0 +1,3 @@ +Focusable=true +MinimumSize=50;50 +Fit=true diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs index 726f858a..5e1bd681 100644 --- a/src/GraphicObjects/Window.cs +++ b/src/GraphicObjects/Window.cs @@ -6,6 +6,7 @@ using OpenTK.Input; namespace Crow { + [DefaultStyle("#Crow.Styles.Window.style")] [DefaultTemplate("#Crow.Templates.Window.goml")] public class Window : TemplatedContainer {