Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8477093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:21:36+00:00 2026-06-10T18:21:36+00:00

Full source for this issue can be found here: https://github.com/Cheesebaron/MvvmCross.SettingsSample My main concern lies

  • 0

Full source for this issue can be found here: https://github.com/Cheesebaron/MvvmCross.SettingsSample

My main concern lies in the SettingsView, where I try to bind some simple BooleanElements:

this.Root = new RootElement("Settings")
            {
                new Section("Test", string.Format("Choose to see your own location on the map.{0}Choose to allow shake gestures.{0}Choose whether you want to receive notifications.", Environment.NewLine))
                {
                    new BooleanElement("Show my location", ViewModel.ShowMyLocation).Bind(this, "{'Value':{'Path':'ShowMyLocation','Mode':'TwoWay'}}"),
                    new BooleanElement("Shake gestures", ViewModel.ShakeGestures).Bind(this, "{'Value':{'Path':'ShakeGestures','Mode':'TwoWay'}}"),
                    new BooleanElement("Notifications", ViewModel.Notifications).Bind(this, "{'Value':{'Path':'Notifications','Mode':'TwoWay'}}"),
                },
            };

My problem resides in that the bindings only seem to work one way, even though I explicitly specify that it is TwoWay. The two way bindings seem to work fine on WP7 and Android, so I know the view model is ok. But either I am missing some code for the two way bindings or something is wrong or missing in the framework.

This issue is also there if I try with other types of elements like CheckboxElement or StyledStringElement. Also my own made elements…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:21:38+00:00Added an answer on June 10, 2026 at 6:21 pm

    Following the comments above, this feels like this is a few separate problems:

    • the BooleanElement wasn’t correctly linked into MvxTouchDialogBindingSetup.cs – I have hopefully now fixed this – see this commit – https://github.com/slodge/MvvmCross/commit/38e5f08acaffa6ac76d060d104f841f2765d234c – tested with your test project

    • the StyledStringElement may simply need a “kick” to force it to redraw – so we may need to call cell.SetNeedsDisplay() – and maybe also cell.Backbground.SetNeedsDisplay() – I don’t have a test case for this at present.

    • your new cells may need to be linked in using new binding entries in your Setup.cs

    Thanks for reporting these issues – and for following up with a test case. I will see if I can work out how to include some more formal test cases within the mvx repository.


    As a future work item, I’d also quite like to formalise the Value and ValueChanged relationship – I think a general rule can be provided so that all Elements with Value and ValueChanged will support databinding – added as issue https://github.com/slodge/MvvmCross/issues/26.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

you can view full source code here dpaste.com/hold/167199 Error: delete() takes exactly 2 arguments
Edit: You can get the full source here: http://pastebin.com/m26693 Edit again: I added some
I'm using this jQuery Full Calendar: http://arshaw.com/fullcalendar/ According to their documentation, I can load
var _thumb = $('.galleria img[@rel='+_src+']'); Full source here Is it a deprecated selector?
Are there any packages that can take a directory full of source code (Objective-C
If you want more info on the error, the full source can be downloaded
I am trying to load the FULL source code of an HTML website into
I'm trying to use Sharpen in Eclipse to convert a java project (full source)
I want sell some .NET library and I want provide edition with full source
I'm trying to use full calendar to load events from a json source. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.