windows-phone-8.1

How to check if an UI Element has reached the top of the page in windows phone

蹲街弑〆低调 提交于 2019-12-24 13:50:26
问题 There is a page which has a scroll viewer and some content which is dynamic in nature. In the middle of the page there is a grid. Whenever the user scrolls the page and grid reaches the top of the page i want a notifier. Basically i want to make the grid sticky on top whenever it reaches top of the page. Is there any way we can achieve this in Windows phone application. I dont want to calculate the offset because the content between top of the page and grid is dynamic. 回答1: This used to be

Xml gets corrupted each time I append a node

风格不统一 提交于 2019-12-24 13:43:10
问题 I have an Xml file as: <?xml version="1.0"?> <hashnotes> <hashtags> <hashtag>#birthday</hashtag> <hashtag>#meeting</hashtag> <hashtag>#anniversary</hashtag> </hashtags> <lastid>0</lastid> <Settings> <Font>Arial</Font> <HashtagColor>red</HashtagColor> <passwordset>0</passwordset> <password></password> </Settings> </hashnotes> I then call a function to add a node in the xml, The function is : public static void CreateNoteNodeInXDocument(XDocument argXmlDoc, string argNoteText) { string lastId=(

List view resets its scroll position on item source change

孤者浪人 提交于 2019-12-24 13:41:28
问题 I am facing a problem in my windows phone 8.1 app where if I am adding an element in the listview's itemsource, the listview resets its scroll position. To explain, if i scroll to bottom of the list view and insert an element to the top of the binded OC, the listview jumps to top automatically. I want it to remain as it is. How to fix this? CODE Code Behind public sealed partial class MainPage : Page { public ObservableCollection<String> Collection = new ObservableCollection<string>();

StreamSocketListener and localhost

匆匆过客 提交于 2019-12-24 13:05:29
问题 I'm using the following code to set up a StreamSocketListener on my universal 8.1 app: _listener = new StreamSocketListener(); _listener.Control.QualityOfService = SocketQualityOfService.Normal; _listener.ConnectionReceived += OnConnectionReceived; await _listener.BindServiceNameAsync("8776"); This runs without any problems, however when I try & browse to http://localhost:8776 (or directly via ip address or machine name), the request times out. In netstat I can see the 8776 port is open &

Register app for a URI association (Windows Phone 8.1 RT)

帅比萌擦擦* 提交于 2019-12-24 11:40:18
问题 Hello i want to create a scheme URI to launch my app from another app. I searched a lot, i found this tutorial URI associations, it shows how to register your app for A URI association but it is for Windows Phone 8. I am developing an app for Windows Phone 8.1 RT and none of the tutorials i found work. At least I'd like to know if it is supported on WP 8.1 RT. 回答1: The term you're looking for is protocol activation . You can have a look at the official Association launching sample. In short:

Windows Phone 8.1 MapIcon Click event

最后都变了- 提交于 2019-12-24 11:34:35
问题 I'm writing a Windows Phone 8.1 app(Windows Runtime version), and I used the MapIcon class to place the icons on the map control. However, I hope these icons can react to the "click" event so that I could show more details after a user has clicked a specific icon. I googled and wasn't able to find an answer. Is it possible, or do I have to create my own class in order to achieve this goal(and how)? It's my first time to develop the Windows Phone 8.1 app, so any suggestions are really

ErrOR 0x80072efd when sending an Http request to rest api on Windows Phone 8.1 Emulator

ぐ巨炮叔叔 提交于 2019-12-24 11:26:26
问题 I'm currently working on a Windows Phone 8.1 app, my first one actually. I would like to send through my emulator windows phone 8.1, a http request to a remote server. So I've used that code: try { mailToCheck.MailProfil = TxtBox_mail.Text.ToString(); string js = JsonConvert.SerializeObject(mailToCheck); HttpClient httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Add("Accept", "Application/JSON"); HttpRequestMessage data = new HttpRequestMessage(HttpMethod.Post, new Uri("url");

How to dismiss a MessageDialog from code in Windows Phone 8.1

◇◆丶佛笑我妖孽 提交于 2019-12-24 10:50:02
问题 How can I dismiss a Message dialog programmatically in Windows Phone 8.1. I created the dialog using showAsync() . If this is not possible which is the best method to create a custom message dialog with the following properties: 1. It can show test and hold buttons for user interaction. 2. It can be dismissed programmatically 3. Should block the view as a Normal MessageDialog do 回答1: Use a ContentDialog rather than a MessageDialog. This will also allow customizing the dialog so you don't need

Return list instead of an item Webservice Phone 8.1 UAP

不想你离开。 提交于 2019-12-24 04:32:47
问题 Ok So I have been asked to create a new question I have got my json now returning fine and into my class of city fine and dandy now using the following structure. But my quesiton is how do i return it as a List so that can be bound to a listview for example my get call is as follows public async Task<City> GetCityListAsync() { var tcs = new TaskCompletionSource<City>(); string jsonresult = await WCFRESTServiceCall("GET", "cinema_city"); var list = await Task.Run(() => jsonresult.Deserialize

Update the reference from Microsoft.Phone.WinJS.2.1, version 1.0.9651.0 to version 1.0.9651.40228

别说谁变了你拦得住时间么 提交于 2019-12-24 03:54:07
问题 I was building/deploying my Windows Phone app in Visual Studio Professional 2013 with Update 3. The following console output showed up: 1>------ Build started: Project: CapturingVideos, Configuration: Debug ARM ------ 2>------ Deploy started: Project: CapturingVideos, Configuration: Debug ARM ------ 2>Deploying to Phone Internal Storage... 2>Creating a new clean layout... 2>Copying files: Total <1 mb to layout... 2>Checking whether required frameworks are installed... 2>Warning : DEP0810 :