Help with Checkbox

shkshaka

New member
Nov 4, 2013
37
0
0
Visit site
Hi everyone!

You guys have been helping me alot and all your tips are excellent... Thanks for that <3 luv ya all :p

Right now I'm facing something that I'd like to know if someone have any idea about how I can proceede... As said before, I'm not pro and I launched my two first apps on the store a few weeks ago...

I was looking for something like it:
wp_ss_20141202_0001.jpg

wp_ss_20141202_0002[1].jpg

I achieved it by this way...

wp_ss_20141202_0002.jpg
I press the Check Button (v)
then:
wp_ss_20141202_0003.jpg

Thanks in advance :grin:
 

loverusham

New member
Aug 21, 2014
88
0
0
Visit site
Can u please give a description of the problem. From the photos I am not able to figure out what your problem is and how you expect the solution ? :smile: Thanks.
 

shkshaka

New member
Nov 4, 2013
37
0
0
Visit site
in the first pick, i pressed the left side of the document and it makes it able to select (check) the checkbox... like we have it on the messaging app and most of apps... I tried but couldn't do this :(
the only way I could was as I show in the last pic. I made a button where I press it and it makes possible use the checkbox... But I'd like to implement the first thing I said :p

Thanks in advance and if still having any doubts, just lemme know
 

loverusham

New member
Aug 21, 2014
88
0
0
Visit site
sorry for the late reply, saw it just now. According to your problem the simplest solution would be to name the checkbox and just use isChecked property check if its selected or not when you call your final function.for example like

checkbox 1 for item 1;
checkbox 2 for item 2;

print selection( )
{
if (checkbox1.isChecked)
Debug.wirteLine("Selected");
if(checkbox2.isChecked)
Debug.writeLine("Selected"):
}


I hope this solves your problem. tell me if you have any problems. happy to help :smile:
 

1101x10

New member
May 27, 2012
181
0
0
Visit site
I think what you want to do is have your documents (I'm guessing they are UserControls) detect a tap on the left side and then fire an event. In your main page you would have an event listener that then displays the checkbox's.
 

Catholic Tech Geek

New member
Feb 2, 2012
130
0
0
Visit site
First, you didn't mention what kind of control (that uses ItemsControl) you are using. If you want the same effect as the picture shows, you should be using a ListView control. The SelectionMode of ListView should start out as "single". Next, what they probably do is have a little rectangle (which happens to be the same color as the background) as part of the DataTemplate for the ItemsTemplate property of ListView. When that rectangle is tapped, the code in the event handler for the Tapped event toggles the Selection Mode from "single" to "multiple". The check boxes to select multiple items are part of when the SelectionMode is set to "multiple". No action besides setting the selection mode to "multiple" is needed on your end. If you notice, there is usually a button in the app bar that does the same thing as the rectangle in order to give the user the hint that they can press the button to enable them to select multiple items in the list.
 

shkshaka

New member
Nov 4, 2013
37
0
0
Visit site
thank you all. what Catholic Tech Geek said is what I want. Didn't know how to manage it... But you have any idea on how to change the collor after pressed? like the first print?
 

Members online

Forum statistics

Threads
326,862
Messages
2,248,987
Members
428,546
Latest member
andraeca