2

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

<!--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>
4

1 回答 1

2

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

详情在这里:

于 2012-07-10T21:22:27.317 回答