开发者

Windows Phone Scrolling Chat Viewer

开发者 https://www.devze.com 2023-03-21 06:52 出处:网络
I have a combined silverlight xna project in which I am rendering a tile based background. Over that, I want to be able to render a scrollable chat window. I tried adding the following:

I have a combined silverlight xna project in which I am rendering a tile based background. Over that, I want to be able to render a scrollable chat window. I tried adding the following:

    <ScrollViewer Grid.Row="1" Height="48开发者_如何学运维0" HorizontalAlignment="Left" 
                  Name="scrollViewer1" VerticalAlignment="Top" Width="263" 
                  BorderBrush="Black" Background="#8CFFFFFF" FontFamily="Comic Sans MS" 
                  Foreground="Black" BorderThickness="2" AllowDrop="False">
        <TextBlock Text="Lots and Lots of text..." TextWrapping="Wrap" FontSize="16" />
    </ScrollViewer>

When I run the app, the scrolling is laggy. I am not sure why this is, but I assume it has something to with running at the same time as the xna. Any ideas as to why this is happening? Is there a better solution?


Maybe Cache="BitmapCache" helps you

0

精彩评论

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