F# can't use datagrid in WPF of .net in interactive way -
my script below:
#light #r "windowsbase" #r "presentationcore" #r "presentationframework" open system open system.windows open system.windows.controls let window = new system.windows.window(name="test",width=500.0,height=500.0) window.visibility <- visibility.visible window.show() let mutable wp = new system.windows.controls.datagrid()
initialize window ok, when initialize datagrid , there error:
graph.fsx(18,46): error fs0039: type 'datagrid' not defined.
but when put mouse cursor on "system.windows.controls.datagrid()", there pop-up window showing definition of datagrid.
so did miss? how use datagrid in f#.
from msdn:
namespace: system.windows.controls
assembly: system.windows.controls.data (in system.windows.controls.data.dll)
you need reference correct assembly:
#r "system.windows.controls.data"
Comments
Post a Comment