Mahapp Metro Window标题在TaskBar中不可见

时间:2016-10-13 14:43:42

标签: wpf xaml taskbar titlebar mahapps.metro

我正在使用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);

问题出现在任务栏中,它会显示标题。 enter image description here

1 个答案:

答案 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