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/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to