开发者

Scrollbars not appearing when Silverlight app is minimized

开发者 https://www.devze.com 2023-02-12 22:00 出处:网络
In our Silverlight app, when the user minimizes the screen, the right side gets cut off. THis is bad for us because we have 2 grids on right and left side with a pie in the mid开发者_开发问答dle.

In our Silverlight app, when the user minimizes the screen, the right side gets cut off. THis is bad for us because we have 2 grids on right and left side with a pie in the mid开发者_开发问答dle.

How can we make this so that the entire page gets a horizontal and vertical bar in this instance. This also happens with older PC's but mostly the concern is where someone minimizes.


If you want to add scroll bars to your silverlight application, wrap the content in a ScrollViewer. See below for example:

    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
        <Grid>
            <TextBlock Name="SampleTextBlock" Text="This is my content" FontSize="72" />
        </Grid>
    </ScrollViewer>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号