The following code crashes  with a XamlObjectWriterException -  Failed to 
create a 'ImageSource' from the text 'watermark.png'.  Is there a way around 
this?

Using IronPython 2.7.5b2 build.

<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation";
  xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity";
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
  xmlns:sysmedia="clr-namespace:System.Media;assembly=System"

  Title="Test" Height="800" Width="800" Name="Window">

    <TextBlock Height="Auto">
        <TextBlock.Background>
            <ImageBrush Opacity=".25">
                <ImageBrush.ImageSource>watermark.png</ImageBrush.ImageSource>
            </ImageBrush>
        </TextBlock.Background>
    </TextBlock>
</Window>
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to