Posts

Showing posts with the label xaml

IronPython and Silverlight in Turkish

A Turkish blogger named Ibrahim Kivanc, a Microsoft student partner, has posted a series of blog entries showing off some really cool things with IronPython and Silverlight. Unfortunately (for me) the blog is in Turkish, but several of the entries have code to download. I'm listing the entries here in the order he posted them: IronPython Silverlight MultiScaleImage One of the coolest things about Silverlight is its deep zoom technology that allows web applications to zoom in and pan across large, multi-resolution images. This functionality is accessed through the MultiScaleImage class. This blog entry has XAML and IronPython code for using the MultiScaleImage from IronPython. Türkçe Chiron Chiron is the tool for developing Silverlight applications with dynamic languages. It is a server that packages apps on the fly and enables you to develop on your local filesystem: edit the Python, refresh the browser and see you changes immediately. IronPython Silverlight Animasyonlar (animati...

A Good Mix 17: MUD, the Python for .NET that never was, Intellisense for IronPython, SciPy and Silverlight

Yet another selection of articles and projects on IronPython and the Dynamic Language Runtime from around the web. chiroptera This is the gitorious project page for a C# project: Chiroptera is a MUD client written in C# and uses IronPython as a scripting language. It runs on Windows and on Linux. Windows version has a graphical user interface. Linux version has a text interface with 256 color support. Charming Python: Inside JPython and Python for .NET Back way in the past, before 1.0, there was a previous Microsoft project to bring Python to the .NET framework. Unfortunately .NET pre-1.0 wasn't a good platform for dynamic languages and the project was never released. This article (from December 2000) is an interview with Mark Hammond who was the programmer on the project. Mark Hammond is familiar to most Python programmers because of his excellent development of the PythonWin environment and the PythonCOM extensions. And for the same reasons that we look up to Mark, Microsoft als...

Using IronPython for Converters in Silverlight

Another blog entry from David Seruyange on using IronPython with Silverlight, and another example of using IronPython for binding dynamic types in WPF . Using IronPython for Converters in Silverlight The concept is a really nice one but I’m not wild about having to write a class that implements the IValueConverter interface every time I need some ad-hoc tweaking of the values I get from being data bound and how I’d like to use them within XAML. What set me off this track was a case where I simply needed to invert a boolean – what should just be “ not myvalue ” ended up requiring a class, an interface, and so on. Dynamic languages excel at this sort of thing and since they support the ability to evaluate code on the fly I thought it would make sense to write a single implementation of IValueConverter and host Python inside of it to evaluate binding expressions that are passed in. No magic, just instantiate the Python runtime and then proceed to leverage it in the Convert phase by taki...

An IronPython on Silverlight Collection

A collection of links about using IronPython with Silverlight, the Microsoft ' flash killer ' browser plugin. DLR + IronPython + Silverlight in 5 Steps (with pictures) A post by the MetaDeveloper to get you started developing Silverlight applications with IronPython and the Silverlight Dynamic Languages SDK . It includes the development process using Chiron. State of the DLR for Silverlight Whilst we're talking about the Dynamic Languages SDK for Silverlight, it's time for a word from the guy responsible for maintaining it: Jimmy Schementi. This is a long post that describes the SDK and answers some Frequently Asked Questions on the subject. The post starts with: It would seem the next release will be focused around REPLs, testing, scripting support, and maybe some server-side integration pieces. And you’d be right. Proof is in the project’s public source code repository. And ends with: I hope that made some things clear; the DLR, IronRuby, and IronPython are committed ...

Dynamic Script Control Update

XAML is an XML markup for describing user interfaces, used in both Windows Presentation Foundation and Silverlight. XAML elements correspond to classes in the UI libraries with element attributes corresponding to properties - meaning there is a direct relationship between XAML describing a UI and the object tree it generates when loaded (and code you could write to create the same UI). When using a .NET language like C# and VB.NET you can declare new assemblies to be used as namespaces to locate classes used in the XAML - you can define new controls and use their names as XAML elements. Because dynamic languages don't have static assemblies for the XAML Loader to pull classes out of, you can't currently define new controls in IronPython or IronRuby and then use them in XAML. Ivan Porto Carrero (who is also the author of IronRuby in Action ) has created a new project called Dynamic Script Control. It has a static target, so it can be used in XAML, but lets you dynamically initia...

Introductory Articles on IronPython and XAML

Davy Mitchell has been working on a series of articles on using XAML (for Windows Presentation Foundation user interfaces) with IronPython. So far three of his articles are up: Part One Part Two Part Three