windows-phone

Windows Phone 8.1 - Handle WebView vertical scroll by outer ScrollViewer element

风格不统一 提交于 2019-12-18 14:09:24
问题 Problem I have to show a WebView inside a ScrollViewer in Windows Phone 8.1 application, with the following requirements: WebView height should be adjusted based on its content. WebView vertical scroll should be handled by an outer ScrollViewer . WebView should handle horizontal scroll, scale (pinch-zoom), text selection (with the default copy button) and links navigation. On the picture below is my mocked layout (to the left) and the best example of similar functionality - that would be a

Web for mobile devices - best practices for ASP.NET [closed]

左心房为你撑大大i 提交于 2019-12-18 12:43:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Starting to build web applications for mobile devices (any phone). What would be the best approach using ASP.NET 3.5/ASP.NET 4.0 and C#? UPDATE (feb2010) Any news using windows mobile 7? 回答1: It depends if you really want to support every cell phone or only high end or new phone

Show view from non-view/viewmodel in mvvmcross

不问归期 提交于 2019-12-18 12:24:30
问题 What is the correct way to open a View in mvvmcross from a non-view? From within a viewmodel we would use ShowViewModel<>(..). Specifically we are responding to a push notification opening the app (with a custom payload) which dictates a view that should be loaded. We have a hackety workaround just for proof of concept, just wanted to get an idea of the correct MVX approach 回答1: I don't think there is a 'correct way' - I think it depends on your app and what you need it to do. For some

WriteableBitmap Memory Leak?

青春壹個敷衍的年華 提交于 2019-12-18 12:12:52
问题 i am using the code below to create a live tile, based on an UI element. It renders the uiElement on a WriteableBitmap , saves the bitmap + returns the filename. This method is run in a windows phone background task agent an i am running into memory limits. private string CreateLiveTileImage(Canvas uiElement, int width, int heigth) { var wbmp = new WriteableBitmap(width, heigth); try { wbmp.Render(uiElement, null); wbmp.Invalidate(); var tileImageName = _liveTileStoreLocation; using (var

How to get checked checkbox content in windows phone app?

南笙酒味 提交于 2019-12-18 09:28:52
问题 I am developing windows phone app .In app,I want to put multiple check box.I able to put multiple check box.But when i checked on check box i want getting its content(check box content).For that i am use checked event and also click event but i cant get result as i want.My xaml code is as below: <ListBox Name="hobbylist" ItemsSource="{Binding}" Margin="0,0,10,10" > <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox Name="hobbycheck" Content="{Binding Path

Binding data in LongListSelector

自作多情 提交于 2019-12-18 07:24:23
问题 I am referring to the example here : http://dotnet.dzone.com/articles/using-longlistselector-control Here is my code : public class Chapters { private string mainTitle; public string MainTitle { get { return mainTitle; } set { mainTitle = value; } } private List<string> subTitle; public List<string> SubTitle { get { return subTitle; } set { subTitle = value; } } } private static IEnumerable<HighwayCode> GetCityList() { return myList; // Which already contains data: MainTitle : Chapters

How do I update the parent viewmodel when child viewmodel is updated

杀马特。学长 韩版系。学妹 提交于 2019-12-18 05:22:47
问题 In my first view model (renamed to MainViewModel) I have a list of ActionViewModels. In my xaml i have a listbox which is bound to the list, in the listbox i have a template which binds to properties from the ActionViewModel. So far so good and everything works. When selecting one of the listitems i navigate to an ActionViewModel and pass the id with it. The ActionViewModel retrieves information from a static list in memory from which the MainViewModel also retrieved the information to create

Facebook Login for Windows Phone 8.1

浪子不回头ぞ 提交于 2019-12-18 04:17:16
问题 I am trying to figure out a simple code for logging in facebook from a Windows Phone 8.1 app (C#). As the Facebook Client from NuGet doesn't target Windows Phone 8.1, it seems I'd have to write some extra code. As I read in this facebook post , I'd need to launch an Uri to invoke the Login Dialog. That much, I managed to do : await Launcher.LaunchUriAsync(FacebookUri.DisplayLoginDialog); where DisplayLoginDialog is a static string object with the required necessary data on the request (appId,

Facebook Login for Windows Phone 8.1

对着背影说爱祢 提交于 2019-12-18 04:17:03
问题 I am trying to figure out a simple code for logging in facebook from a Windows Phone 8.1 app (C#). As the Facebook Client from NuGet doesn't target Windows Phone 8.1, it seems I'd have to write some extra code. As I read in this facebook post , I'd need to launch an Uri to invoke the Login Dialog. That much, I managed to do : await Launcher.LaunchUriAsync(FacebookUri.DisplayLoginDialog); where DisplayLoginDialog is a static string object with the required necessary data on the request (appId,

simply stop an async method

家住魔仙堡 提交于 2019-12-18 04:00:33
问题 I have this method which plays a sound, when the user taps on the screen, & I want it to stop playing it when the user taps the screen again. But the problem is "DoSomething()" method doesn't stop, it keeps going till it finishes. bool keepdoing = true; private async void ScreenTap(object sender, System.Windows.Input.GestureEventArgs e) { keepdoing = !keepdoing; if (!playing) { DoSomething(); } } private async void DoSomething() { playing = true; for (int i = 0; keepdoing ; count++) { await