当前位置:网站首页>Xaml gradient issue in uwp for some devices
Xaml gradient issue in uwp for some devices
2022-07-03 05:22:00 【French red wine sweet】
problem :
I'm using Page
as landing screen in my app. I use in my application Page
As login screen .XAML looks like this:XAML It looks like this :
<Grid x:Name="LayoutRoot"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="3*"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="7*"/> </Grid.RowDefinitions> <Rectangle StrokeThickness="0" Fill="#FF79D2F4" Margin="0,0,0,-10" Grid.RowSpan="2"/> <Rectangle StrokeThickness="0" Fill="#FF1F8CC5" Margin="0,-10,0,0" Grid.Row="2" Grid.RowSpan="2"/> <Image Source="ms-appx:///Assets/ViewMedia/Banners/Banner_Light_Big.jpg" Grid.Row="1" Grid.RowSpan="2"/> <Rectangle StrokeThickness="0" Grid.Row="2" Grid.RowSpan="2"> <Rectangle.Fill> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Offset="0"/> <GradientStop Color="#7F000000" Offset="1"/> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> </Grid> <StackPanel MaxWidth="300" Margin="20,35" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"> <Button x:Name="LoginButton" x:Uid="LoginButton" Style="{StaticResource BrandButtonStyle}" Margin="0,5" Click="LoginButton_Click"/> <Button x:Name="RegisterButton" x:Uid="RegisterButton" Style="{StaticResource BrandButtonStyle}" Margin="0,5" Click="RegisterButton_Click"/> </StackPanel></Grid>
I've got 3 devices on which I'm running the app: I have a 3 Devices are running applications :
- Microsoft Lumia 950 XL [ M ] Microsoft Lumia 950 XL [ M ]
- Custom build PC [ PC ] Custom build PC [ PC ]
- Lenovo ThinkPad Tablet 2 [ T ] lenovo ThinkPad The tablet 2 [ T ]
When running the app this page renders well on M and PC but on TGradient
and two Button
s at the bottom are not rendered at all. When running the application , This page is on M and PC Good performance on , But in TGradient
On , Two at the bottom Button
It doesn't appear at all .I don't see them but I can press Button
s and their tap event handlers will strike. I didn't see them , But I can press Button
, Their click event handler will hit .But if I comment Rectangle
with gradient everything is fine on all devices. But if I use gradients to comment Rectangle
, Then everything on all the devices is fine .
This is how the app looks on T when using gradient. This is when the application uses gradients T Upper appearance .No buttons. No buttons .And gradient is also not visible. And the gradient is not visible .
This is how the app looks on T without gradient. This is the application without gradients in T Upper appearance .Buttons are in place. The button is in place .
And this is how it should look running on PC . This is how it should be PC On function .Buttons and gradient are visible. Buttons and gradients are visible .
I don't see any errors in output when running the app. When running the application , I don't see any errors in the output .I don't know why this happens only on specific devices. I don't know why this happens only on specific devices .Maybe this is kind of known issue? Maybe this is a well-known problem ?
UPDATE 1 to update 1
From users feedback, I can say that this bug hits only Atom-powered devices. From user feedback , I can say this bug Only attack Atom Driven devices .But I'm not sure if this is 100% true for all Atom-powered devices. But I'm not sure this is for all Atom Whether the driven equipment 100% real .
UPDATE 2 to update 2
I'd updated T with W10 from Insider Preview Fast Ring. I use Insider Preview Fast Ring Of W10 Updated T.The bug is in place. This bug It's in place .So this is not connected to OS builds. therefore , This is related to OS Construction is irrelevant .
UPDATE 3 to update 3
Switching Button
s Style
back to normal does not solve this. Switch Button
Of Style
Returning to normal will not solve this problem .So Style
is good, it's not the cause.Style
very good , It's not the reason .
Solution :
Reference resources : https://stackoom.com/en/question/2PvGp边栏推荐
- Webrtc M96 release notes (SDP abolishes Plan B and supports opus red redundant coding)
- DEX net 2.0 for crawl detection
- 【实战项目】自主web服务器
- Ueditor, FCKeditor, kindeditor editor vulnerability
- 6.23星期四库作业
- Go practice -- generate and read QR codes in golang (skip2 / go QRcode and boombuilder / barcode)
- Disassembly and installation of Lenovo r7000 graphics card
- 牛客网 JS 分隔符
- Introduction to deep learning (II) -- univariate linear regression
- How to install and configure altaro VM backup for VMware vSphere
猜你喜欢
DEX net 2.0 for crawl detection
[basic grammar] C language uses for loop to print Pentagram
ES7 easy mistakes in index creation
SimpleITK学习笔记
Altaro virtual machine replication failed: "unsupported file type vmgs"
Altaro set grandfather parent child (GFS) archiving
es7创建索引容易犯的错误
Go practice -- design patterns in golang's singleton
Disassembly and installation of Lenovo r7000 graphics card
小学校园IP网络广播-基于校园局域网的小学IP数字广播系统设计
随机推荐
Introduction to rust Foundation (basic type)
Why should we rewrite hashcode when we rewrite the equals method?
BIO、NIO、AIO区别
Gbase8s unique index and non unique index
Yolov5 network structure + code + application details | CSDN creation punch in
Promise
About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
Go practice -- use redis in golang (redis and go redis / redis)
Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN
Interview question -- output the same characters in two character arrays
Go practice -- generate and read QR codes in golang (skip2 / go QRcode and boombuilder / barcode)
Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)
Common methods of JS array
The IntelliJ platform completely disables the log4j component
Detailed explanation of yolov5 training own data set
Webrtc M96 release notes (SDP abolishes Plan B and supports opus red redundant coding)
Use posture of sudo right raising vulnerability in actual combat (cve-2021-3156)
Redis expiration elimination mechanism
Win10 install pytullet and test
The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"