diff --git a/Tutorial/GacUI_Xml/Binding_Bind/UI/Resource.xml b/Tutorial/GacUI_Xml/Binding_Bind/UI/Resource.xml
index 6ad0f455..0592f9cc 100644
--- a/Tutorial/GacUI_Xml/Binding_Bind/UI/Resource.xml
+++ b/Tutorial/GacUI_Xml/Binding_Bind/UI/Resource.xml
@@ -17,9 +17,47 @@
-
+
+
+ composeType:MinSize
+ composeType:MinSize
+ composeType:MinSize
+ composeType:Percentage percentage:1.0
+
+
+ composeType:MinSize
+ composeType:Absolute absolute:100
+ composeType:Percentage percentage:1.0
+
+
+ |
+
+ |
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
diff --git a/Tutorial/GacUI_Xml/Binding_Bind/UI/Source/DemoPartialClasses.h b/Tutorial/GacUI_Xml/Binding_Bind/UI/Source/DemoPartialClasses.h
index 8088a85f..b18085c5 100644
--- a/Tutorial/GacUI_Xml/Binding_Bind/UI/Source/DemoPartialClasses.h
+++ b/Tutorial/GacUI_Xml/Binding_Bind/UI/Source/DemoPartialClasses.h
@@ -23,11 +23,17 @@ namespace demo
friend struct vl::reflection::description::CustomTypeDescriptorSelector;
private:
protected:
+ vl::presentation::controls::GuiSinglelineTextBox* textBoxA;
+ vl::presentation::controls::GuiSinglelineTextBox* textBoxB;
+ vl::presentation::controls::GuiSinglelineTextBox* textBoxC;
void InitializeComponents()
{
if (InitializeFromResource())
{
+ GUI_INSTANCE_REFERENCE(textBoxA);
+ GUI_INSTANCE_REFERENCE(textBoxB);
+ GUI_INSTANCE_REFERENCE(textBoxC);
}
else
{
@@ -37,6 +43,9 @@ namespace demo
MainWindow_()
:vl::presentation::GuiInstancePartialClass(L"demo::MainWindow")
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
+ ,textBoxA(0)
+ ,textBoxB(0)
+ ,textBoxC(0)
{
}
};
diff --git a/Tutorial/GacUI_Xml/Binding_Eval/UI/Resource.xml b/Tutorial/GacUI_Xml/Binding_Eval/UI/Resource.xml
index f2097743..ab976aec 100644
--- a/Tutorial/GacUI_Xml/Binding_Eval/UI/Resource.xml
+++ b/Tutorial/GacUI_Xml/Binding_Eval/UI/Resource.xml
@@ -17,7 +17,7 @@
-
diff --git a/Tutorial/GacUI_Xml/Binding_Format/UI/Resource.xml b/Tutorial/GacUI_Xml/Binding_Format/UI/Resource.xml
index 7d54d762..d8164d2f 100644
--- a/Tutorial/GacUI_Xml/Binding_Format/UI/Resource.xml
+++ b/Tutorial/GacUI_Xml/Binding_Format/UI/Resource.xml
@@ -17,9 +17,32 @@
-
- fontFamily:{Segoe UI} size:32 antialias:true
-
+
+
+ composeType:MinSize
+ composeType:MinSize
+ composeType:Percentage percentage:1.0
+
+
+ composeType:MinSize
+ composeType:Absolute absolute:100
+ composeType:Percentage percentage:1.0
+
+
+ |
+
+ |
+
+
+
+
+ |
+
+
+
+ |
+
+
diff --git a/Tutorial/GacUI_Xml/Binding_Format/UI/Source/DemoPartialClasses.h b/Tutorial/GacUI_Xml/Binding_Format/UI/Source/DemoPartialClasses.h
index 8088a85f..26a89bd8 100644
--- a/Tutorial/GacUI_Xml/Binding_Format/UI/Source/DemoPartialClasses.h
+++ b/Tutorial/GacUI_Xml/Binding_Format/UI/Source/DemoPartialClasses.h
@@ -23,11 +23,13 @@ namespace demo
friend struct vl::reflection::description::CustomTypeDescriptorSelector;
private:
protected:
+ vl::presentation::controls::GuiSinglelineTextBox* textBoxName;
void InitializeComponents()
{
if (InitializeFromResource())
{
+ GUI_INSTANCE_REFERENCE(textBoxName);
}
else
{
@@ -37,6 +39,7 @@ namespace demo
MainWindow_()
:vl::presentation::GuiInstancePartialClass(L"demo::MainWindow")
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
+ ,textBoxName(0)
{
}
};
diff --git a/Tutorial/GacUI_Xml/UIRes/Binding_Bind.bin b/Tutorial/GacUI_Xml/UIRes/Binding_Bind.bin
index 5b629b44..45f35210 100644
Binary files a/Tutorial/GacUI_Xml/UIRes/Binding_Bind.bin and b/Tutorial/GacUI_Xml/UIRes/Binding_Bind.bin differ
diff --git a/Tutorial/GacUI_Xml/UIRes/Binding_Eval.bin b/Tutorial/GacUI_Xml/UIRes/Binding_Eval.bin
index 3bbc1927..51fff159 100644
Binary files a/Tutorial/GacUI_Xml/UIRes/Binding_Eval.bin and b/Tutorial/GacUI_Xml/UIRes/Binding_Eval.bin differ
diff --git a/Tutorial/GacUI_Xml/UIRes/Binding_Format.bin b/Tutorial/GacUI_Xml/UIRes/Binding_Format.bin
index baf2b2fd..bf8e60c3 100644
Binary files a/Tutorial/GacUI_Xml/UIRes/Binding_Format.bin and b/Tutorial/GacUI_Xml/UIRes/Binding_Format.bin differ