[Ironruby-core] Silverlight B3 - Positioning an element within a Canvas
Eoin Hennessy
lists at ruby-forum.com
Fri Apr 17 12:51:34 EDT 2009
Hi there,
I have a very simple hello-world type IronRuby+Silverlight application
based on the AGDLR samples. It consists of a Canvas containing a single
Rectangle. I am attempting to position the Rectangle within the Canvas
as follows:
layout_root.rect.set_value(Canvas.TopProperty, 0.0)
However, this is leading to the following exception:
MethodAccessException:
System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty,
Double)
MethodAccessException
at System.Reflection.MethodBase.PerformSecurityCheck(Object obj,
RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags)
...
The full trace is at:
http://gist.github.com/97116
What is the preferred method of positioning an element at a Point within
a Canvas?
Thanks.
--
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core
mailing list