locked
How do I do this in Blend visualy? RRS feed

  • Question

  • Hi;

    I want to set the Grid's background with an image, here is the XAML code that I have to write, but How do I the following XAML code in Blend for SL in design mode:

        <Grid x:Name="LayoutRoot"  >
            <Grid.Background>
                <ImageBrush ImageSource="Images/ABC.png"  Stretch="UniformToFill"/>
            </Grid.Background>
        </Grid>

    ..Ben
    Monday, October 6, 2008 3:02 PM

Answers

  • Hi Ben,
                   One way of doing this in Blend is to create an ImageBrushResource (Tools --> MakeBrushResource) for your image and apply this resource to the Background property of Layout. 


    Thanks,
    Navit Saxena
    Thursday, October 9, 2008 10:39 PM

All replies

  • Any answer?
    ..Ben
    Thursday, October 9, 2008 4:30 AM
  • Hi Ben,
                   One way of doing this in Blend is to create an ImageBrushResource (Tools --> MakeBrushResource) for your image and apply this resource to the Background property of Layout. 


    Thanks,
    Navit Saxena
    Thursday, October 9, 2008 10:39 PM
  • Thanks Navit!
    ..Ben
    Saturday, October 18, 2008 4:05 PM