我试图在$results = $app->screeners()->where(function($query) use($searchTerm) {
// Notice also the addition of the placeholder ('%') character
$query->where('title', 'LIKE', '%' . $searchTerm . '%')
->orWhere('description', 'LIKE', '%' . $searchTerm . '%')
;
})->get();
中使用FSharp.Charting
添加折线图。在MainViewModel中我有 -
MainWindow
和xaml -
let chart = Chart.Line [ for i in 0 .. 10 -> (i, i * i) ]
let control = new ChartControl(chart)
member self.LineChart = control
当我启动应用程序时,我会获得<WindowsFormsHost Child="{Binding LineChart}" />
以下附加信息 -
XamlParseException
如何解决问题?
这是@Foggy Finder。我删除了几行定义TextBlock和Buttons。
'Cannot create unknown type '{http://schemas.microsoft.com/winfx/2006/xaml/presentation}WindowsFormsHost'.' Line number '20' and line position '10'.
答案 0 :(得分:1)