Menu
  • HOME
  • TAGS

WP8.1 Calendar look-alike

calendar,windows-phone-8.1

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...

Ad added in DevCenter not visible in PubCenter, how to track?

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.

Google GCM with Windows Phone 8.1

android,push-notification,windows-phone-8.1

You cannot use GCM on another platform, windows has their own Push notification API

Windows Phone 8.1 get image from base64 string

c#,image,windows-phone-8.1

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...

How can I create a simple text file on a windows phone (8.1) that can be accessed trough USB cable?

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# Windows Phone cannot find json file

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...

windows phone: deserialise and store both json key and value to modal

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...

Stream.CopyTo(newStream) return Length 0

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; ...

Windows Phone 8.1 Showing progress view until async/await task finishes

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...

Ellipsis inside button content Windows Phone

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...

Convert windows phone 8.1 app to android and IOS [closed]

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...

Add ListBox to DataTemplate from C# code

c#,.net,windows-phone-8.1

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); ... <...

Can't create Windows Phone appx bundle from Cordova project

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...

Automapper starting exception in Windows 8.1 Unified project

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...

ListView fill the width of parent, screen or whatever [duplicate]

wpf,layout,windows-phone-8.1

Try this. Add the following jus after </ListView.ItemTemplate> <ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style> </ListView.ItemContainerStyle> ...

play audio periodically from a memory stream c#

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(); ...

unable to add reference to windows.media.speechsynthesis.dll

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.

LongListMultiSelector equivalent in 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...

Windows Phone local toast notification Text wrapping and image is not showing

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....

Control style of each individual ToggleButton in Windows Phone 8.1

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}" ...> ...

Background thread in Windows Phone 8.1 app

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...

seperating asynchronous HttpClient and Ui thread Winrt?

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...

windows phone 8.1 universal app : clear cookies

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); } ...

WinPhone 8.1 | Force xaml layout change

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))...

Unable to cast object of type 'Windows.UI.Xaml.Controls.Canvas' to type 'Canvas'

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...

How can I get a list from a json file in c#? [closed]

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 }); ...

How to build PathGeometry using C#?

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....

Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?

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...

How to rotate labels of WinRTXamlToolkit column chart?

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"...

Bing maps for Windows phone app

windows-phone-8.1,bing-maps

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...

ItemsWrapGrid Order in Windows Phone 8.1

c#,xaml,listview,windows-phone-8.1

You want to change the orientation. <ItemsWrapGrid MaximumRowsOrColumns="2" Orientation="Horizontal"></ItemsWrapGrid> ItemsWrapGrid.Orientation property ...

Is there a Popup class in the SDK for WP8.1?

windows-phone-8.1

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...

Windows Phone page navigation does not work

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...

How to apply a style of a Button dynamically in WP 8.1?

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...

ScrollViewer ChangeView on SizeChanged

c#,wpf,xaml,windows-phone-8.1

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...

LaunchUriAsync with Authentication and other custom headers

authentication,windows-phone-8.1,single-sign-on

No way to do this. You have to use a WebView embedded into your app.

About Camera UI in window phone 8.1

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....

ResolutionScale vs RawPixelsPerViewPixel on Windows Phone 8.1

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...

WP 8.1 ToggleButton Change Icon when Checked / UnChecked

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...

Downloading a .JSON file in WP8.1

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)); } } } } ...

how to display a different image in the DataTemplate?

c#,xaml,windows-phone-8.1

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")); } ...

Windows Phone App crashes after Launcher.LaunchFileAsync when downloaded from store

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...

Windows Phone UI defaults to 19 margin on the left

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...

How to get the device orientation changed event under Windows Phone

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"...

Windows Phone 8.1 WinJS Appbar disabled property not working

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...

Back button closing app instead of going back on Windows Phone 8.1

vb.net,xaml,windows-phone-8.1

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 ...

How to set ItemsSource value of ColumnSeries?

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)....

RadioButtons binding on Windows Phone 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...

Error when serialize List

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,...

How to bind a textblock visibility to another textblock text property

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; }...

Local settings in Windows Phone 8.1 app are not stored

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....

Gapless looping in Background Media Player for Windows Phone 8.1

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.

changing image background in button does not work

c#,windows-phone-8.1,.net-4.5

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)) }; ...

MVVM How to set datacontext when viewmodel uses async

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...

WP 8.1 - How to save an image to Isolated Storage if know it's URL

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,...

Unable to resolve property '%1' while processing properties for Uid '%0'

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.

Set parameter to notification

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); ...

GridView with two columns Win Phone 8.1

xaml,windows-phone-8.1

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...

How to set “ApplicationID” on LoginButton control? (Facebook SDK .Net)

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....

data binding property of a other control to a style while animating it

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...

Why can't I use the Windows.Phone.Media.Capture namespace?

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...

What is: Bad_dump!missing_teb (Windows Phone Dev Center Crash Log)

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...

Convert number to string using Hebrew letters

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 י"א....

windows phone 8.1: Hide stackpanel if textblock is empty

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(); }...

ViewModel Called on Navigation Back Prism MVVM Windows Phone 8.1 C#

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....

Wrong coordinate points bing maps

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...

Single sign on single native client windows phone using ADAL

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...

Windows Phone 8.1 : how to Launch an Installed app From My app

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....

How to hide app bar button in different hub sections windows phone?

c#,xaml,windows-phone-8.1

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...

How do you calculate pixel size of string?

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...

How do I access MainPage class non-static members from the App class?

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...

BooleanToVisibilityConverter works on Textblock and not on UserControl

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 microphone line in audio streaming

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 ..

navigating between pages using radio buttons in winrt

c#,windows-runtime,windows-phone-8.1,windows-8.1

You need to cast _contentFrame, not _contentFrame.Content. var _frame = contentframe as Frame; ...

Error - “Pivot” does not exist in the namespace - Windows phone 8.1

c#,windows-phone-8,windows-phone-8.1

Have you tried to add the pivot like this? <Controls:Pivot> </Controls:Pivot> ...

Visual Studio 2013 Compiler issue on Windows phone 8.1 silverlight project

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...

Slider progress bar with MediaElement Windows Phone 8.1

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 =...

How to use existing camera app(not create one using MediaCapture) and take picture in windows phone 8.1(WinRT)?

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()...

Could not load file or assembly 'WinRTXamlToolkit'

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....

Get type programmatically and use it as a typeparam

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...

How to get info about previous page on Frame.GoBack()

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 */ } } ...

Receiving shared content using windows phone 8.0

c#,windows-phone-8,windows-phone-8.1,windows-phone-8-emulator

Not possible with 8.0, only with 8.1.

Windows 10 FIle query issues

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.

Windows Phone 8.1 - HttpClient SendRequestAsync will never return with a response

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...

OpenGLES in a Windows Phone 8.1 App

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....

Background task spontaneous completion с#

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...

how do i get rows and columns dynamically in windows phone app?

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...

Beacons in Windows Phone 8.1 - there are no possibilities?

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...

Windows phone Store app Font size Issue

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...

Windows phone 8.1 universal app create .appx file but not work in nokia lumia 720 device

windows-phone-8.1

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.

Set content of particular Pivot Item

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! ...

How to change mediaelement to scale in portrait and fullscreen in landscape mode on Windows Phone 8.1?

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#...

Windows Phone 8.1 : Add remote Image to BottomAppBar or AppBarButton

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...