ste*_*wpf 5 constants javafx-2 fxml
我想知道,是否可以<fx:constant>在属性中使用而不是单独的标签?
目前这对我有用:
<Label>
<text>
<MyController fx:constant="MY_CONSTANT_STRING" />
</text>
</Label>
Run Code Online (Sandbox Code Playgroud)
虽然我更喜欢这样的东西:
<Label text="<MyController fx:constant="MY_CONSTANT_STRING" />" />
Run Code Online (Sandbox Code Playgroud)
有可能是后者可能吗?
谢谢你的提示!