canvas 超出部分自动隐藏

canvas 超出部分自动隐藏,第1张

概述  <Canvas x:Name="a" Background="White" Loaded="LayoutRoot_Loaded">             <Canvas.Clip>                 <RectangleGeometry RadiusX="5" RadiusY="5" Rect="0,0, 300, 50" />             </Canvas.Cli @H_502_1@   <Canvas x:name="a" Background="White" Loaded="LayoutRoot_Loaded">
            <Canvas.Clip>
                <RectangleGeometry RadiusX="5" RadiusY="5" Rect="0,300,50" />
            </Canvas.Clip>
            <Canvas.Triggers>
                <EventTrigger RoutedEvent="Canvas.Loaded" >
                    <BeginStoryboard>
                        <Storyboard x:name="animation" Storyboard.TargetProperty="(Canvas.left)" RepeatBehavior="Forever" >
                            <DoubleAnimation Storyboard.Targetname="ScrollingText" From="0" To="-820" Duration="0:0:20"  />
                            <DoubleAnimation Storyboard.Targetname="ScrollingText2" From="820" To="0" Duration="0:0:20"  />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Canvas.Triggers>
            <TextBlock x:name="ScrollingText" FontFamily="Comic Sans MS" FontSize="36" Foreground="Green"  Text="I have downloaded the moded bios for the x200 which is revision 3.03. The new 3.05 Bios for x200 add some support for windows 7. " />
            <TextBlock x:name="ScrollingText2" FontFamily="Comic Sans MS" FontSize="36" Foreground="Green" Text="I have downloaded the moded bios for the x200 which is revision 3.03. The new 3.05 Bios for x200 add some support for windows 7. " />
        </Canvas>

启到作用的是canvas.clip

总结

以上是内存溢出为你收集整理的canvas 超出部分自动隐藏全部内容,希望文章能够帮你解决canvas 超出部分自动隐藏所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1022710.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存