How to remove extra outage of StackPane size?

Viewed 70

Please view the attached image , inside StackPane number "1" , i added an image which called "Icon" , and i changed its Y Position to be at the top of StackPane , but what happened that the extra of Image Icon didn't be hidden automatically although of setting max size to the StackPane ,

so what i want to do is to hide the outage of StackPane , as shown in StackPane number "2" ,

Notice : i made StackPane number "2" using photoshop , to explain what i mean

Thank you ,

enter image description here

1 Answers
Related