silverlight

What is LiveMesh Object and its connection with Silverlight 3.0

三世轮回 提交于 2020-01-14 03:36:07
问题 I would like to understand that what is Mesh Object and its conection with silverlight, i am bit aware that it has got some relation with Local storage and then sync with the server data. But i would like to understand it fundamentally so if anyone can provide any link to the article for conceptual understanding or Step by step implementation of LiveMesh in Silverlight 3.0 application. 回答1: Mesh is a syncronisation platform which can be used to sync contacts and files (both objects) across

What is LiveMesh Object and its connection with Silverlight 3.0

孤者浪人 提交于 2020-01-14 03:36:01
问题 I would like to understand that what is Mesh Object and its conection with silverlight, i am bit aware that it has got some relation with Local storage and then sync with the server data. But i would like to understand it fundamentally so if anyone can provide any link to the article for conceptual understanding or Step by step implementation of LiveMesh in Silverlight 3.0 application. 回答1: Mesh is a syncronisation platform which can be used to sync contacts and files (both objects) across

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

Silverlight tests not working unless RDP connection open

会有一股神秘感。 提交于 2020-01-14 03:17:07
问题 I have a few Silverlight UI tests that I'm automating with White. These tests are subsequently run by a TFS build agent, which is running interactively so it can access the desktop. The build passes if I have a Remote Desktop connection open to the build agent as the tests are run; I can see the mouse pointer moving around. When the test clicks on a HyperlinkButton navigation takes place, and is subsequently verified by assertions within the test. The build fails if I do not have a Remote

Using IEditableObject In Silverlight

倖福魔咒の 提交于 2020-01-14 03:11:34
问题 I have a object that implements the IEditableObject interface exposed on a viewmodel bound to a Silverlight page. How/Where do I call the BeginEdit, CancelEdit and EndEdit methods? How can I constrain only objects implementing this interface to my page? I am NOT using DataGrid or DataForm controls. I am using Label, TextBox and DescriptionViewer controls to display the data for editing. 回答1: I know this is an old thread (but for the sake of future use...) I do it this way: whenever the

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

Edit Path Programmatically

我与影子孤独终老i 提交于 2020-01-14 01:59:14
问题 Is it possible to edit a path programmatically? I'm trying to create a userControl which acts as a horizontal meter whose width is dynamic. I have created a path in the xaml and planned on having an int property which controls the width of the meter dynamically. It has rounded edges so I had planned to edit the x coordinates on the right end of the meter to shrink the meter but keep the same rounded corners. I see the Data property on the path but don't understand how I can edit it. Is there

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

Is it possible to dynamically choose which Control to render based on bindable attribute in Silverlight 4?

霸气de小男生 提交于 2020-01-13 19:27:14
问题 I have a ListBox with an ItemTemplate which renders a Grid with two columns. The first column is a TextBlock and the second is a ComboBox. The idea is to present to the user a list of questions and a Combo from which the user can choose an answer. This works ok with this xaml: <ListBox x:Name="QAListBox" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectedIndex="-1" ItemsSource="{Binding Questions}" IsTabStop="True" TabIndex="5" ScrollViewer.HorizontalScrollBarVisibility="Auto" Margin="10