English 中文(简体)
灵活性3:在<mx:ComboBox>上找错“笔误” 它意味着什么?
原标题:Flex 3: Getting error of "Parse error at <mx:ComboBox> >." What does it mean?
<mx:List columnCount="5" rowCount="11" width="100%" height="100%" dataProvider="{parentDocument.crewPositionsAC}" useRollOver="false" alternatingItemColors="[0xffffff, 0xe5e5e5]" borderStyle="none">
    <mx:itemRenderer>
        <mx:Component>
            <mx:Text text="{data}" color="#840021" selectable="false" />
            <mx:ComboBox id="studentType">
                <mx:ArrayCollection>
                    <mx:String>BFA1</mx:String>
                    <mx:String>BFA2</mx:String>
                    <mx:String>BFA3</mx:String>
                    <mx:String>MFA1</mx:String>
                    <mx:String>MFA2</mx:String>
                    <mx:String>MFA3</mx:String>
                    <mx:String>MFAw1</mx:String>
                    <mx:String>MFAw2</mx:String>
                    <mx:String>MFAw3</mx:String>
                </mx:ArrayCollection>
            </mx:ComboBox>
        </mx:Component>
    </mx:itemRenderer>
</mx:List>

当我试图挽救它时,我就犯了错误:

Parse误差 at <mx:ComboBox> 。

谁能看到造成错误的原因?

最佳回答

你只能有一个单一的组成部分,被定义为在线项目投标者。 你有两个定义,一个文本和一个ComboBox。 解决办法是将其放在集装箱内。 我在示威时使用了HBox。

<mx:List columnCount="5" rowCount="11" width="100%" height="100%" dataProvider="{parentDocument.crewPositionsAC}" useRollOver="false" alternatingItemColors="[0xffffff, 0xe5e5e5]" borderStyle="none">
    <mx:itemRenderer>
        <mx:Component>
           <mx:HBox>
            <mx:Text text="{data}" color="#840021" selectable="false" />
            <mx:ComboBox id="studentType">
                <mx:ArrayCollection>
                    <mx:String>BFA1</mx:String>
                    <mx:String>BFA2</mx:String>
                    <mx:String>BFA3</mx:String>
                    <mx:String>MFA1</mx:String>
                    <mx:String>MFA2</mx:String>
                    <mx:String>MFA3</mx:String>
                    <mx:String>MFAw1</mx:String>
                    <mx:String>MFAw2</mx:String>
                    <mx:String>MFAw3</mx:String>
                </mx:ArrayCollection>
            </mx:ComboBox>
           </mx:HBox>
        </mx:Component>
    </mx:itemRenderer>
</mx:List>
问题回答

暂无回答




相关问题
WPF Datagrid, Setting the background of combox popup

I would like to change the color of the popup background when using a DatagridComboboxColumn in the WPF Toolkit datagrid. I ve edited the Template for a normal Combobox and it works great for selected ...

How to insert ComboBox item into ListBox? [winforms]

The question is very simple, How to insert ComboBox selected item into ListBox using c#? I have tried with this: listbox.Items.Add(combobox.SelectedItem); and some other permutations but it always ...

How do I bind a ComboBox to a one column list

I ve seen how to bind a ComboBox to a list that has columns like this: ItemsSource="{Binding Path=Entries}" DisplayMemberPath="Name" SelectedValuePath="Name" SelectedValue="{Binding Path=Entry}" But ...

Wpf Combobox Limit to List

We are using Wpf Combobox to allow the user to do the following things: 1) select items by typing in the first few characters 2) auto complete the entry by filtering the list 3) suggesting the first ...

热门标签