• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1115
  • Last Modified:

Wrapping items in Wrappanel

Hi All,
I am working with Expression Blend. I am in need of a control which can display the icons(just like the one seen at the right hand bottom side of a Windows Xp screen. For that I have created a Wrappanel with some icons(images) in it. I need to wrap the items of this control whenever I set the Image visibility property to false. I dont wany any spaces existing in between the icons.

thanks in advance,
Yateesh
0
yateesh
Asked:
yateesh
1 Solution
 
TSmoothCommented:
If you have your xaml setup something like below, setting the images visibility to "Visibility.Collapsed" should cause the wrappanel to adjust and there should be no space.
<controls:WrapPanel Width="200" >
            <Image Source="QueryButtonIcon.png" Height="50"></Image>
            <Image Source="QueryButtonIcon.png" Height="50"></Image>
            <Image x:Name="Button3" Source="QueryButtonIcon.png" Height="50"></Image>
            <Image Source="QueryButtonIcon.png" Height="50"></Image>
            <Image Source="QueryButtonIcon.png" Height="50"></Image>
            <Image Source="QueryButtonIcon.png" Height="50"></Image>
        </controls:WrapPanel>

Open in new window

0
 
yateeshAuthor Commented:
Could you please provide the difference between the option Visibility.Collapsed and Visibility.Hidden.?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now