c#,.net,windows-runtime,windows-phone-8.1,winrt-xaml-toolkit
Based on the symptoms - most likely a network issue or nuget/vs bug caused a problem with file missing from the package. It always helps to try to reproduce a problem....
I've been tinkering with the solution and I finally found a way to do that. I think the problem is that I didn't understand how ScrollViewer does work. I took the scrolling height as UIElement height hoping for SizeChanged to be fired what isn't truth. ScrollViewer wasn't changing its size...
c#,.net,windows-phone-8.1,storagefolder
You're not copying your file to the local storage. Put your json file under the Assets folder, make sure that it's properties says "Content" and "Copy Always" On the first launch you should read the json from the package var filename = "Assets/BazaDanych.json"; var sFile = await StorageFile.GetFileFromPathAsync(filename); var fileStream...
c#,.net,navigation,windows-phone-8.1
You are missing a reference for the 'Click'-event handler. Please change your XAML to this: <HyperlinkButton x:Name="but_elf" Content="Elfy" HorizontalAlignment="Center" Margin="100,125,100,255" Grid.Row="1" VerticalAlignment="Center" Width="200" Height="70" Click="but_elf_Click" /> Please see: C# Documentation for Click on MSDN C# Documentation for HyperlinkButton on MSDN...
c#,bluetooth,windows-phone-8.1,bluetooth-lowenergy,ibeacon
While I have not tried it yet, there a developer has built an HCI layer to talk directly to bluetooth dongles on pre-Windows 10 machines. It is available here: WinBeacon This will only work on desktop machines, and not with mobile phones. If you are interested in mobile phones with...
Try this. Add the following jus after </ListView.ItemTemplate> <ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style> </ListView.ItemContainerStyle> ...
windows-phone-8,windows-phone-8.1,guidelines
It's the difference between Windows Phone Silverlight and Windows Phone Runtime app scaling. Silverlight apps always scale to 480 virtual pixels wide. Runtime apps scale based on pixel density at specific plateaus (multiples of 20% for Windows Phone 8.1 and of 25% for Windows 10). The 12 pixel guidelines you...
Gridview works fine in Windows Phone apps. Here is code from one of my apps in the app store. You need to set the size of the outer most 'Grid' of the DataTemplate. You won't be able to get the grids to fit the screen exactly unless you do some...
c#,multithreading,networking,windows-runtime,windows-phone-8.1
If you want to run a something on a thread in intervals (also on thread other than UI one), you may use System.Threading.Timer. A sample can look like this: System.Threading.Timer myTimer = new System.Threading.Timer(async (state) => { if (UserLoggedIn) await Task.Delay(1000); }, null, 0, 5 * 1000); Note that if...
c#,audio,windows-phone-8.1,memorystream
Here how I did it - just create a new SoundEffectInstance object and set it to the return value of SoundEffect.CreateInstance. https://msdn.microsoft.com/en-us/library/dd940203.aspx SoundEffect mySoundPlay = new SoundEffect(mStrm.ToArray(), 16000,AudioChannels.Mono); SoundEffectInstance instance = mySoundPlay.CreateInstance(); instance.IsLooped = true; instance.Play(); ...
windows-phone-8.1,text-to-speech,system.windows.media
Look at MSDN, it is only supported in 8.1 XAML apps, not in 8.1 Silverlight apps.
c#,windows-runtime,windows-phone-8.1
In the comments you say that _downloadClient.GetDataAsync isn't async and the interface method isn't either. Two options: Make the interface method return Task. Put the synchronous download on the thread-pool: await Task.Run(() => _downloadClient.GetDataAsync(uri));. This is a quick fix. If there are few downloads running at the same time then...
You have to update your tile's content through notifications. You will have to query your database and transform the response as an XML template that can be rendered by the tile. Here is a link to the documentation: Quickstart: Sending a tile update (XAML). Note that you will have to...
windows-phone-8.1,controltemplate,togglebutton
It is very simple just add key name to your style e.g <Style TargetType="ToggleButton" x:Key="MytoggleButton"> Now for the toggle button you want to implement this style just reference the key. <ToggleButton Style="{StaticResource MytoggleButton}" ...> ...
c#,image,windows-phone,windows-phone-8.1,isolatedstorage
Don't forget to change 'imagefile' path and fileContent variable. private async void SaveFile() { try { StorageFolder folder = ApplicationData.Current.LocalFolder; if(folder != null) { StorageFile file = await folder.CreateFileAsync("imagefile", CreationCollisionOption.ReplaceExisting); byte[] fileContnet = null; // This is where you set your content as byteArray Stream fileStream = await file.OpenStreamForWriteAsync(); fileStream.Write(fileContent,...
c#,wpf,canvas,windows-runtime,windows-phone-8.1
It seems you have two Canvas classes in different namespaces. I guess the Windows.UI.Xaml.Controls namespace is not in your using so the code is assuming gotqn.Canvas. Did you declare your own Canvas class? If yes, you may have to specify the full name of the Canvas class you want string...
windows-phone-8.1,audio-streaming,microphone
You can't pass data through a 3.5mm jack, in smartphones, it is made for sound output, and its only use is sound+mic with compatible headset... Use bluetooth instead ..
The maps for Windows Phone 8.1 are built into the WP8.1 SDK. No need to add any nuget for WP. You can find them under the Windows.UI.Xaml.Controls.Maps namespace. Below are some links for ref: http://www.c-sharpcorner.com/UploadFile/020f8f/windows-phone-8-1-map-control/ http://www.jayway.com/2014/04/18/windows-phone-8-1-for-developers-maps/ You can add map in xaml using "using:Windows.UI.Xaml.Controls.Maps" namespace and then from code behind...
c#,.net,xaml,windows-phone-8.1
A simple fix would be to set IsFullWindow="True" in your media element property in XAML with this the media element would play in full screen no matter the orientation.(Though its always going to be in landscape mode). You can also set the media element property IsFullWindow as true using C#...
authentication,windows-phone-8.1,single-sign-on
No way to do this. You have to use a WebView embedded into your app.
c#,windows-phone-8.1,windows-universal,type-parameter
The only way to make a call like that is to use reflection. The <T> is supposed to be known at compile time, but in your case it isn't, therefore you cannot do it like that. Such APIs often come with an overload that takes a Type directly though. Check...
c#,windows-phone-8,windows-phone-8.1
Have you tried to add the pivot like this? <Controls:Pivot> </Controls:Pivot> ...
c#,wpf,xaml,silverlight,windows-phone-8.1
I would solve this problem using Reactive Extensions (RX). You can add Reactive Extensions (RX) to your project using NuGet, search for rx-main and install Reactive Extensions - Main Library. Both of your pages would access a common class which would have a Subject<T>. One page would publish events to...
c#,windows-phone-8.1,windows-8.1,windows-universal
I think you need to create a textblock in code and assign the desired text to it. Then you can get the actual height and width from it. See the below code TextBlock txt=new TextBlock(); //set additional properties of textblock here . Such as font size,font family, width etc. txt.Text...
c#,.net,windows-runtime,windows-phone-8.1,winrt-xaml-toolkit
Rotating the labels is possible. It requires a few steps, and unfortunately, due to a missing feature in WinRT XAML layout, a custom class potentially. The core idea is found here. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Charting:Chart x:Name="ColumnChart" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="50" Title="100 random numbers"> <Charting:ColumnSeries Title="Skills" x:Name="theColumnSeries" IndependentValuePath="Name" DependentValuePath="Pts"...
The DataTable class is not included in the .NET subset which is supported by Windows Phone 8.1. Compare the 'Version information' at the bottom of this page with the version information of e.g. String (here).
c#,windows-runtime,windows-store-apps,windows-phone-8.1,windows-8.1
It is unclear what "SomeRandomKey" is in your example, and what you are trying to achieve with it. But this exception is thrown because TextBlocks don't have a SomeRandomKey property. They have Text, Width, but definitely not "SomeRandomKey". Just remove it.
c#,windows,visual-studio,windows-phone,windows-phone-8.1
AudioVideoCaptureDevice is available for use in Windows Phone Silverlight 8.1 Apps. You created Windows Phone 8.1 Store App which uses WinRT API. Your main two options are: Create new project and use Windows Phone Silverlight 8.1 Leave your project as it is but use MediaCapture class of Windows.Media.Capture namespace instead...
I fixed the problem myself by adding an event handler using AddHandler and using Frame.Navigate to go back to the first page. I added this code: Sub New() AddHandler HardwareButtons.BackPressed, AddressOf BackPressed End Sub Sub BackPressed(sender As Object, e As BackPressedEventArgs) e.Handled = True Frame.Navigate(GetType(BasicPage1)) End Sub ...
c#,xaml,windows-phone,windows-phone-8.1
Your best bet would be describing to Windows.Current.SizeChanged event and testing if width is more than height. There is also a sensor for this, but is is a bit problematic, take a look at http://www.jayway.com/2014/10/06/detecting-orientation-in-universal-apps-windows-phone-8-1/. .xaml <ContentDialog x:Class="App1.ContentDialog1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App1"...
xaml,c#-4.0,windows-phone-8,windows-phone-8.1
You should have some options. If it's just at the instance, you can just plop your content in as TextBlock so something like; <Button> <Button.Content> <TextBlock Text="Blah Blah Blah" TextTrimming="WordEllipsis"/> </Button.Content> </Button> Or if you make a custom style template for Button you could replace the ContentPresenter in it with...
windows-phone-8.1,single-sign-on,adal
ADAL on Windows Phone does not use a WebView. It uses the WebAuthenticationBroker (WAB), a system API specifically designed to keep the cookie jar used during authentication isolated form the app itself. That prevents apps from using cookies to silently access protected resources without the user knowledge, while at the...
In Windows phone-RT Popup class is member of "Windows.UI.Xaml.Controls.Primitives" namespace. you can define Popup in xaml as below: <Popup x:Name="ppup" IsOpen="False" Grid.Row="2" > <StackPanel Background="Blue" Height="100" Width="400"> <TextBlock Text="This is Pop up control of Xaml" FontSize="20" FontWeight="Bold"> </TextBlock> </StackPanel> </Popup> and in code behind you can set IsOpen property to...
c#,android,ios,windows-phone-8.1,windows-universal
You can't. There is not such thing that converts one os native app into other os nativ app. You can write for example in phonegap to support many os with same code, but this is other approach. I think if you manage to write such a system that can covert...
c#,windows-phone-8,windows-phone,windows-phone-8.1,toast
There is no way around this. Windows Phone 8.12 supports only the toastText02 template. This template displays the app's logo along with two strings on the same line, with the first string bold. See the toast template catalog for details and an example image....
c#,windows-runtime,windows-phone,windows-phone-8.1
There's no workaround for this feature AFAIK but Gapless Audio support is coming with upcoming Windows 10.
c#,windows-phone-8.1,windows-universal
You need to specify app launch parameters like: IXmlNode toastNode = toastXml.SelectSingleNode("/toast"); ((XmlElement)toastNode).SetAttribute("launch", "{\"type\":\"toast\",\"param1\":\"12345\",\"param2\":\"67890\"}"); Then in app's onlaunched event, navigate to mainpage with the parameter you get as below: rootFrame.Navigate(typeof(MainPage), args.Arguments); ...
If I understand right your question, you set Name property not in the right place. You should set it for AppBarButton element, not for SymbolIcon. I think your code should work after this changes. CommandBar x:Name="mybar" ClosedDisplayMode="Minimal" > <CommandBar.SecondaryCommands> <AppBarButton Label="setting" Click="AppBarButton_Click"/> </CommandBar.SecondaryCommands> <AppBarButton x:Uid="CALENDAR" x:Name="btnCalendar" Label="calendar" Click="AppBarButton_Click"> <AppBarButton.Icon> <SymbolIcon...
c#,.net,windows-phone-8.1,automapper,mvvmcross
Is this happening while debugging? If so, you're likely showing all exceptions, instead of just uncaught exceptions. Switch to uncaught-exceptions and you should be good. The 4.0 release of stupid AutoMapper is moving away from platform-specific extension assemblies and instead is doing compiler directives to compile into a single assembly...
windows-phone,windows-phone-8.1,windows-phone-store
So, the answer for today is: do not create ad units in DevCenter. Because they don't work. As a workaround I have created a new app in pubCenter with a new ad unit and then used their IDs in my app. And that works.
c#,navigation,windows-phone-8.1
I think you should be able to do it by using Frame.ForwardStack property which holds forward navigation history. A short sample which should work: protected override void OnNavigatedTo(NavigationEventArgs e) { var lastPage = Frame.ForwardStack.LastOrDefault(); if (lastPage != null && lastPage.SourcePageType.Equals(typeof(desiredPage))) { /* do something */ } } ...
c#,serialization,windows-runtime,windows-phone-8.1
You must serialize/deserialize the list yourself, for example: string Serialize(List<string> list) { StringBuilder result = new StringBuilder(); foreach (string s in list) { result.AppendFormat("{0}{1}", result.Length > 0 ? "," : "", s); } return result.ToString(); } List<string> Deserialize(string s) { return new List<string>(s.Split(',')); } If your strings might contain commas,...
date,datepicker,windows-phone-8.1,format
The DatePicker format is using user's preferred language and region. This control will automatically look different, for my region it's day/month/year like you wish it to be. I've tried to force the control to use other language, but it seems to be taking it directly from phone settings. Some information...
c#,linq,windows-phone,windows-phone-8.1
I think you can do something like this: ((PivotItem)MainPagePivot.Items[index]).Content = StatusGridObject; Of course, thanks to linq you can also use something like .Where() or .Any() on MainPagePivot.Items example with linq: ((PivotItem)MainPagePivot.Items.First(p => p.Name == "PivotItemFour")).Content = StatusGridObject; Let me know if it works! ...
audio,windows-phone-8.1,memorystream
I got the solution for the problem: do the following before calling CopyTo() mStrmStartDelimiter.Position = 0; mStrmEndDelimiter.Position = 0; ...
c#,file,windows-phone-8,windows-phone,windows-phone-8.1
There is a capability for writing to the Documents folder on the phone, but adding it to your manifest would cause your app to fail the certification process in the Windows Phone Store. The capability is called documentsLibrary <Capability Name="documentsLibrary" /> If you declare it, you can then read and...
c#,asynchronous,windows-phone-8.1,win-universal-app
Try something similar to the code given below in your OnNavigatedTo event. ShowProgress=true; downloadFiles().ContinueWith((sender) => { this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => ShowProgress=false; ); }); You need to run the ShowProgress=False; in UI thread...
c#,xaml,windows-phone-8,windows-phone-8.1,winrt-xaml
Using Converters You can achieve this In xaml <TextBlock x:Name="TB" Text="Text"/> <TextBox Visibility="{Binding ElementName=TB,Path=Text,Converter={StaticResource StringToVisibilityConverter}}"/> And Corresponding converter in c# code is public class StringToVisibilityConverter: IValueConverter { #region IValueConverter Members public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return string.IsNullOrEmpty((string)value)?Visibility.Collapsed:Visibility.Visible; }...
One quick way is to subscribe to the ImageFailed event: <Image Source="{Binding Picture}" ImageFailed="ImageFailed" /> Then, in the event handler, change the Source property to your local picture: private void ImageFailed(object sender, ExceptionRoutedEventArgs e) { ((Image)sender).Source = new BitmapImage(new Uri("ms-appx:///Assets/WideLogo.scale-240.png")); } ...
c#,xaml,user-controls,windows-phone-8.1,facebook-c#-sdk
Use the following page: http://facebooksdk.net/docs/windows/config/ And configure your app. Since v1.0.0 of the sdk we use the config files....
c#,.net,xaml,mvvm,windows-phone-8.1
At one point I needed to do the same thing and I just used a converter, that returned a named resource: public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value is bool && (bool)value) { return App.Current.Resources["ComplexProductTypeTemplate"]; } return App.Current.Resources["SimpleProductTypeTemplate"]; } I guess it could work...
windows-phone-8,layout,windows-phone-8.1
Updating suggestion here: you can use Grid Layout. Create a Grid in XAML and define Rowdefinition and ColumnDefinition dynamically in code behind and append to grid. If your xaml has Grid with name "grid" then in code behind you can rows and column like this. You can use loop for...
wpf,xaml,binding,windows-phone-8.1
The problem is the use of DataContext. Your MainPage has a DataContext : DataContext="{Binding Main, Source={StaticResource Locator}}" LoadingView also has a DataContext So, when you write this code : You try to find Test2 as a field in the DataContext of the LoadingView because you're in the same View. To...
windows-phone-8.1,winrt-xaml,windows-8.1
ResolutionScale is deprecated; always use RawPixelsPerViewPixel for Windows Phone and for Windows 10 Universal apps. Unfortunately, Windows 8.1 (released before Phone 8.1) still uses ResolutionScale so you need to continue using that property for Windows 8.1 apps. If you are building a Windows 8.1 / Windows Phone 8.1 Universal app...
c#,windows-phone-8.1,win-universal-app
I needed that also in a recent project! Best solution I found was using the MultiSelectListView from the QKitlibrary! It's up on codedplex here : https://qkit.codeplex.com/ Description of the control: While the built in ListView control supports multiple selection, the animation to display the CheckBoxes are not pleasant or accurate...
c#,windows-runtime,windows-phone-8.1,winrt-xaml
This line really works: Windows.Storage.ApplicationData.Current.LocalSettings.Values["key"] = value; The problem is when you're trying to call it via binding in XAML as a property. Then you may have problem with it. Just avoid it, and call this method in code behind explicite....
c#,windows-phone-8,cookies,windows-phone-8.1,webbrowser-control
The following should work for clearing the cookies for a specific URI: Windows.Web.Http.Filters.HttpBaseProtocolFilter myFilter = new Windows.Web.Http.Filters.HttpBaseProtocolFilter(); var cookieManager = myFilter.CookieManager; HttpCookieCollection myCookieJar = cookieManager.GetCookies(new Uri("target URI for WebView")); foreach (HttpCookie cookie in myCookieJar) { cookieManager.DeleteCookie(cookie); } ...
android,push-notification,windows-phone-8.1
You cannot use GCM on another platform, windows has their own Push notification API
fonts,windows-runtime,windows-store-apps,windows-phone-8.1,font-size
Sure, XAML text elements support the property IsTextScaleFactorEnabled which is set to true by default. If you want your elements no to be affected by the ease of access settings simply set that property to false: <TextBlock Text="Looking fresh" IsTextScaleFactorEnabled="False" /> You can read more here: https://msdn.microsoft.com/en-us/library/windows/apps/hh868163.aspx...
For some the issue was resolved by following the below: Disconnected the Phone from the USB. Then went to 'Control Panel->Hardware and Sound->Devices' and Removed Device. Then connected the Phone to the USB.
c#,asynchronous,mvvm,windows-phone-8.1
made my viewmodel to use factory method I'm normally a fan of that approach - it's my favorite way to work around the "no async constructors" limitation. However, it doesn't work well in the MVVM pattern. This is because VMs are your UI, logically speaking. And when a user...
c#,windows-phone-7,windows-phone-8,windows-phone-8.1
If the app has a registered URI, then you should be able to use Launcher.LaunchUriAsync for this. You can also find some help, here at MSDN - How to launch the default app for a URI. Otherwise I don't think it's possible....
The best way I found is to create DataTemplate like this: public class ViewSection : HubSection { public ViewSection(View view) { string xaml = "<DataTemplate xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'><StackPanel /></DataTemplate>"; ContentTemplate = XamlReader.Load(xaml) as DataTemplate; this.Loaded += ViewSection_Loaded; } private void ViewSection_Loaded(object sender, RoutedEventArgs e) { base.OnApplyTemplate(); StackPanel stackPanel = findStackPanelInSubtree(this); ... <...
c#,.net,windows-runtime,windows-phone-8.1,winrt-xaml-toolkit
Perhaps you're missing this in your code behind... using WinRTXamlToolkit.Controls.DataVisualization.Charting; Try moving your cursor to ColumnSeries and press Alt+Shift+F10 to add the missing namespace. Or simply use Alt+Enter if you have ReSharper (which I recommend)....
xaml,windows-phone-8.1,togglebutton
Please change your XAML to this: <Grid> <ToggleButton x:Name="TogBtn" HorizontalAlignment="Center" VerticalAlignment="Center" Checked="ToggleButton_Checked" Unchecked="ToggleButton_Unchecked"> <SymbolIcon Symbol="Play"></SymbolIcon> </ToggleButton> </Grid> And please add this to your .cs file: private void ToggleButton_Checked(object sender, RoutedEventArgs e) { TogBtn.Content = new SymbolIcon(Symbol.Stop); } private void ToggleButton_Unchecked(object sender, RoutedEventArgs e) { TogBtn.Content = new...
c#,windows-runtime,windows-phone-8.1,windows-8.1
You need to cast _contentFrame, not _contentFrame.Content. var _frame = contentframe as Frame; ...
c#,windows-runtime,windows-phone-8.1
You can't do that according to the docs: https://msdn.microsoft.com/en-us/library/ms742868.aspx?f=255&MSPPError=-2147217396 "Animate in a ControlTemplate" You can't use dynamic resource references or data binding expressions to set Storyboard or animation property values. That's because everything inside a ControlTemplate must be thread-safe, and the timing system must Freeze Storyboard objects to make them...
c#,xaml,windows-phone-8.1,win-universal-app
You need to yield control to the UI thread to give it a chance to display the progress indicator. One convenient way to do that is to use the async/await keywords: protected override async void OnKeyDown(KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter && (xaml_search_box.FocusState == Windows.UI.Xaml.FocusState.Pointer || xaml_search_box.FocusState == Windows.UI.Xaml.FocusState.Keyboard))...
cordova,windows-phone,windows-phone-8.1,visual-studio-cordova,windows-phone-store
people have problems using vs2015 after manually upgrade cordova to 5.0.0. that means yours is not the only problem with 5.0.0. I believe it's better to wait until officially upgrade. try the original version 4.3.0...
c#,json,windows-phone-8.1,json.net
It looks like your API returns a List<RootObject>, not a single RootObject. This worked for me: string json = reader.ReadToEnd(); var root = JsonConvert.DeserializeObject<List<RootObject>>(json); var articles = root.Select(m => new Article { Name = m.title, ImagePath = m.images.poster, id = m._id, Year = m.year }); ...
c#,xaml,listview,windows-phone-8.1
You want to change the orientation. <ItemsWrapGrid MaximumRowsOrColumns="2" Orientation="Horizontal"></ItemsWrapGrid> ItemsWrapGrid.Orientation property ...
c#,.net,windows-phone-8.1,async-await
I suspect that further up your call stack, your code is calling Task<T>.Result or Task.Wait. This will deadlock your application. The appropriate solution is to replace all calls to Result or Wait with await. More info in my MSDN article on async best practices or my blog post that deals...
I found a solution that works! var imageBytes = Convert.FromBase64String(base64String); using (InMemoryRandomAccessStream ms = new InMemoryRandomAccessStream()) { using (DataWriter writer = new DataWriter(ms.GetOutputStreamAt(0))) { writer.WriteBytes((byte[])imageBytes); writer.StoreAsync().GetResults(); } var image = new BitmapImage(); image.SetSource(ms); } Found the solution here: Load, show, convert image from byte array (database) in Windows Phone 8.1...
c#,xaml,windows-phone-8,windows-phone-8.1,visualstatemanager
You can write converter to hide/show stackpanel public class BooleanToVisibilityConvertor: IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { if(value!=null) { if (!string.IsNullOrEmpty(value.ToString())) { return Visibility.Visible; } } return Visibility.Collapsed; } public object ConvertBack(object value, Type targetType, object parameter, string language) { throw new NotImplementedException(); }...
windows-phone-8,deployment,windows-phone-8.1,enterprise
The link you have shared describes steps to distribute app internally. For deployment of company apps developer unlocked phone is not required. Once company app is ready for deployment, you need to install .aetx file which is generated form the code signing certificate. .aetx file can be shared to users...
c#,xaml,windows-phone-8,windows-phone-8.1,windows-phone-7.1
You can't give an absolute Uri to AppBar Images , AppBarButtons just don't work that way. What might work is you can download your image , save it to local storage and read as image from there.Don't forget that your images need to follow sizing formats. You can get some...
c#,windows,windows-phone,windows-phone-8.1,globalization
In hebrew we use the same numbers as in english. However, hebrew letters can indicate numbers. For א that is 1, ב is 2 and so on. But after you reach י which is 10, the next letter is כ, but it stands for 20. So 11 would be י"א....
c#,xaml,windows-phone-8.1,bing-maps
You have to remember that earth isn't flat :) Maps use always some projection to draw earth to 2D map. Because of this your points don't seem to be in right places. Bing maps uses Mercator projection. You can find more information about Bings mapping system from here. There is...
c#,windows-phone-8.1,windows-8.1,windows-universal
You may achieve this using following code string value = @"Lorem Ipsum is <b>simply dummy</b> text of the printing and <b>typesetting industry</b>"; var parts = Regex.Split(value, @"(<b>[\s\S]+?<\/b>)").Where(l => l != string.Empty).ToArray(); ...
c#,windows-phone-8,windows-7,windows-phone-8.1,json-deserialization
public class Invoice { public string TF { get; set; } public string BF { get; set; } public string MD { get; set; } public string EFM { get; set; } public string ATT { get; set; } public string FPK { get; set; } } public class Example...
c#,windows-runtime,windows-phone-8.1,background-process,background-task
On Windows Phone periodic background tasks are executed at an interval of a minimum of 30 minutes. Windows has a built-in timer that runs background tasks in 15-minute intervals. Note that on Windows Phone, the interval is 30 minutes. (Source: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977059.aspx?f=255&MSPPError=-2147217396) If I were you I'd change the time interval...
javascript,html,windows-phone-8.1,winjs
Do you init appBar variable properly? It's not defined in your code snippet. Try this way, at least it works in my app. <script> (function(){ var appBar = document.getElementById("appBar"); if(appBar.winControl) { appBar.winControl.disabled = true; } }()); </script> Also don't forget that WinJS.UI.processAll runs asynchronously, so your script can't just be...
crash,windows-phone-8.1,out-of-memory,crash-reports,crash-dumps
I've been told by a Microsoft Technical rep that it is a bad dump and you can not retrieve any additional information on it. He pointed me to the following: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d74cc413-3c4b-4a92-9c42-058bc41f503f/wp81-cant-identify-the-reason-for-crash-baddumpmissingteb?forum=winappswithcsharp...
Have you checked out Telerik or Syncfusion? They both offer calendar controls that are customizable. http://www.telerik.com/windows-universal-ui http://www.syncfusion.com/products/windows-phone/calendar...
Set build action of images to content, use proper tags for your Uri, remove Relative URI. var uriString = bk1 ? @"ms-appx:/Assets/image1.png" : @"ms-appx:/Assets/image2.png"; k1.Background = new ImageBrush { ImageSource = new BitmapImage(new Uri(uriString)) }; ...
c#,json,download,windows-phone-8.1,httpwebrequest
Take a look at HttpClient. This works perfectly on WP8.1. using (HttpClient client = new HttpClient()) { using (HttpResponseMessage response = await client.GetAsync(uri, cancel)) { using (Stream stream = response.Content.ReadAsStreamAsync().Result) { using (StreamReader reader = new StreamReader(stream)) { return new JsonSerializer().Deserialize<T>(new JsonTextReader(reader)); } } } } ...
c#,xaml,slider,windows-phone-8.1,mediaelement
You are setting things up in the wrong order. Try changing it to this: if (listVmItem != null) { var file2 = await _finalStorageFolder.GetFileAsync(listVmItem.FileName); var stream = (await file2.OpenReadAsync()).AsStream().AsRandomAccessStream(); AudioPlayer.MediaOpened += AudioPlayer_MediaOpened; AudioPlayer.CurrentStateChanged += AudioPlayer_CurrentStateChanged; AudioPlayer.SetSource(stream, file2.ContentType); AudioPlayer.Play(); } and move these calls to the MediaOpened handler: TimeSpan recordingTime =...
c#,c++,opengl-es,windows-phone-8.1
You can use ANGLE to run your OpenGL ES code on Windows Phone 8.1. See the Build session ANGLE: Running OpenGL ES 2.0 Graphics Code on Windows for more details and the MSOpenTech ANGLE wiki for sample code and tutorials....
c#,windows-runtime,windows-phone-8.1,win-universal-app
Sadly, there isn't one in Phone 8.1, see here: CameraCaptureTask missing in Window Phone 8.1 runtime??? You can use the FileOpenPicker to let the user choose an existing image or if they so choose, they can capture on in the moment by tapping the camera button in the app bar....
In Windows Phone 8.1 secondary tiles works just like the original tile with the difference that it has an id. The id is set then the secondary tile is created: var secondaryTile = new SecondaryTile( "secondaryTileId", "Text shown on tile", "secondTileArguments", new Uri("ms-appx:///Assets/image.jpg", UriKind.Absolute), TileSize.Square150x150); bool isPinned = await secondaryTile.RequestCreateAsync();...
c#,windows-phone,windows-phone-8.1,windows-8.1,windows-10
Windows 10 is still under work. The latest build on the phone resolved this issue.
c#,windows-phone-8,windows-phone-8.1,windows-phone-8-emulator
Not possible with 8.0, only with 8.1.
c#,xaml,mvvm,radio-button,windows-phone-8.1
Assuming that PageState is an enum, this answer is what you're looking for. All of the radio buttons that you want to group together all bind to the same property of the ViewModel and all use the same ValueConverter. The value that triggers a radio button check / uncheck is...
visual-studio,debugging,visual-studio-2013,windows-phone-8.1
I found a solution about it, but there is still some missing on my answer. I don't know how but accidentally a blank project worked on my emulator. After that I looked up the ProjectName.csproj.user file and there were a change somekind like that After that I added the same...
c#,xaml,mvvm,windows-phone-8.1,prism
You're referring caching here. In the constructor of your ViewModel , set your NavigationCacheMode this.NavigationCacheMode = NavigationCacheMode.Required; and in OnNavigatedTo event handler , check your navigationMode and delete if you're doing something more than default initializing....
c#,camera,windows-runtime,windows-phone-8.1
The app needs to use the MediaCapture API. Windows Phone Runtime apps cannot directly launch the camera app to capture and return an image. There is no analogous API to CameraCaptureTask (Windows Phone Silverlight) or CameraCaptureUI (Windows Store apps). can't we just launch the existing camera app using a launchUriAsync()...
c#,wpf,xaml,windows-runtime,windows-phone-8.1
I have use the following technique: var b = new Binding { Source = "M 10,10 C 10,50 65,10 65,70" }; BindingOperations.SetBinding(path, Path.DataProperty, b); and it is working perfectly on Windows Phone 8.1....
windows-phone,windows-phone-8.1,windows-phone-store
Looks like you failed to use LaunchFileAsync/FileOpenPicker correctly. Follow this guide carefully. Unless debugging, OS terminates your process just after you've called the picker (especially on low-memory devices with 512MB RAM). It's up to your application to save its state, and when reactivated restore the state and take user to...