Questions tagged [toggleswitch]

96 questions
13
votes
2 answers

how does visible two models value in one view and update two models value by one controller

I have two Models Group_ones and Group_twos. I show this value in ac_config.ctp file. My controller code is below public function ac_config($id = null) { if (!$id) { $this->Session->setFlash('Please provide a Site id'); …
A.A Noman
  • 5,244
  • 9
  • 24
  • 46
12
votes
1 answer

Toggle switch control in Windows Forms

I am designing a toggle switch control using CheckBox, but currently my control only draws a circle. How can I draw round shapes like the below image and how can I change the location of the circle based on the value of the control to represent…
GOPAL YADAV
  • 1,181
  • 2
  • 9
  • 18
6
votes
2 answers

Explicit "Mode=Twoway" is required for Toggleswitch

Today I update a Windows Store app according to UI design change. One of the changes is replacing a CheckBox with a ToggleSwitch. So the code is updated from
kennyzx
  • 12,845
  • 6
  • 39
  • 83
5
votes
1 answer

How do I add controllers to custom widgets in flutter

I have a parent widget which calls a custom Switch widget that I've made. I need the value of the switch(whether it's ON or OFF) in my parent widget. Can I create a controller in my switch widget which would return that value? Currently, I am…
suma
  • 101
  • 1
  • 4
  • 7
4
votes
2 answers

MahApps.Metro change ToggleSwitch style

I'm testing wpf applications using MahApp.Metro. Somehow I'm not able to change the style of the ToggleSwitch. I just want to change simple properties like foreground or background of the switch. What am I doing wrong? Mainwindow.xaml