]> O.S.I.I.S - jp/crow.git/commitdiff
window style
authorjp <jp_bruyere@hotmail.com>
Mon, 29 Feb 2016 11:13:17 +0000 (12:13 +0100)
committerjp <jp_bruyere@hotmail.com>
Mon, 29 Feb 2016 17:37:11 +0000 (18:37 +0100)
Crow.csproj
Styles/Window.style [new file with mode: 0644]
src/GraphicObjects/Window.cs

index 366d2ee8d00be2dd00f03975749f61adcc5d2e9a..689751699f85db233598490735cbdc1ef96d1631 100644 (file)
@@ -23,7 +23,6 @@
     <SchemaVersion>2.0</SchemaVersion>
     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ReleaseVersion>0.4</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
     <DebugSymbols>true</DebugSymbols>
     <EmbeddedResource Include="Styles\Label.style" />
     <EmbeddedResource Include="Styles\Spinner.style" />
     <EmbeddedResource Include="Styles\MessageBox.style" />
+    <EmbeddedResource Include="Styles\Window.style" />
   </ItemGroup>
   <ItemGroup>
     <None Include="README.md" />
diff --git a/Styles/Window.style b/Styles/Window.style
new file mode 100644 (file)
index 0000000..f0032e4
--- /dev/null
@@ -0,0 +1,3 @@
+Focusable=true
+MinimumSize=50;50
+Fit=true
index 726f858a3bc66cb1eb72c79ae24ae5a784d2b289..5e1bd681a165c39c0f7d073171b56b0ecea45bde 100644 (file)
@@ -6,6 +6,7 @@ using OpenTK.Input;
 
 namespace Crow
 {
+       [DefaultStyle("#Crow.Styles.Window.style")]
        [DefaultTemplate("#Crow.Templates.Window.goml")]
        public class Window : TemplatedContainer
        {