当前位置:网站首页>uwp ScrollViewer content out of panel when set the long width
uwp ScrollViewer content out of panel when set the long width
2022-08-04 19:56:00 【林德熙】
I find a ununderstandable behavior in UWP. I make a content with a long width in ScrollViewer and the content will out of the panel.
I write a xaml with a ScrollViewer and a Grid. And than I set a content to ScrollViewer and the content is a long width Grid.
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<ScrollViewer HorizontalScrollBarVisibility="Visible">
<Grid Width="2100000">
<TextBlock Margin="10,10,10,10"
Text="asdasdasdasdasdasdasdasdasdaasdasdasdasdasdasdasdasdasdasdasdasdasdasdaasdasdasdasdasdasdasdasdasdasdasdasdasdasdaasdasdasdasdasdasdasdasdasdasdasdasdasd" />
</Grid>
</ScrollViewer>
<Grid Grid.Column="1" Background="#aa565656" />
</Grid>Running the code, and the TextBlock will out of the Grid.
After I set the Grid width to 2000000 that work well.
Do not ask why I can find it. I wrote a code await "lindexi is doubi"; and my friend pressed my head to the Keyboard. My head pressed the 0 key and set the Grid width. I ran the code and I was surprised to see it.
Code https://github.com/lindexi/lindexi_gd/tree/550373c7ee587980a7ecd56e2c03aa40c6972416/TucasurchasGeldiskaycasoohou
边栏推荐
猜你喜欢

Use "green computing" technology to promote sustainable development of computing power

The book "The Essence of Alipay Experience Design", a record of knowledge related to testing

使用 Allatori 进行 Jar 包混淆

笔记本WIFI无法上网(无Internet访问权限)

Regular expression is incomplete

阿里的arthas使用,入门报错:Unable to attach to 32-bit process running under WOW64

七夕福利!中奖名单:书籍免费送!
![[Sql brush topic] Query information data--Day1](/img/a7/67b59bd41803dfc07ecb8f00669c29.png)
[Sql brush topic] Query information data--Day1

正畸MIA微种植体支抗技术中国10周年交流会在沈举办

C#移动OA办公系统源码(基于微信企业号)
随机推荐
Spark提交参数说明和常见优化
The difference between Client Side Cache and Server Side Cache
JS new一个构造器发生了什么?从零手写一个new方法
如何找到某个 ABAP structure 某字段的源头来自哪个数据库表
ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators
数据安全解决方案的发展
正畸MIA微种植体支抗技术中国10周年交流会在沈举办
Defaced Fingerprint Recovery and Identification
If it is test axi dma catch a few words here
致-.-- -..- -
Embrace the Cmake child is simple and practical, but inflexible
【ASP.NET Core】 中间件
性能测试流程
How to use the Chrome DevTools performance tab
really time ntp service start command
[Awards for Essays] Autumn recruitment special training to create your exclusive product experience
Go study notes (Part 1) Configuring the Go development environment
Client Side Cache 和 Server Side Cache 的区别
The book "The Essence of Alipay Experience Design", a record of knowledge related to testing
IIC驱动OLED