02-05-2014 07:26 PM - edited 02-05-2014 07:29 PM
I cant find property to make button pressed all the time. I want to use buttons as a toggle, when I press it I want it to stay pressed until I tell it to depress.
Solved! Go to Solution.
02-05-2014 07:33 PM
Probably you would be better off using ToggleButton or ImageToggleButton...
02-05-2014 10:39 PM
I thought of ImageToggleButton but its extra work. I wish I could just do button.state = ButtonState.Pressed or something like that
02-06-2014 05:08 AM
A little extra work maybe, but if you've read my posts on here before you'll see I always advise against changing the way standard controls behave, usually quickly followed up by one of the BlackBerry advisers backing that up.
So a little extra work for you but for the user no surprises.
02-06-2014 05:19 AM
02-06-2014 03:30 PM
I am here to back up BBSJDev
Toggle buttons are probably the right choice for you here. Normal buttons don't stay pressed on our platform.
02-06-2014 03:45 PM - edited 02-06-2014 03:45 PM
I am working on a scenario where I want user to compare two fields and indicate his desire to select one in a most easy way.
Natural way is to present two fields one next to another (above another in this case) and have the user tap on one. Since the action does not confirm right away I want the button to remain pressed indicating user selection until user confirm the action via Actionitem.
Thats why having button stick to selected state would be helpful.
ToggleButton does not work well in this case.
I will look into creating custom image naps for IageToggleButton but as I said its more work.
Thanks everyone though - as always helpful pointint to the right direction.