From 8fc9498edb1a9089c9615fb47087c90163ae96b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Thu, 31 Dec 2020 16:37:46 +0100 Subject: [PATCH] unbox value type in emitGetSubData, FileDialog enabled for folder only, minimum size for Button in style and no longer in template root group --- Crow/Default.style | 1 + Crow/Templates/Button.template | 2 +- Crow/Templates/FileDialog.template | 2 +- Crow/src/Command.cs | 1 - Crow/src/ItemTemplate.cs | 9 ++++++--- Crow/src/Widgets/FileDialog.cs | 18 ++++++++++++------ Crow/src/styling/StyleReader.cs | 2 +- 7 files changed, 22 insertions(+), 13 deletions(-) diff --git a/Crow/Default.style b/Crow/Default.style index ae09ec1c..dff927ff 100644 --- a/Crow/Default.style +++ b/Crow/Default.style @@ -67,6 +67,7 @@ Wrapper { } Button { Caption = "Button"; + MinimumSize = "50,20"; Width = "Fit"; } Label { diff --git a/Crow/Templates/Button.template b/Crow/Templates/Button.template index 14b14a2f..c46da8c6 100644 --- a/Crow/Templates/Button.template +++ b/Crow/Templates/Button.template @@ -1,5 +1,5 @@ - + Width="100%" Margin="0" MouseDoubleClick="./onFileSelectDblClick">