当前位置:网站首页>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边栏推荐
- 在PyCharm中配置使用Anaconda环境
- [set theory] relational power operation (relational power operation | examples of relational power operation | properties of relational power operation)
- JS string and array methods
- 大学校园IP网络广播-厂家基于校园局域网的大学校园IP广播方案设计指南
- Class loading mechanism (detailed explanation of the whole process)
- 獲取並監控遠程服務器日志
- 配置xml文件的dtd
- DEX net 2.0 for crawl detection
- How to install and configure altaro VM backup for VMware vSphere
- Webapidom get page elements
猜你喜欢

Altaro virtual machine replication failed: "unsupported file type vmgs"
![[practical project] autonomous web server](/img/99/892e600b7203c63bad02adb683c8f2.png)
[practical project] autonomous web server

DEX net 2.0 for crawl detection

XML配置文件

leetcode452. Detonate the balloon with the minimum number of arrows

Altaro o365 total backup subscription plan

About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller

音频焦点系列:手写一个demo理解音频焦点与AudioMananger

Why should we rewrite hashcode when we rewrite the equals method?

【实战项目】自主web服务器
随机推荐
Talk about how to use p6spy for SQL monitoring
Basic introduction of redis and explanation of eight types and transactions
Yolov5 model construction source code details | CSDN creation punch in
JS function algorithm interview case
Webrtc M96 release notes (SDP abolishes Plan B and supports opus red redundant coding)
About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
聊聊如何利用p6spy进行sql监控
Altaro o365 total backup subscription plan
(subplots用法)matplotlib如何绘制多个子图(轴域)
mysql启动报错:The server quit without updating PID file几种解决办法
Obtenir et surveiller les journaux du serveur distant
酒店公共广播背景音乐-基于互联网+的酒店IP网络广播系统设计
Pessimistic lock and optimistic lock of multithreading
cookie session jwt
Go practice -- generate and read QR codes in golang (skip2 / go QRcode and boombuilder / barcode)
Introduction to deep learning (II) -- univariate linear regression
Robot capture experiment demonstration video
Training method of grasping angle in grasping detection
Go practice - gorilla / handlers used by gorilla web Toolkit
C language program ideas and several commonly used filters