Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I know this has been asked before in a different question, but there was no response to that (and question was placed on 20th of january).

I have made a silverlight application. I placed some controls and stuff on it... No problems here.
I have made a usercontrol that needs to scroll in to screen, from right to left, when the user hits a button. Easy, right? Use a storyboard... Check! Done! Fixed! Works like a charm.

BUT...(!) as soon as I resize the browser the usercontrol does not start where it is supposed to start.

I would love to add some code to this question, but it's really to big to place here. I hope someone can give me a hint where to look for the solution.

Thanks in advance!
Posted
Comments
#realJSOP 12-Aug-11 9:34am    
What does that mean? Where does it start? What exactly is happening (or not happenign)?

1 solution

Is it possible that at the root of your element you've set a fixed size?

I think you have two options. The first would be to set the Clip property of your root control (I think you have to setup a rectangle for that...should be easy to google).

The other option is to dynamically size the app based on the size of the browser. Here's an example on Stack Overflow[^].

Cheers.
 
Share this answer
 
Comments
Ken Elz 12-Aug-11 10:03am    
humm, I have looked into the two options, but did not figure out how to solve my problem. I think the best way for now is to make a small example, outside my current project, and post the XAML and stuff here. That way we can make it work with code we see. When that works I can use it in the current project. Will post the code soon

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900