Re: [Ironruby-core] Reading files in Dynamic Silverlight

2008-04-06 Thread John Messerly
Ivan Porto Carrero: > I can't work out how I can read external xaml files from Silverlight > with IronRuby. > I've tried to use System::IO::File and StreamReader but both give me a > MethodAccessException. > > How would I accomplish reading a xaml file in the xap with IronRuby > and Silverlight. >

Re: [Ironruby-core] Reading files in Dynamic Silverlight

2008-04-05 Thread Tomas Matousek
put_file_stream("story_details_view.xaml") stream is instance of the Stream class. Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Saturday, April 05, 2008 4:09 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core]

Re: [Ironruby-core] Reading files in Dynamic Silverlight

2008-04-05 Thread John Lam (DLR)
Michael Foord: > In IronPython you just use the ordinary 'file' type to open a file that > is in the 'xap' file as if it was a local resource. You may find that > something similar is available in IronRuby. I added this feature to IronPython to support the Peter Norvig spell check demo that we u

Re: [Ironruby-core] Reading files in Dynamic Silverlight

2008-04-05 Thread Michael Foord
Ivan Porto Carrero wrote: > Hi > > I can't work out how I can read external xaml files from Silverlight > with IronRuby. > I've tried to use System::IO::File and StreamReader but both give me a > MethodAccessException. > > How would I accomplish reading a xaml file in the xap with IronRuby > and

[Ironruby-core] Reading files in Dynamic Silverlight

2008-04-05 Thread Ivan Porto Carrero
Hi I can't work out how I can read external xaml files from Silverlight with IronRuby. I've tried to use System::IO::File and StreamReader but both give me a MethodAccessException. How would I accomplish reading a xaml file in the xap with IronRuby and Silverlight. I would like to create a user