我正在使用MahApp MetroWindow,其标题模板如下所示。
$connectionOptions = array(
'driver' => $options['conn']['driv'],
'user' => $options['conn']['user'],
'password' => $options['conn']['pass'],
'dbname' => $options['conn']['dbname'],
'host' => $options['conn']['host'],
'charset' => 'utf8',
'driverOptions' => array(
1002 => 'SET NAMES utf8'
)
);
$em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);
答案 0 :(得分:1)
将Title属性添加到窗口并在datatemplate上执行templatebinding。试试这个。
new("Person", Age = 12)
#Error in if (object@Age < 0) return("Age cannot be negative") :
#argument is of length zero