windows-phone

How to go to previous page in windows phone 8 when back button is pressed

血红的双手。 提交于 2019-12-13 06:54:48
问题 I have a home page or landing page in my windows phone c# based app where user enters login details and upon successful login user is redirected to page2 . Here the user will see a list box with few items . Upon selecting an item from this list box a new page called "Threadx" opens.(where x is the each page that opens upon clicking the x item in the list box) While user is on this Thread page "Threadx" he may receive the toast notifications and the thread gets updated with new replies or

AppBar shows half of content

穿精又带淫゛_ 提交于 2019-12-13 06:49:33
问题 I use AppBar for my application and AppBarButtons. But ABB shows only half of title text and rest after opening AB. I want to hide the text completely and show it only in case of opening AB. Problem image <Page.Resources> <Style TargetType="AppBarButton" x:Name="appBar"> <Setter Property="VerticalAlignment" Value="Top"/> <Setter Property="HorizontalAlignment" Value="Right"/> </Style> </Page.Resources> <Page.BottomAppBar> <AppBar IsSticky="True" ClosedDisplayMode="Compact" Background=

Can a mobile app which supports an MDM work on devices which do not run on MDMs

為{幸葍}努か 提交于 2019-12-13 06:29:43
问题 Can a mobile app built with an MDM integration (Mobile Device Management solution i.e. Maas360, Airwatch, etc.), work on some other devices which are not enrolled in that MDM? Does this depend on which MDM in particular? 回答1: Yes, the app can work outside of MDM (unless you use a legacy app-wrapping techniques, not commonly implemented today, e.g. Knox v1 app signing service). Important: while the app will work, the features that rely on MDM need to be coded in such a way so they gracefully

Resize image and change background Color

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 05:52:37
问题 I finish from resizing image but how can I change Background Color (Change black Color)? Like this image: http://i.stack.imgur.com/2Y3xG.jpg BitmapImage img = new BitmapImage(); img.SetSource(e.ChosenPhoto); Image image2 = new Image() { Width=640,Height=640,Visibility=Visibility.Collapsed,Source=img }; WriteableBitmap wb1 = new WriteableBitmap(image2,st); wb1.SaveJpeg(ms1, 640, 640, 0, 100); 回答1: you must place your Image control inside a container control (like a grid) and change the

Windows Phone leave background music playing

ε祈祈猫儿з 提交于 2019-12-13 05:45:28
问题 My Windows Phone app was rejected because when I play a sound in the browser in my app it stops existing background music from playing (rejection issue 6.5.1). How do I update my application to not stop background music? My JavaScript is something like this: var mySound = new Audio(soundpath); Sound.play(mySound); I could not find anything in Microsoft.Xna.Framework.Media that handles how the app handles browser sound, but maybe I missed something? 回答1: What you are looking for is from the

Read proxy settings on WP8

若如初见. 提交于 2019-12-13 05:26:34
问题 Is there any way to read proxy settings for current connections on WP8? The problem is that I'm trying to use https client from Eldos Secure BlackBox but it doesn't seem to use proxy settings defined in system so beeing behind the proxy I can't access any server. Or maybe there is any other approaches? 回答1: Did you try using the WebProxy class? Sample code: WebProxy proxy = (WebProxy) WebRequest.DefaultWebProxy; if (proxy.Address.AbsoluteUri != string.Empty) { Console.WriteLine("Proxy URL: "

Binding between Resources.DataTemplate and ListBox.DataTemplate - Windows Phone

喜夏-厌秋 提交于 2019-12-13 05:08:40
问题 I'm having problems to do a binding in Windows Phone. Hope you can help me. I have the following Data Template in App.xaml: <Application.Resources> <DataTemplate> <TextBox Name="txt1"/> <TextBox Name="txt2"/> </DataTemplate> </Application.Resources> I have a ListBox with the following Data Template: <ListBox> <ListBox.ItemTemplate> <DataTemplate> <TextBox Name="txt1"/> <TextBox Name="txt2"/> </DataTemplate> <ListBox.ItemTemplate> <ListBox> The ListBox receives the following Class in the

Why my ListBox is not displaying any data?

半世苍凉 提交于 2019-12-13 05:08:08
问题 Here is my XAML, in windows phone, I am setting the data using MVVM to the page, but i cannot find any data on the listbox. <ListBox Grid.Row="0" SelectionMode="Single" SelectedItem="{Binding CurrentSelectedEmployee, Mode=TwoWay}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Vertical"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding FirstName}"></TextBlock> <TextBlock Width="5"></TextBlock> <TextBlock Text="{Binding LastName}"></TextBlock> </StackPanel>

Storing and getting data in windows phone app and using NavigationService.GoBack()

陌路散爱 提交于 2019-12-13 05:04:14
问题 I have created a Windows phone app based on a quiz game. I want that when the user give the correct answer for some question then a small tick mark will be permanently on in the tab of the question. I want to store score for every question so that i can display that in a place name as 'your score'. And that score will not be reset even if the app is closed.I have used IsolatedStorageFile to store the data for each page separately. In each page i have provided a back button which will navigate

WP8 Mutex - Resource Locking

回眸只為那壹抹淺笑 提交于 2019-12-13 04:55:22
问题 I'm having issues understanding the Mutex class and how to properly use it in a WP8 application. What I'm attempting to do is allow only a ScheduledAgent or the application to read/write a file to storage at a time. I've tried this various ways with no luck. Any help would be appreciated. ScheduledAgent code: Below code errors out when I call ReleaseMutex(). This issue is fixed when I create the Mutex object like so: new Mutex( true , "FlightPathData"). But then I can never get a lock and