I have a basic Windows Phone List application, with code like this in the MainViewModel class
// CODE THAT WORKS --
Items.Clear();
foreach (var itm in e.Result)
Items.Add(itm);
Count = Items.Count;
// CODE THAT DOES NOT WORK -- I'm trying to understand WHY
Items = e.Result;
The databinding Xaml looks like this:
<DataTemplate...
I'm working on an app that has rows in the following format. I've numbered the rows for clarity. The rows alternate background, so even rows are all one color and odd rows are another. I've it working using a grid containing x number of rows, and within each row i create another grid with two rows and two columns to organize the data. I'...
Hello.
I'm developing a Windows Phone application.
Is there anyway to animate transition between phone pages?
Now, I'm using this to navigate between pages:
NavigationService.Navigate(new Uri("/Views/SelectComponent.xaml", UriKind.Relative));
Thanks.
...
I would like to create application for Windows Phone 7, which will be communicating with desktop application via Bluetooth/Wi-Fi. Is there any API in Silverlight, which allows to use Bluetooth/Wi-Fi programatically?
...
I know Windows Phone 7 requires you to enter you Windows Live Id on startup. Is there a way to get access to information about that account from my Silverlight app installed on the phone?
Thanks,
...
Hi,
I am very new to Windows Phone 7. I am writing a sample game in which I want to move the Image randomly.
While discussing with one of my friend, he told me to use Bezier path. I search in the net to understand Bezier path concept. It looks like it will suit for my solution. But I did not found any sample code which will do this....
I have a rectangle, and I have a storyboard:
<Storyboard x:Key="PressAndHoldColorBar">
<ColorAnimationUsingKeyFrames Duration="0:0:10" FillBehavior="Stop" Storyboard.TargetName="rectWarning" Storyboard.TargetProperty="Fill">
<LinearColorKeyFrame KeyTime="0:0:0" Value="Green" />
<LinearColorKeyFrame KeyTim...
In my windows phone 7 App I have a single line textbox. When the user presses {ENTER} I want to accept the textbox value and switch the textbox back into normal non-edit mode.
Basically, is there a way to programmatically cancel editing a textbox?
I have tried force the Visual State Manager into Normal mode which does change the v...
I want to persist objects into Isolated Storage, so far I could think of these ways:
Serialize them into an xml file when saving and then serialize them back when saving.
Use an Object DB. Doubt abounds about a good or recommended one (Examples are Perst, winphone7db and Sterling DB)
Anyone can suggest some best practices?
...
I'm creating an app on Windows Phone 7 that lets folks read offline HTML content. Is there a way to show an inline browser or HTML viewing control?
...
Is there any possibility to clear cookies generated by WebBrowser control in Silverlight on Windows Phone 7?
...
Hello,
I am currently building an application for Windows Phone 7 which has to play music with the MediaPlayer.
However, I would like to know whether the phone is already playing some music, to ask the user if he want to play also my app's.
How could I get this information?
Thanks.
...
In my windows phone 7 app, I would like a "depressed state" when the item is held on as in the themes, accent color setting for my lists. How can this be accomplished?
...
This is a community wiki list of Windows Phone 7 resources. Feel free to edit/add/etc.
General Information
App hub - central place for windows phone/xbox development tools/tutorials/info
http://www.microsoft.com/windowsmobile/en-us/default.mspx
http://developer.windowsphone.com/
http://windowsteamblog.com/Windows_Phone/
Programming Gui...
Noob question. :)
I'm trying to add Margin to a Header through out my app and dont want to have to manually add that in all my views and I'll need to have various HeaderText. I know i need to add this to the App.xaml and i can get the Margin applied but I can't seem to get the Text to Bind.
My Header Looks like this currently:
...
Hello.
I'm developing a Windows Phone application. I have defined a ListBox.ItemTemplate's DataTemplate as follows:
<ListBox Margin="10,10,8,8" x:Name="ChoicesList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<G...
I have found plenty of tutorials demonstrating InputScope values of email, phone number, name, etc. But nothing that addresses my specific problem.
I want the user to be able to select a value from an enum or a list of strings. I'm trying to imitate the behavior found in the emulator under Settings > region & language, for either the ...
I'm trying the MVVM Light Toolkit. Though I still think having multiple ViewModels for such small apps is overkill, I like the concepts. What I still can't quite understand is how (or I should say "what is the recommended way") to navigate from one page to another when the selection changes in a ListBox.
The big problem with this toolki...
I want to access the Title value that is stored in the WMAppManifest.xml file from my ViewModel code. This is the same application title that is set through the project properties.
Is there a way to access this from code using something like App.Current?
...
I'm developing my first windows phone 7 app, and I've hit a snag. basically it's just reading a json string of events and binding that to a list (using the list app starting point)
public void Load()
{
// form the URI
UriBuilder uri = new UriBuilder("http://mysite.com/events.json");
WebClient proxy = new WebClient();
...