windows-phone-8

Authentication failed with Azure Active Directory in Windows Phone

混江龙づ霸主 提交于 2019-12-24 03:25:12
问题 I am follow the window phone authentication tutorial with Add authentication to your Mobile Services app. And I choose using Azure Active Directory way to make authentication. But the question is: it always fails and shows The remote procedure call failed. (Exception from HRESULT: 0x800706BE) at the following code protected override async void OnNavigatedTo(NavigationEventArgs e) { await Authenticate();//here throws System.Exception in mscorlib.ni.dll await RefreshMissionTable(); } And I make

Slow storyboard animation inside LongListSelector

你。 提交于 2019-12-24 03:07:35
问题 I have a LongListSelector which is populated with some items. Each item has a submenu which can be visible or collapsed using a sliding animation. The problem is that the animation is extremely slow depending on which item you tap in the list. At the start and the end it's slow, in the middle it's smooth. I suspect that each animation frame invalidates the longlistselector which means the entire visual tree must update it's layout. I use a datatrigger to start the animation. Because of that I

Windows Phone 8.1 - Menu flyout item click command c#

江枫思渺然 提交于 2019-12-24 03:04:46
问题 I am writing an application for Windows Phone 8.1, and I wanted to use a flyout on listView item. Because I am doing my best to write nice app, I am trying to use MVVM pattern and resource dictionaries with templates insead of all xaml in one page. However, I can't bind my MenuFlyoutItem Command - it seems like it doesn't see the datacontext of the page, or it has some other dataContext. Here is some code: 1) My template in a separate resource dictionary: <Grid Margin="0, 0, 0, 10"> <Grid

Combo box in windows phone 8

早过忘川 提交于 2019-12-24 03:00:38
问题 <ComboBox x:Name="c1" Margin="21,134,228,-184" BorderBrush="{x:Null}" BorderThickness="6" Background="{x:Null}" Foreground="#FFFF0017" /> List<String> source = new List<String>(); c1.ItemsSource = source; c1.SelectedIndex = 0; I can see the items but I can't select them? and I can't scroll??? like when I add more than the size of the combo box, it should appear a scroll? I'm coming from windows store c# and that is the way it is over there. I want it to make it work just as a regular combobox

Convert int[] to byte[] type pointer in C#

你离开我真会死。 提交于 2019-12-24 02:39:11
问题 I require to convert int[] to byte[] pointer. The above is required in order to be able to populate the entries of a WriteableBitmap pixel by pixel as below: //previewBuffer1 is of type byte[] WriteableBitmap wb1 = new WriteableBitmap(nVidWidth, nVidHeight); int k=0; // wb1.Pixels is of type int[] by default byte* data = (byte*) wb1.Pixels; // ****THIS DOESN'T WORK. THROWS ERROR. HOW CAN I ACCOMPLISH THIS*** for (int i=0; i<nVidHeight; i++){ for (int j=0; j<nVidWidth; j++){ byte grayscaleval

Display Current Video in Windows Phone 8 using AudioVideoCaptureDevice?

时光怂恿深爱的人放手 提交于 2019-12-24 02:33:47
问题 I've managed to setup code for a Windows Phone 8 Application that initializes and can start/stop recording video using an AudioVideoCaptureDevice. (saves it to an IRandomAccessStream) //Initialize Camera Recording Windows.Foundation.Size resolution = new Windows.Foundation.Size(640, 480); captureDevice = await AudioVideoCaptureDevice.OpenAsync(CameraSensorLocation.Back, resolution); captureDevice.VideoEncodingFormat = CameraCaptureVideoFormat.H264; captureDevice.AudioEncodingFormat =

How can I design responsive UI in universal windows app

我怕爱的太早我们不能终老 提交于 2019-12-24 02:24:04
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1 For web there is word like responsive UI . to create there is media query to write css . I know css is same as we can create resource with for xaml . I can get resolution form c# and I can create different UI for different

How to make a fixed div in IE10 Mobile?

非 Y 不嫁゛ 提交于 2019-12-24 02:07:09
问题 How do you make a fixed div that works with IE10 Mobile on Windows Phone 8? The code I am currently using is: <div style="position:fixed;width:100%;background-color:blue;"> test </div> This only partially works. When the user scrolls, the div slides back into its original position. It also does not work at all in landscape orientation. Are there any alternative ways to make a fixed div that does not move that are supported on Internet Explorer 10 mobile? 回答1: div { position:fixed; width:100%;

Save scroll position of LongListSelector control in Windows Phone 8

人走茶凉 提交于 2019-12-24 02:04:55
问题 I need to save LongListSelector position in order to restore it once I get back to the page. First I used GetItemsInView with WP7 and it works great. Then with WP8 it was gone and I have to use ItemRealized. It also works fine but I have side effect which that ItemRealized gives me the item which is at the bottom of current page (it could be even not visible yet). But what I need is to scroll to the item at the top of the page. I could subtract manually items which are visible (by calculating

Clang Cross Compiling for Windows Phone ARM target

扶醉桌前 提交于 2019-12-24 01:47:31
问题 I would like to compile a program written in C using Clang for 'Windows Phone' ARM target. Does anyone have experience with it? What is a better approach? 1) Building on a host running Windows 8 using Clang for Windows and MinGW. Does Clang for Windows / MinGW supports ARM by default? If not, I will need to re-build Clang and MinGW? 2) Building on a Linux/MAC host (where ARM target comes as default) and using Windows Phone toolchain (where can I get it?). Thanks in advance! 回答1: There is no