无法在F#FSI的WPF文本框中输入文本
在下面的F#WPF代码中,当我从F#FSI“显示”WPF窗口时,我无法在文本框中输入任何文本。这与正在使用的Windows窗体事件循环有关吗无法在F#FSI的WPF文本框中输入文本,wpf,f#,Wpf,F#,在下面的F#WPF代码中,当我从F#FSI“显示”WPF窗口时,我无法在文本框中输入任何文本。这与正在使用的Windows窗体事件循环有关吗 let txtBox = new TextBox() txtBox.BorderThickness <- Thickness(2.) txtBox.Margin <- Thickness(7.) txtBox.IsReadOnly <- false let wnd = new Window(Title = "Test", Height
let txtBox = new TextBox()
txtBox.BorderThickness <- Thickness(2.)
txtBox.Margin <- Thickness(7.)
txtBox.IsReadOnly <- false
let wnd = new Window(Title = "Test", Height = 500., Width = 500.)
wnd.Content <- txtBox
wnd.Show()
让txtBox=newtextbox()
txtBox.BorderThickness您需要调用应用程序。运行
-请参阅。这将自动为您启动事件循环
let txtBox = new TextBox()
txtBox.BorderThickness <- Thickness(2.)
txtBox.Margin <- Thickness(7.)
txtBox.IsReadOnly <- false
let wnd = new Window(Title = "Test", Height = 500., Width = 500.)
wnd.Content <- txtBox
(new Application()).Run(wnd) |> ignore