titlebar in MXML

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1163b7b3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1163b7b3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1163b7b3

Branch: refs/heads/develop
Commit: 1163b7b3fe17f6d35b1c8198ea9e7ca2b261a03e
Parents: b379566
Author: Alex Harui <aha...@apache.org>
Authored: Mon Sep 15 13:37:38 2014 -0700
Committer: Alex Harui <aha...@apache.org>
Committed: Tue Sep 23 14:49:41 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/html/beads/TitleBarView.mxml        | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1163b7b3/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TitleBarView.mxml
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TitleBarView.mxml
 
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TitleBarView.mxml
index a144d6b..bd1cc39 100644
--- 
a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TitleBarView.mxml
+++ 
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TitleBarView.mxml
@@ -20,7 +20,7 @@ limitations under the License.
 <basic:MXMLBeadViewBase xmlns:fx="http://ns.adobe.com/mxml/2009";
                   xmlns:basic="library://ns.apache.org/flexjs/basic" 
                   xmlns:mx="library://ns.adobe.com/flex/mx"
-                  >
+                  implements="org.apache.flex.core.ILayoutParent">
     <fx:Script>
         <![CDATA[
             import org.apache.flex.html.TitleBar;
@@ -35,7 +35,12 @@ limitations under the License.
             }
         ]]>
     </fx:Script>
-    
+    <basic:beads>
+        <basic:MXMLBeadViewBaseDataBinding />
+        <basic:LayoutChangeNotifier 
watchedProperty="{ITitleBarModel(model).title}" />
+        <basic:SolidBackgroundBead />
+    </basic:beads>
+
     <basic:Label id="titleLabel" text="{ITitleBarModel(model).title}" 
                                  html="{ITitleBarModel(model).htmlTitle}" />
     <basic:CloseButton id="closeButton" click="clickHandler()"

Reply via email to