所以我有这个:
$database = JFactory::getDBO();
$database->setQuery("SELECT COUNT(`SubmissionId`) FROM #__rsform_submission_values WHERE (`FieldName`='Participate' AND `FieldValue`='Ja') AND (`FieldValue`='Reinier de Graaf Gasthuis, Delft')");
$formLayout = "Reinier de Graaf Gasthuis, Delft: <strong>".$database->loadResult()."</strong>";
当<system:Int32 x:Key="ListViewPacketManipulationOptionsComboBoxSelectedIndex">0</system:Int32>
Value
为> 0
时,我想要TextBox
IsEnables=True
:
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return (int)value > 0;
}
我的TextBox
:
<TextBox x:Name="tbHeaderOriginValue"
IsEnabled="{DynamicResource ListViewPacketManipulationOptionsComboBoxSelectedIndex}"/>
目前我没有找到任何方法来添加Converter
。