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.

Question about ToggleSwitch

See original GitHub issue

0.10 introduces the new ToggleSwitch control but when I tried to define it like this:

        <ToggleSwitch
            Content="Content"
            OffContent="Off"
            OnContent="On" />

I got next result

toggleSwitch

actually, I would expect to see a toggle.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
maxkatz6commented, Jul 10, 2020

@FoggyFinder Check ControlCatalog from master or this new repo https://github.com/AvaloniaUI/XamlControlsGallery to check Fluent theme. Last one uses next includes:

      <StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseDark.xaml"/>
      <StyleInclude Source="avares://Avalonia.Themes.Fluent/Accents/FluentDark.xaml"/>

But I hope with latest nuget preview you don’t need to include Default theme at all. @danwalmsley

0reactions
FoggyFindercommented, Jul 10, 2020

Last one uses next includes:

Thank you. This finally works 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Newest 'toggle-switch' Questions
Is there anything that prevents Xi from creating a dynasty like the Kim dynasty in North Korea? Why is it impossible to connect...
Read more >
50 Toggle Switch Multiple Choice Questions with Answers
1). What is a toggle switch? · 2). What is the purpose of a toggle switch? · 3). What is the difference between...
Read more >
Newest 'toggleswitch' Questions
Hi I'm trying to implement Toggle Switch in MCQ Quiz App. But the text overflow is ellipsis. I have tried customTextStyles but no...
Read more >
Toggle-Switch Guidelines
Avoid asking questions and write for scannability. The toggle labels should describe what the control will do when the switch is on; they...
Read more >
Toggle Switch Question - General Discussion
Hopefully a simple question this morning. I have created a toggle switch that runs a namedQuery to update a db with a simple...
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