WPF test
Posted: Tue Mar 17, 2009 2:30 pm
I have made a simple WPF test but can not get it to compile. Gives following errors with verbosity:3:
...
Parsing WPFsimple.cobra
Binding use directives
Binding inheritance
Binding interface
Cannot locate CLR type "System.Windows.EffectiveValueEntry".
Skipping duplicate message: error: Cannot find top level namespace "MS" of CLR type "MS.Win32.NativeMethods".
error: Cannot locate nested CLR type "System.Windows.Media.Visual+AncestorChangedEventHandler" (simple name is "AncestorChangedEventHandler").
error: Cannot find top level namespace "MS" of CLR type "MS.Internal.InheritedPropertyChangedEventHandler".
error: Cannot find top level namespace "MS" of CLR type "MS.Win32.NativeMethods".
Compilation failed - 3 errors, 0 warnings
Not running due to errors above.
...
Parsing WPFsimple.cobra
Binding use directives
Binding inheritance
Binding interface
Cannot locate CLR type "System.Windows.EffectiveValueEntry".
Skipping duplicate message: error: Cannot find top level namespace "MS" of CLR type "MS.Win32.NativeMethods".
error: Cannot locate nested CLR type "System.Windows.Media.Visual+AncestorChangedEventHandler" (simple name is "AncestorChangedEventHandler").
error: Cannot find top level namespace "MS" of CLR type "MS.Internal.InheritedPropertyChangedEventHandler".
error: Cannot find top level namespace "MS" of CLR type "MS.Win32.NativeMethods".
Compilation failed - 3 errors, 0 warnings
Not running due to errors above.
- Code: Select all
use System.Windows.Media
use System.Windows
class Window1
inherits System.Windows.Window
/#
def setBackgroundOrOnlyBlackWindowOnMyMachine
bmp = WinMedia.Imaging.RenderTargetBitmap(1, 1, 1, 1, WinMedia.PixelFormats.default)
.background = WinMedia.ImageBrush(bmp)
#/
cue init
#.setBackgroundOrOnlyBlackWindowOnMyMachine()
.addChild(System.Windows.Controls.Button())
.title = "WPF Test"
def main is shared
app = Application()
app.run(Window1())