windows-phone-7

Handling SVG in Windows Phone app

我的梦境 提交于 2020-01-05 07:24:23
问题 I am looking for some resources about that. I have svg kind of map file and I would like to put on it some pushpins. Any tutorials available in this subject? 回答1: Here's a speculative route for you. Use INKSCAPE to convert the SVG to XAML. See if it will then render in Expression Blend. The put your pushpins onto the XAML canvas. Might work.... 来源: https://stackoverflow.com/questions/12092522/handling-svg-in-windows-phone-app

Windows Phone 7 : Parsing website XML into XDocument

风格不统一 提交于 2020-01-05 05:00:15
问题 I seem to be having an issue on WP7 trying to Parse XML from a website. For some reason it never populates call. No errors, the xml looks good, I am specifying the NS, but still nothing. Am I missing something really simple here? 4 hours in and I am banging my head on the desk. My C# skills are 2 months old, so it could be me (probably will be). This is my code that I am using to Parse the received XML from a website... public void ParseCallSignData(object sender,

SecurityException when serializing with DataContractSerializer

柔情痞子 提交于 2020-01-05 04:58:26
问题 I'm trying to serialize the state of my game on Windows Phone 7, and so made a "Save" struct so I could easily convert all the states into an XML doc using DataContractSerializer. The Save() code worked fine when I just serialized each data member of the Gamestate individually. However this led to a multiple xml root error, so I made the "Save" class to act as the sole root. Now I get a security exception whenever I try and call DataContractSerializer.WriteObject() on anything. I've been

Listbox bindind error scrolling

会有一股神秘感。 提交于 2020-01-05 04:41:07
问题 I have a listbox(JumpListBox) with ~500 items. Listbox template is a grid which have two columns - checkbox and image; To reproduce problem: I've checked two items, then I do scrolling, then I can see that checkbox not corresponding to item which was selected. When I do scrolling back to the item I was selected I see that items are not selected, but other items was selected. I recorded a video and you can see a problem. 来源: https://stackoverflow.com/questions/12026890/listbox-bindind-error

Deserialize XML in a WP8 Application

Deadly 提交于 2020-01-05 02:29:28
问题 I'm trying to develop a Windows phone 8 app (I'm new in wp8 dev). I have an XML file that look like this: <?xml version="1.0" ?> <root> <quotes> <quote> <author></author> <text></text> <text></text> <text></text> </quote> </quotes> </root> This is my Quotes class: [XmlRoot("root")] public class Quotes { [XmlArray("quotes")] [XmlArrayItem("quote")] public ObservableCollection<Quote> Collection { get; set; } } This is the quote class: public class Quote { [XmlElement("author")] public string

Using ListPicker and DataBinding

放肆的年华 提交于 2020-01-04 19:42:20
问题 Ok. I give up. I want to use ListPicker control in one of my Windows Phone apps. I am getting an Exception SelectedItem must always be set to a valid value . This is my XAML piece of ListPicker: <toolkit:ListPicker x:Name="CategoryPicker" FullModeItemTemplate="{StaticResource CategoryPickerFullModeItemTemplate}" Margin="12,0,0,0" ItemsSource="{Binding CategoryList}" SelectedItem="{Binding SelectedCategory, Mode=TwoWay}" ExpansionMode="ExpansionAllowed" FullModeHeader="Pick Categories"

Strange behaviour with a lot of data in ListBox and Checkbox [minimal project provided]

孤人 提交于 2020-01-04 13:43:34
问题 For that problem I made a minimal project for everyone to experience this behaviour. I hope it is not just on my engine running like this. minimal project In my project I realized a listbox with a a lot of sample data. The listbox has a checkbox element for each item as well. The problem: First I check/uncheck checkboxes in my listbox. Then I scroll several times through my listbox. Now I notice that a lot of checkboxes get checked/unchecked randomly. If I cut the ListBox a bit down (see

Strange behaviour with a lot of data in ListBox and Checkbox [minimal project provided]

那年仲夏 提交于 2020-01-04 13:43:31
问题 For that problem I made a minimal project for everyone to experience this behaviour. I hope it is not just on my engine running like this. minimal project In my project I realized a listbox with a a lot of sample data. The listbox has a checkbox element for each item as well. The problem: First I check/uncheck checkboxes in my listbox. Then I scroll several times through my listbox. Now I notice that a lot of checkboxes get checked/unchecked randomly. If I cut the ListBox a bit down (see

Multiple Images Selection

左心房为你撑大大i 提交于 2020-01-04 13:26:29
问题 Am making an application in WP7 using Windows Phone SDK 7.1 / C# Am using photo chooser task. But I want to select 9 images and here I can select only one Image. How can I select 9 images at a stretch? Please Help me, here is my code: public partial class MainPage : PhoneApplicationPage { PhotoChooserTask photoChoserTask; // Constructor public MainPage() { InitializeComponent(); photoChoserTask = new PhotoChooserTask(); photoChoserTask.Completed += new EventHandler<PhotoResult>

Display Windows Phone Splash Screen For Longer Period

萝らか妹 提交于 2020-01-04 09:39:47
问题 I was just wondering if there's a way one could display the windows phone splash screen a little while longer. The way it is now (the default) the splash screen displays for something like half a second and then launches into the app. So it's literally just a flash. I understand for user experience a splash screen is something rather pointless but, specs are specs in the business. Thanks for any help! 回答1: The splashscreen is displayed while your application is being loaded, so the time