我试图创建组件:柔性:创建基于个组件:VGroup
<?xml version="1.0"?>
<s:VGroup xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark">
<mx:DataGrid id="letDataGrid" width="100%" height="100%" rowCount="5">
<mx:columns>
.......
</mx:columns>
</mx:DataGrid>
<mx:Form>
.......
</mx:Form>
</s:VGroup>
代码放置到FileName.mxml
。当我尝试使用它(为ViewStack
)
<s:NavigatorContent label="Blocks" width="100%" height="100%">
<comp:FileName/>
</s:NavigatorContent>
应用程序被编译并没有什么在窗格,组件应该的。有人能解释我做了什么不正确吗?
UPD,如果我贴的FileName.mxml
内容到位<comp:FileName/>
一切是确定
设置组件的宽度和高度。 –
@ FlorianSalihovic,尝试过' '这并没有帮助 –
Eugeny89
尝试将其设置为500x500。 –