Good day,
I have toolkit LongListSelector and i want programatically set the element from existing ones. I have tried by making SelectedItem, but it does not highlight elements from the LongList. Can anyone share how can i do this ?
As Toni Petrina mentioned, try searching in net. Lots of blogs like the followings will help you,
http://code.msdn.microsoft.com/wpapps/Highlight-a-selected-item-30ced444
http://www.getcodesamples.com/src/9A9E24E9
Related
I am a newbee. Trying to add something like a dropdown list of option to one of my views in React Native app. Have been searching everywhere and here as well, but seems like everyone trying different stuff but most of them do not work coz they r out of date or simply wrong. Read something about picker but unsure.
Prefer to have a fully customisable menu that can be positioned and restyled.
Any help is appreciated. Thanks.
So, as a result. I have not found ant decent solution, so just used touchableopacity as 3 different buttons insted of a dropdown list.
Refer the react-native git hub repository, in there you can find you want exactly
https://github.com/facebook/react-native
I don't know how to get the auto complete list of contacts when the user types anything in the textbox. I am not getting any idea for this. I have researched a lot of places but could not achieve anything. I have also added an image for example. Can anyone help me with this?
I would recommend considering AutoSuggestBox control for WP8.X. https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.controls.autosuggestbox.aspx
There's a link for AutoComplete control for WP7:
Auto-Complete list for contact for wp7
And there's how to access contact data from your code:
https://msdn.microsoft.com/en-us/library/windows/apps/hh286416(v=vs.105).aspx
I've got few questions about localization apps in Windows 8.
Is there a way to automatic bind translations to UI element apart from element type? Currently I must provide string with id like "welcomeText.text" for textblock and "welcomeButton.Content" for button. It makes creating files with translations more complicated.
Does Windows 8 has similar solutions to this -> http://developer.android.com/guide/topics/resources/string-resource.html#Plurals ?
Thank you in advance,
Chris
Unfortunately I think the answer to both questions is no.
As for question 1:
If you use the standard way of localizing Windows 8 apps you will have to specify the property, which is not great but understandable; how else would the platform know to what property it should bind? Perhaps I want to bind the Header property instead of the Content property.
There is no way for the platform to determine what I want unless I specify it.
Is it possible to insert a TextBox for the user to input text on top of a MessageBox in Windows Phone 7?
Thanks.
No - it isn't
But the "Input Prompt" in http://coding4fun.codeplex.com/ might help you. See the overview at http://www.windowsphonegeek.com/articles/Coding4Fun-Toolkit-for-WP7-Overview-and-Getting-Started
I've used the "Input Prompt" for a situation similar to this and I had no problems. This should work as suggested by Stuart. Also Stuart is right that this is NOT possible at this time.
You might also want to check out Telerik controls, RadWindow for WP7 to be specific should address the problem nicely. Only thing is that these are commercial so you'll have to purchase a license.
But if you want to create your own from scratch I watched a video, "Creating a Custom Popup", on silverlight.net that can get you started nicely. Basically it gives you the "pop up" and you can add any other controls you need inside of it.
Bear in mind all these solutions can be styled and positioned to "imitate" the look and feel of a messagebox like you wanted. Hope this helps.
This is not possible in native MessageBox. You can try Coding4Fun library as mentioned before.
An alternative solution is the InputPrompt which can be found in Telerik library (you will have to pay for this one though).
I need to grab text items from a listbox in an application. I know for sure that the control is a ListBox. I've seen many tools that could do this, but I cannot remember their names. And I cannot find the right words to google for it. Does anybody know such tool?
You just get hold of the window handle of the list box and send some LB_GETTEXT messages. As far as tools go you might be thinking of Spy.
I couldn't find anything and ended up writing a small C# application using System.Windows.Automation. Just several lines of code.