Questions tagged [ischecked]

78 questions
0
votes
0 answers

Checked States of a Switch in ListView

I have a custom listview which contains 2 textviews and 1 switch items.When I click switch, nothing happens.Listview onItemClick doesn't catch it, too.I searched the web and ı tried steps below,but nothing happened ,again. 1.I added…
ACrescendo
  • 46
  • 10
0
votes
1 answer

WPF: Binding RadioButton 'IsChecked' to Settings.Default always setting to 'false'

I have been reading up on how to bind the 'IsChecked' property of a RadioButton to a boolean setting in Settings.Default (all in XAML). Now what I want to achieve is that everytime a radiobutton is chcked, the corresponding setting gets updated and…
Cleo
  • 620
  • 2
  • 10
  • 32
0
votes
1 answer

How to check from xaml if any of the checkbox is checked c#

I want to enable button until all fields are filled and I did that but I don't know how to do that with checkboxes. I need at least one of them to be checked and it has to be done from xaml not code behind. If anyone can help I'll appreciate…
xena12
  • 17
  • 9
0
votes
1 answer

In WPF MenuItem, it it possible to use the opposite value of a bool

In WPF, I have two menu items that are mutually opposite (X ticked, then Y unticked and vice versa). Is it possible to use single bool property to bind these two? For example below, I have used !IsX and it is not working!
0
votes
1 answer

Bind IsChecked to boolean of struct wpf

I have the following struct: public struct StreamContainer { public string Name { get; set; } public bool IsVisible { get; set; } public Canvas Canvas { get; set; } } The following private member: private ObservableCollection…
Idanis
  • 1,918
  • 6
  • 38
  • 69
0
votes
1 answer

fire event only from user request

Is the any way to make Checked and Unchecked only fire when button clicked by user? IsChecked is bound to Playing property. This value may change from background (not by user). So it causes Checked and Unchecked events to fire again and conflict…
M.kazem Akhgary
  • 18,645
  • 8
  • 57
  • 118
0
votes
1 answer

Removing and adding values in Array or ArrayList (efficiently) - Android/Java

I'm a bit stuck with an exercise I'm making. I basically have 4 buttons and have to hide one if a checkbox is checked. I don't know why but I just can't figure out how to do this, should I make an arrayList instead of an array and remove/add the…
Axelle
  • 442
  • 1
  • 9
  • 24
0
votes
1 answer

WPF. Changing CheckBox IsChecked through MultiBinding doesn't triger CheckBox Command

I have Datagrid in my WPF app view where I use check boxes in row headers.
0
votes
1 answer

Android Studio - Trying to program an event driven Checkbox click

So here is the following code here is the XML for the checkboxes
0
votes
1 answer

WPF CheckBox IsChecked Binding Issue

I have a binding that isn't working and rather than fixing it the only way I know how I would like to better understand why its not working and what options I have other than the one solution I know. XAML:
Birdbuster
  • 1,499
  • 1
  • 9
  • 13
0
votes
1 answer

CheckBox doesnt reponse to check state (Android Studio)

Lets suppose I have 2 checkbox ("checkbox1" and "checkbox2") and I set: SetChecked(true) For "checkbox1" and : SetChcked(false) for "checkbox2". my purpose is to relate them and switch between the check state when I click on one of them ,(if…
liav bahar
  • 237
  • 3
  • 7
  • 13
0
votes
2 answers

Sharedpreferences doesnt work, checkbox should stay in the same state when I am closing/opening the app

Hey guys I want to make my checkbox stay in the same state every time I open my app.. I get this with the 'ja/nein' string, the string states when i close and open again my application... but my checkbox.setchecked(true/false) doesnt work.. please…
PeterP
  • 3
  • 4
0
votes
1 answer

setting state of windows phone toolkit toggle switch

I'm working on a windows phone 8 application. I want to use toggle switch for some purposes. Sadly windows phone 8 does not have that controller. So i had to install windows phone toolkit nuget package. Now I want to set the state(some thing like…
0
votes
2 answers

Changing textHint of an EditText depending on which radioButton is checked?

I am not sure if it is even possible but if it is I would appreciate your help! I need to change the textHint depending which radioButton is checked Radio Buttons. For example, I want the editText Hint to display "Miles" if the US radioButon is…
0
votes
1 answer

Display Div from certain checkboxes selected JQUERY

$(document).ready(function() { $('#bundlesubmit').click(function() { if ($("#three").is(':checked')) { $("#bundleDropDown1").toggle(); alert ('hey this is the three only one'); } if ($("#two").is(':checked')) { …