Hide this comment

I'm not sure that this is required any more. Simply using

1
2
3
4
5
#r "PresentationCore.dll"
#r "PresentationFramework.dll"
#r "WindowsBase.dll"

let win = System.Windows.Window() in win.Show()

works for me.

I also noticed that fsi.EventLoop is a deprecated property. Can anyone confirm?

By on 6/30/2009 1:46 AM ()Reply
Hide this comment

Currently, it is still required. For example, text input below does not work with the WinForms loop.

1
2
3
4
5
6
7
#r "PresentationCore.dll"
#r "PresentationFramework.dll"
#r "WindowsBase.dll"
let text = System.Windows.Controls.TextBox()
let win  = System.Windows.Window(Content=text)
win.Show()
By on 6/30/2009 4:03 AM ()Reply
Hide this comment

Right. Would anyone know if the text entry problem is a bug? Or should we request that this script is shipped with Beta2?

thanks,

Danny

By on 6/30/2009 6:05 AM ()Reply
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper

Logging in...