Replies: 14 comments 1 reply
-
@AghaSKhan can you post a screenshot of what you expect and what is actually happening? |
Beta Was this translation helpful? Give feedback.
-
Hi @AghaSKhan. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Beta Was this translation helpful? Give feedback.
-
I have to develop three programs to explain. For some unknown reasons Microsoft removed Transformation with MAUI. First I will upload WorkingWpfClock.zip. |
Beta Was this translation helpful? Give feedback.
-
WorkingWpfClock.zip |
Beta Was this translation helpful? Give feedback.
-
@AghaSKhan is this a bug or more of a missing feature? It looks like WPF has transforms for the brush whereas MAUI doesn't have that implemented. |
Beta Was this translation helpful? Give feedback.
-
Hi @AghaSKhan. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Beta Was this translation helpful? Give feedback.
-
You are correct, Microsoft should add the implementation on brush transformation. It is not a bug if like to see ugly user interfaces. |
Beta Was this translation helpful? Give feedback.
-
It looks like you are setting the Grid's Scale to 2 and expecting the paths to be scaled in their measurements. Unfortunately this is not how scaling works. The clock looks blurry because you are effectively taking something that has paths calculated and rendered at one size, and then scaling up the result instead of scaling the paths themselves. It also doesn't look like we take into account the scale value when we render paths/shapes to scale the actual path itself, which kind of makes sense since something like a polygon could be lossy in doing so. One thing you could do to work around this would be to process the paths yourself and scale them up yourself. |
Beta Was this translation helpful? Give feedback.
-
Hi @Redth: |
Beta Was this translation helpful? Give feedback.
-
AliaOfficeApp.zip |
Beta Was this translation helpful? Give feedback.
-
Hi @Redth: Run any size. No problem. :-) |
Beta Was this translation helpful? Give feedback.
-
Verified this issue with Visual Studio 17.10.0 Preview 3(8.0.3 &8.0.7&8.0.20). Can repro on windows platform with sample project. |
Beta Was this translation helpful? Give feedback.
-
I see a problem with my border. It's meant to be a 1px black stroke but it renders three pixels wide:
If I set the stroke size to something like 10px, it looks black. There seems to be some scaling and anti-aliasing going on. (My scaling is set at 100%) |
Beta Was this translation helpful? Give feedback.
-
This is because WPF applies scaling before rendering. MAUI uses the OS scaling feature, which first renders and then scales. I do not believe that we can fix this via MAUI directly because when you have a view inside another view, we no longer have a way to tell the OS to not scale a view because we already scaled it. One way is to scale the path data yourself, as Jon mentions. I am not sure of any other ways. |
Beta Was this translation helpful? Give feedback.
-
Description
Develop an application, and MAUI produces the wrong Colors.
link.txt
Steps to Reproduce
I have just provide you the sample. Please open the link.
https://surprisinggames-my.sharepoint.com/:f:/p/agha_khan/En2U4cUYrcdPjJOIHrZKiM4BUccSQs8XECC3CQ24MxDKEg?e=6bUoWt
Link to public reproduction project repository
https://surprisinggames-my.sharepoint.com/:f:/p/agha_khan/En2U4cUYrcdPjJOIHrZKiM4BUccSQs8XECC3CQ24MxDKEg?e=6bUoWt
Version with bug
8.0.3
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No work around
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions