c# - WPF Combobox floating watermark - MetroStyle -
i have textboxes using floating watermark this:
<textbox x:name="cbcombo" mah:textboxhelper.watermark="some watermark" mah:textboxhelper.usefloatingwatermark="true" text="{binding path=prop.name}" isenabled="false"></textbox>
and work intended. have problem combobox - same settings (usefloatingwatermark, watermark) sets floating watermark not working @ all:
<combobox mah:textboxhelper.watermark="receiver" mah:textboxhelper.usefloatingwatermark="true" x:name="cbnotworking" verticalalignment="top" margin="{staticresource mainmargin}" itemssource="{binding somecollection}" displaymemberpath="name" selectedvaluepath="id" />
combobox above not work. shows watermark @ beginning not after item selection (at left-top corner of combobox). searched answer @ mahapps gitter room , told me possible accomplish this.
i tried nuget package, , source github (it seems different).
mahapps has floating watermark support combobox , datetimepicker, punker76 (pre-release 1.3.0).
Comments
Post a Comment