我找到了这些属性:
selectionIndicatorSkin="..."
todayIndicatorSkin="..."
哪个皮肤 DateChooser Selected 和今天的项目。
奇怪的是,我没有找到一种方法可以让我在正常的日子里指定皮肤!我找到了这个属性:
weekDayStyleName="..."
所以我创造了一种风格
.myStyle{
skin-class: ClassReference("com.mySkin");
}
然后使用它: weekDayStyleName="myStyle" 但它没有工作!有任何想法吗?
额外代码:
<mx:DateChooser id="date1"
todayStyleName="myTodayStyle"
headerStyleName="myHeaderStyle"
selectionIndicatorSkin="com.skins.calendar.SelectionIndicatorSkin"
todayIndicatorSkin="com.skins.calendar.TodayIndicatorSkin1"
focusSkin="com.skins.calendar.TodayIndicatorSkin1"
rollOverIndicatorSkin="com.skins.calendar.SelectionIndicatorSkin"
weekDayStyleName="weekdayStyle"
borderColor="#FFFFFF"
todayColor="#FFFFFF"
width="275" height="275" />
<fx:Style >
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace vld "com.lal.validators.*";
@namespace effect "com.lal.effects.*";
@namespace components "com.lal.components.*";
.weekdayStyle{
skin-class: ClassReference("com.lal.skins.calendar.TodayIndicatorSkin1");
vertical-align: middle;
font-size: 18;
}
</fx:Style>