A way to copy to click board for wp7? [duplicate] - windows-phone-7

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
using Clipboard in WP7 programming
For example you have a long text in a textblock and you want to have a button to automatically copy and paste the large text onto your clipboard so you can paste it in word mobile or some other app. Is there a way to do this?

There is no copy-paste API in windows phone 7 now. Maybe it'll appear in Mango.

The Windows phone team have recently blogged about their work adding clipboard functionality to the next release of the OS. So you'll have to wait until then.

Please see:
using Clipboard in WP7 programming
and
How to paste a text from textbox to some other application without using SIP?

Related

Windows Phone - Tombstoning [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
WP7: Is it possible to intercept the backstack before the journal thumbnail is created/stored
I have an app with personal data that should not be displayed in the task viewer of WP8 when the app is send to background.
My idea was to raise a black page in the Application_Deactivated event, but the UI only seems to update when the app is reactivated again, in the task viewer is still the old UI.
Do you have any ideas/solutions for this problem?
This is not possible. There is no lifecycle event that you can 'hook into' before your application 'screenshot' is obtained for the fast-app switching UI. You are going to have to re-think your application.
However, +1 for actually coming up with a reasonable scenario for wanting to achieve this

Cannot type into Silverlight 5 input fields (Chrome) MacOS

With Silverlight 5, I cannot type anything into the input fields. Using Chrome in MacOS.
Do I have to install a plugin or it is a specific configuration of the browser?
Sadly this is the behavior of textboxes in Silverlight 5 in Chrome on osX. They work fine in Safari, Firefox, etc... but not Chrome.
Officially Silverlight is not supported in Chrome on osX. Silverlight 4 worked fine, but 5 no.
Sorry that this is not the answer you're hoping for.
You can also look at this post:
Silverlight 5 issue on mac
Had the same problem and found a workaround: type the text in some other program, copy and paste it into silverlight. For me it helped to type username and password into Lync Web App, which was enough.
I know this answer it late for original question, but it may help others who hit this thread like I did :-)
Have a nice day!
If you are developing SL5 on Chrome for mac. There is a work around, but it takes a little work. Create a javascirpt function that captures key strokes, disable the default browser behavior for that keystroke and pass the key event to silverlight. If a textfield is in focus, append the keyevent to the textfield.
It is not too hard to program up, but you need to keep in mind that not all keyevents are characters that you want to display. Also, you need to do some bookkeeping in order to place the typed key in the correct location of a text field: as the cursor can move.

How to customize the full page of a listpicker? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
ListPicker FullMode Selected Item Color
I've a long list of things loading from a listpicker, mostly "useless".
Is there the possibility to add a button on top of the full page opened when I click the listpicker (so when I click on it I only show the most useful things?
Thanks a lot!
In order to do that you will have to create a copy of the ListPickerPage.xaml file from the Silverlight for Windows Phone Toolkit in your application, change it to meet your requirements, and then on your ListPicker control set the PickerPageUri proprety to the new ListPickerPage.xaml

How to quit a wp7 app? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Windows Phone 7 close application
I have an app which needs quiting from the MainPage but just using NavigationService.GoBack() won't work when another screen has navigated to that main page as I don't want the ability to go back to that previous page.
Would I have to set a variable in App.xaml.cs called backToBeginning and all the onnavigatedto callbacks will GoBack() if that is set? or is that too messy?
WP7 does not support exiting of apps. Just let the user do it with the back button.
Currently, there is no way to achieve this. What you have described is really needed in the Music+Video hub, but due to inability to to it with the way navigation in WP7 is organized, even Microsoft had to sacrifice the functionality of a very important build-in application.

Years' ComboBox WP7

I'm actually working on a Windows Phone 7 application that contains a few comboBox, in one of them "a years ComboBox".I want to insert a loop in that comboBox that should contain years from 1919 till the present year.How should i proceed?
I would take a look at the Silverlight Toolkit for Windows Phone. It contains a DatePicker bring up a looping/scrolling date/month/year selector, emulating the feel of the native applications. Since the source is available, you could use this as a starting point to create your own "year selector" from the components.
Check out this blog from Telerik on how to accomplish the looping effect. Essentially it is just a list with a virtualized data source.

Resources