visual-studio-2008 - TextBlock 在 Windows Phone 模拟器中消失

标签 visual-studio-2008 windows-phone-7 expression-blend-4

我的应用程序中有文本 block ,一切看起来都很好,它在表达式混合和 Visual Studio 中完全可见(所有文本 block )。问题是当我启动模拟器时。文本 block 在“目标:下背部、腹直肌和腹横肌、斜肌和臀部”之后立即消失。是模拟器的错误,还是有什么问题?我删除了部分文字。

<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot">
    <Grid.Background>
        <ImageBrush ImageSource="/Excercises;component/Images/tlo.png" />
    </Grid.Background>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <!--ContentPanel - place additional content here-->
    <ScrollViewer x:Name="ScrollViewer1" Grid.Row="1" VerticalScrollBarVisibility="Auto">
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" Height="4610">
    <TextBlock HorizontalAlignment="Left" Margin="8,0,0,214" Width="472" Name="TextBlock1" TextWrapping="Wrap" > 
            <LineBreak />
        <Run FontFamily="Segoe WP" FontSize="27" FontWeight="ExtraBlack" TextDecorations="Underline">
           7 Waist-Slimming Ab Exercises
            </Run>
            <LineBreak />
            <LineBreak />            
        <Run Text="Fly up"/>
        <LineBreak/>
        <Run Text="Target: Rectus abdominis"/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="1.Sit on a folded towel on floor, lean back to rest on elbows and place feet together on a wall in front of you so that knees are bent about 90 degrees."/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="2.Extend legs up, keeping feet against wall, then press rounded lower back into floor and squeeze abs as you lift arms to reach toward feet, elbows soft. Make it harder: Press feet into wall as you reach."/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="3. Do 20 pulses: Curl torso up 1 inch, then lower 1 inch."/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="4.Do 3 sets, hugging knees to chest to rest between sets."/>
        <LineBreak/>
        <LineBreak/>
        <LineBreak/>
        <LineBreak/>
        <LineBreak/>
        <LineBreak/>
        <LineBreak/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="Pelvic Scoop"/>
        <LineBreak/>
        <Run Text="Targets: Lower back, rectus and transversus abdominis, obliques, and butt"/>
        <LineBreak/>
        <LineBreak/>
        <Run Text=" 1.Lie faceup on floor with back resting on folded towel, knees bent and feet flat on floor, arms by sides."/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="2.Cross right ankle onto left thigh just above knee so bent right knee points out to side; flex left foot so only heel rests on floor."/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="3. Rounding lower back and squeezing abs, lift hips off floor so pelvis tilts up toward ribs. Curl pelvis as far as you can without arching back; pull abs in to lift rather than press through left heel. Lower to floor."/>
        <LineBreak/>
        <LineBreak/>
        <Run Text="4.Do 10 reps, holding the lift for 10 seconds on the final one. Switch sides and repeat. Do 3 sets."/>

    </TextBlock>
    </Grid>
    </ScrollViewer>
</Grid>

最佳答案

您现在对大量文本采取的方法绝对是您需要重新考虑的。即使使用所有额外的格式,您可能仍希望堆叠标签,或将它们放置在网格的上下文中(如 William 提到的)。

详细信息请参见:

关于visual-studio-2008 - TextBlock 在 Windows Phone 模拟器中消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11421492/

相关文章:

silverlight - 如何在大型项目中重用图标(xaml 路径)?

c# - 将一个 C# 项目编译成另一个

c - recvfrom() 错误 10035 使用非阻塞套接字

c# - 如何在 C# 中生成多维列表<>

c# - 如何播放隔离存储中的音频(流方法除外)?

silverlight - Windows Phone 7 中实现的 Silverlight 版本是多少

wpf - 将 VS2010 项目加载到 Expression Blend 时出现属性无法识别或无法访问错误

visual-studio-2008 - 如何添加法国商标符号 (MD)?

android - 公开不那么 secret 的 oauth key 有哪些风险?有什么解决方法吗?

wpf - 如何在 Expression Blend 中显示带有设计时源的图像