[IronPython] Silverlight DataBinding Not Working

Shyam Gopale sgopale at gmail.com
Wed Dec 30 11:07:09 CET 2009


   I am trying out some sample Silverlight code with IronPython and I found
that the data binding does not work properly.
The app.xaml is as below:

<UserControl x:Class="System.Windows.Controls.UserControl"
  <Grid x:Name="layout_root" Background="White">
        <Slider x:Name="sliderFontSize" Margin="3" Minimum="1" Maximum="40"
Value="10" />
        <TextBlock x:Name="lblMessage" Text="Hello World" Margin="5"
FontSize="{Binding ElementName=sliderFontSize,
        <Button x:Name="cmdClickMe" Content="Click Me!" Margin="5"></Button>
This XAML when used in a C# Silverlight app reflects the correct data
binding behaviour but does not work when used with IronPython and Chiron.
Mainly the font size of the text block is not updated.
Does anyone have any idea about this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20091230/424c9b73/attachment.html>

More information about the Ironpython-users mailing list