question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: Visual Studio xaml editor is not showing color inline preview when using AppThemeBinding in Xamarin

See original GitHub issue

Related link to Xamarin.Forms repo: https://github.com/xamarin/Xamarin.Forms/pull/11012 Themes for Xamarin.Forms enables to fast implementation of dark/light themes.

when using for example:

<Label Text="Xamarin.Forms!" TextColor="{AppThemeBinding Dark=#2196F3, Light=#2196F3}"/>

Summary

Visual studio should display an incline color preview near beside Dark=#2196F3" and Light=#2196F3 the same way it did for something like: <Label TextColor="#2196F3"/>

Rationale

  • Because you are setting a color hex code it make sens to have preview inline for it.

Note: I am not able to report this thru visual studio because of some session issues, if this is not the right place please someone report this as a visual studio issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JeanRocacommented, Feb 10, 2021

Closing as duplicate in Xamarin.Forms repo.

1reaction
LyalinDotComcommented, Feb 4, 2021

@Cfun1 J.P is correct this seems like a Xamarin issue, please be sure to report it in our repo for triage. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio - xaml designer or previewer is not showing
I looked for an answer and I did all the community recommendations but nothing works. I'm start thinking that Xamarin.Forms doesn't have a ......
Read more >
How to turn off "Inline Color Previews in XAML Code Editor"?
You can find it at Tools -> Options -> Text Editor ->XAML -> Miscellaneous -> Preview - Show inline color previews. Thanks,. Lingling.....
Read more >
Drawing UI with Xamarin.Forms Shapes and Paths
Introducing Xamarin.Forms 4.7 powerful new drawing controls for Shapes and Paths which helps you generate custom designs.
Read more >
XAML Live Preview: Capture and edit desktop app UI
To open it, go to Debug > Windows > XAML Live Preview. Screenshot of the XAML Live Preview option from the Debug menu...
Read more >
how to customize colorAccent when changing the theme
I am developing an application under xamarin.forms. I am using AppThemeBinding to apply colors suitable for light or dark theme: App.xaml.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found