Declaring User Control in page, Windows Phone 7 - windows-phone-7

How can a user control be added to a page in Windows Phone 7 development?
I have the user control but I can't add it to a page....
Visual Studio doesn't support drag and drop to the canvas and I can't figure out how to declare it manually in the xaml.
Thanks in advance

You mean like:
<phone:PhoneApplicationPage>
<Views:MyUserControl />
</phone:PhoneApplicationPage>

Related

Windows phone 7 Jump List control

I have a question. In a windows phone 7, Will i be able to navigate from the jumplist control to another page. For example i have some data in the jumplist control, and then once i click on one of the data, will i be able to go to another page from there? if it is possible, can someone show me some links for it? sample codes would be helpful
You can use the ListPicker from the Silverlight Toolkit and use the SelectionChanged event.
Tutorial : http://windowsphonegeek.com/articles/listpicker-for-wp7-in-depth
Download the project in this link an enhance by add selected index and page navigating option.
http://www.windowsphonegeek.com/news/developing-a-wp7-jump-list-control
http://www.telerik.com/community/forums/windows-phone/jumplist.aspx?pageid=1

SketchFlow Phone Screen instead of UserControl

Each time I create a new screen (by selecting "Create a connected screen") I get a xaml file which is of type UserControl rather than ChromePage. How can I add new Windows Phone pages? I dont want it to be a UserControl.
When you create a SketchFlow Windows Phone application you are actually working with the desktop version of Silverlight. This is for ease of sharing/review for reviewers of the project. You are not actually creating a Windows Phone application, so the types are for the Desktop Silverlight version.

How to create a screen dialog

I have a screen with a form, in some situations, I want to show a popup style menu. How could I do so without affecting the layout of the form that is behind the popup?
I'd use the InputPrompt from the Coding4Fun Toolkit for Windows Phone 7. You can get details on how to do this in this blog post
A good choice as well is the Telerik option:
Telerik Windows Phone 7 - Window Control

Windows Phone 7 - Silverlight Checkmark color

Can anyone tell me how I can change the color of my checkmark for a checkbox in Silverlight for Windows Phone 7 development?
I see some references on the web for changing a template but that is more for WPF or SilverLight apps, not WP7.
Right now I have a white background on my stackpanel and my background for my checkboxes are black. It would be sweet to make the checkmark white.
Any ideas?
UPDATE:
I should mention that I'm creating these checkboxes in the code behind (via a loop), and I'm using VS 2010 for my phone app development.
The Answer:
Thanks to Mick who lead me down the right path. I had to fiddle with it a little but I used MS Blend to create my own style and then I copied the XAML from there and put that style XAML in the App.xaml in between the tags.
Then I applied it in my code behind like this:
chk.Style = (Style)Application.Current.Resources["CheckBoxStyle1"];
You can access this by retemplating the control in Blend.
Target the check box.
Right click
Edit Template
Edit a Copy
Drill down to the CheckMark path
Change it's colour

Autocomplete textbox in Windows Phone 7

I'm creating my first Windows Phone 7 application, and I'm struggling to find an autocomplete textbox. Is there an easy way to add one to the toolbox? Or do I need to create my own control?
The one from Silverlight 3's SDK, the AutoCompleteBox, works relatively well on the phone. It requires minimal styling changes to work.
There is a known issue today where selecting an item that pops up requires two taps: one to select and another to "really" select. We should have that issue in the platform (the bug is not in AutoCompleteBox) fixed by the time the phone development experience is ready.
AutoCompleteBox is in the Silverlight Tookit so you have to add a reference to that in your project.
After investigating it appears that there's not an auto-complete textbox control for windows phone 7 applications, so I've had to create one myself...

Resources