<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 超出部分自动隐藏所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)