windows-phone-7

How to query with the datetime value using LINQ to XML?

时光毁灭记忆、已成空白 提交于 2020-01-14 03:18:07
问题 I am developing window phone 7 application in silverlight. I am new to the silverlight. I am also new to LINQ to XML. In my application the user select the date & submit some transaction details into the application. The details gets stored in XML File. I am using the custom date control in my application for the date selection as follows private void DatePicker_ValueChanged(object sender, DateTimeValueChangedEventArgs e) { AppObj = Application.Current as App; AppObj.date = (DateTime

Working of Background Agents in wp7

痴心易碎 提交于 2020-01-14 02:33:04
问题 I had a plenty of doubts regarding background agents in windows phone mango. From a post i read about the background agent but i am still confused with the working of background agents. I tried with MSDN but feel difficult to grasp the abstract. Please any one suggest me a good blog or book to start learning the tech. 回答1: I prefer Peter Torr's bog for start learning background agent, In his blog he explained all information related with B.A with a simple example. If possible watch the

Efficiently convert audio bytes - byte[] to short[]

折月煮酒 提交于 2020-01-14 00:34:26
问题 I'm trying to use the XNA microphone to capture audio and pass it to an API I have that analyses the data for display purposes. However, the API requires the audio data in an array of 16 bit integers. So my question is fairly straight forward; what's the most efficient way to convert the byte array into a short array? private void _microphone_BufferReady(object sender, System.EventArgs e) { _microphone.GetData(_buffer); short[] shorts; //Convert and pass the 16 bit samples ProcessData(shorts)

One Model Entity, Multiple Pages -> Multiple Views? Multiple ViewModels?

 ̄綄美尐妖づ 提交于 2020-01-13 19:27:29
问题 Due to limited screen real estate I will be capturing user input for a single entity using multiple pages (displayed consecutively - think wizard). In my model I expect it is correct to model this entity as a single class. In an MVVM implementation I am assuming it is best MVVM practice to consider each page as a seperate View. Is this correct? Is there a consensus on the best MVVM practice for whether each Page has it's own ViewModel or should there be one ViewModel instance that is

Windows Phone 7 - Available WCF bindings

余生颓废 提交于 2020-01-13 17:07:09
问题 I've been looking for documentation on the WCF Bindings supported by WP7 for a while and can't seem to find it. Can someone post a link to any documentation available they find. If it's from Microsoft (MSDN) even better. Thanks... 回答1: Search is your friend, even on MSDN ;) UPDATE: Bing is also a good search tool. First result for +wp7 +wcf +supported +bindings gives this article: What is not supported in WCF for Windows Phone? 回答2: I failed at finding a list on MSDN, so I just went through

Windows Phone 7 - Available WCF bindings

半腔热情 提交于 2020-01-13 17:06:38
问题 I've been looking for documentation on the WCF Bindings supported by WP7 for a while and can't seem to find it. Can someone post a link to any documentation available they find. If it's from Microsoft (MSDN) even better. Thanks... 回答1: Search is your friend, even on MSDN ;) UPDATE: Bing is also a good search tool. First result for +wp7 +wcf +supported +bindings gives this article: What is not supported in WCF for Windows Phone? 回答2: I failed at finding a list on MSDN, so I just went through

MvvmCross Dynamic Text Value Conversion

≡放荡痞女 提交于 2020-01-13 17:06:14
问题 As far as I know, MvvmCross localization plugin provides "static" engine. I use the following binding as an example from Conference: local:MvxBind="{'Text'{'Path':'TextSource','Converter':'Language','ConverterParameter':'SQLBitsXApp'}}" I want to be able to change SQLBitsXApp to SQLBitsXApp2 dynamically. The goal is to find the localized text related to days enum. Is there a way to do this dynamically ? 回答1: You're correct - the default MvxLanguageConverter used in that binding is really

How can I handle an event when pressed Start button (Windows Phone)

我怕爱的太早我们不能终老 提交于 2020-01-13 12:07:54
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated

How can I handle an event when pressed Start button (Windows Phone)

寵の児 提交于 2020-01-13 12:07:52
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated

How can I handle an event when pressed Start button (Windows Phone)

ぐ巨炮叔叔 提交于 2020-01-13 12:07:22
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated