windows-runtime,windows-10,ussd , Programmatic access to USSD from the Windows 10 Desktop

Programmatic access to USSD from the Windows 10 Desktop


Tag: windows-runtime,windows-10,ussd

I have a Windows 10 Desktop application that needs USSD access, and can get operator permission to use it. However, I can’t use AT commands (COM ports are not exposed), and USSD is not offered by the Windows Desktop Mobile Broadband APIs. I thought of using the Windows Runtime USSD module, but this would require a side-loaded Windows Runtime app to run alongside the Desktop app. The Windows Runtime App could be closed by the system at any time, and the user starts the dialogue from the Windows Desktop App, so won’t re-start the Runtime App.

Is there any better way of accessing USSD programmatically on the Windows 10 Desktop?


Thanks Raymond. The search for this dualapipartition attribute brought me to This link describes how to tweak the Visual Studio project to get access to several WinRT APIs.


Windows 10 Universal Audio Background Player - unable to register for background task: Run Method Doesn't fire

Developing Visual Studio 2015 RC - Windows 10 universal app for background audio player. I have followed the following steps. Created 3 projects. MusicPlayer (Blank App - Windows Universal Project) Playlist (Class Library - Windows Universal Project) AudioBackgroundAgent (Windows Runtime Component - Windows Universal Project) Followed same steps as

does not implement interface member IComponentConnector2

I tried to create a new Windows universal app (UWP) but new project seems to be broken. I use Visual studio 2015 RC (version 4.6.00076), .NET for Windows Store apps ( How did i do ? I used this simple way : And next, i tried to build project without...

How to set ItemsSource value of ColumnSeries?

I am not able to set ItemsSource value of ColumnSeries. I am following some examples (this and this) but they seem to be out dated. Here is my XAML: <Charting:Chart x:Name="ColumnChart" HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Height="Auto"> <Charting:ColumnSeries Title="Georgi Kyuchukov" Margin="0" Name="ColumnChartSeries" IndependentValuePath="Name" DependentValuePath="Pts" IsSelectionEnabled="True" /> </Charting:Chart> and here is my C#...

How to create resuable control and set the properties of nested controls using common template/control in xaml

I have tried to google this but I am not super clear on the suggestions I see people making. I have 3 buttons within a user control that are exactly the same except for automation id and text. Instead of duplicating this code across all buttons, I would like to...

Fix for Windows 10 Excel 2013 Build 9926 Find and Replace freeze bug

Does anyone have a better fix for the following bug I am getting in Excel 2013 on Windows 10 Enterprise Technical Preview Build 9926. The issue occurs where trying to run a ‘Find & Replace’. 1. Open a new workbook 2. Type ‘Test’ into Cell A1 3. Press ‘Ctrl+F’ 4....

Progressbar for filling TextBox using MVVM Light Toolkit in WinRT

I have a form containing few TextBox elements and a progress bar. I want the progress bar to be updated when the TextBox's have some values assigned. So when a value is set to a TextBox I increment ProgressPercent if the lenght is different from 0; The problem is that...

Background thread in Windows Phone 8.1 app

I'm working on a Windows Phone 8.1 shopping application. I have a continously running thread in the app which downloads the users basket and saves it in a local cache to imporve performance. So far what I have is something like this: while(UserLoggedIn) { await Networking.getBasket(); await Task.Delay(5000); } This...

Programmatic access to USSD from the Windows 10 Desktop

I have a Windows 10 Desktop application that needs USSD access, and can get operator permission to use it. However, I can’t use AT commands (COM ports are not exposed), and USSD is not offered by the Windows Desktop Mobile Broadband APIs. I thought of using the Windows Runtime USSD...

Windows 10 xaml Controls Centre Screen

I'm working on an app for windows 10. I've previously worked on a handful of Windows 7 applications and I'm trying to get use to the many differences now. I'm trying my luck at a universal app, and I'm wanting to centre a handful of controls so that no matter...

Error when adding VideosLibrary capability in app's manifest file

According to the documentation, capabilities must be declared when an application requires programmatic access to certain user resources such as the Videos Library. This page of the documentation also states: All Windows Phone capabilities are not available for apps being developed specifically for Windows 10 Insider Preview. I am building...

How to build PathGeometry using C#?

I have the following XAML in Windows Phone 8.1 app running with Windows Runtime: <Canvas Name="drawSplice" Grid.Row="1" Grid.Column="0" Height="80" Width="80" Background="White"> <Path Stroke="Black" StrokeThickness="2" Data="M 10,10 C 10,50 65,10 65,70" /> </Canvas> It gives me the following shape: My question is how to generate such instance of path class using...

Refresh binding with converter bound to other property

I am currently building a WinRT app for Windows 10 and I am facing an issue I can't seem to find an answer for. In my main page, I have a list of map markers bound to an ObservableCollection in my ViewModel. For each of these markers, i need to...

how to connect to a NIC card or network adapter knowing its IP address?

Say I have two NIC or adapter card on my system and also I found their IP address through the following code: procedure TForm4.RetrieveLocalAdapterInformation(strings: Tmemo); var pAdapterInfo, pTempAdapterInfo: PIP_ADAPTER_INFO; AdapterInfo: IP_ADAPTER_INFO; BufLen: DWORD; Status: DWORD; strMAC: String; i: Integer; begin strings.Clear; BufLen:= sizeof(AdapterInfo); pAdapterInfo:= @AdapterInfo; Status:= GetAdaptersInfo(nil, BufLen); pAdapterInfo:= AllocMem(BufLen);...

Button doesn't work in FlipView with DataTemplates - WinRT

I'm using Flipview and a DataTemplateSelector to determine at runtime which DataTemplate to apply to show items in my control. I have two DataTemplate's, one is static and the second can be used by a undetermined number of items. The problem is that the button does nothing. I've used a...

Checking for updates to Windows Store apps from within the application

I'm trying check (programatically) for updates to Windows Store apps from within the application and notifying users about the new release. How can i get the version of the app avalaible on Windows Store ? Thanks...

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

i'm trying to implement a tab style radio button. this style contains a textblock as a child of a grid which changes it's color when checked and the grid is a child of border element. i'm trying to bind the grid's background only when it is in checked state but...

Background task spontaneous completion с#

Register a background task: string myTaskName = "Task"; foreach (var cur in BackgroundTaskRegistration.AllTasks) if (cur.Value.Name == myTaskName) { return; } await BackgroundExecutionManager.RequestAccessAsync(); BackgroundTaskBuilder taskBuilder = new BackgroundTaskBuilder { Name = "Task", TaskEntryPoint = "Background.Task" }; taskBuilder.SetTrigger(new TimeTrigger(15, true)); BackgroundTaskRegistration myFirstTask = taskBuilder.Register(); Background task is created in the Windows Runtime...

Windows.Web.Http.HttpClient with gzip

How can you use Windows.Web.Http.HttpClient with gzip? Currently focusing on Windows 10 application....

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

I know how to implement a camera capture using a MediaCapture in windows phone 8.1. But the question is can't we just launch the existing camera app using a launchUriAsync() and get back the path of the file or the file itself in the form of an argument? Example: Like...

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

I have a canvas and want to get its name when it is Tapped. So, I have this XAML: <Canvas Name="drawLine" ... > ... </Canvas> and this function bind on Tapped event: private void ChangePage(object sender, TappedRoutedEventArgs e) { string name = ((Canvas)sender).Name.ToString(); Frame.Navigate(typeof(Params), name); } bug get the following...

WinRT control to render XAML UIElement

I am porting a WPF app into WinRT. The old app had a part where it would take something like an Image, MediaElement, a Xaml Page, etc; cast it as a UIElement; and then the recieving class would use VisualBrush to render it onto a button. Unfortunately WinRT has no...

Different views with different code behinds but one binary in Windows 10

I have been reading this which suggests that in windows 10 you can use different xaml views (with the same code behind) for different device families. My question is whether you can use different views with different code behinds for different device families and still produce one binary. I know...

How to access Windows Phone folders from a Gmail Wrapper App

I have created a Gmail Wrapper Windows Phone 8.1 (WinRT) application using Webview. When I try to compose an Email and try to add attachments, file picker is not displayed and nothing happens. However when I use the Internet Explorer and login to the same Gmail account and click on...

Gapless looping in Background Media Player for Windows Phone 8.1

I'm creating an app (Windows Runtime) that requires sound to run in the background (even when the phone is locked) so I set the BackgroundMediaPlayer's isLoopingEnabled property to true in the background task but when I play back the audio in the app there is about a 1 second gap...

AccessViolationException in Windows.Media.SpeechSynthesis.SpeechSynthesizer constructor

My app is getting an AccessViolationException when calling the default constructor of the Windows.Media.SpeechSynthesis.SpeechSynthesizer class. This only happens on one particular machine (so far at least), which is a Surface Pro 3 running Windows 8.1. All other machines with the app installed do not experience this issue. My code is...

Error when serialize List

A am developing a Windows Phone Runtime application and a I have data in a string list. But when I suspend my app the error occurs Error trying to serialize the value to be written to the application data store and Additional information: Data of this type is not supported....

How do you underline selected text in a WinRT RichEditBox?

I'm currently making an application which includes a rich text editor, however I'm having some issues with applying formatting to the text. Specifically, I'm having an issue with underlining the selected text. Here is my current code. private void UnderlineButton_Click(object sender, RoutedEventArgs e) { ITextSelection selectedText = rtfEditor.Document.Selection; if (selectedText...

Local settings in Windows Phone 8.1 app are not stored

I have created many apps for Windows Phone 7 and 8. To store settings I was using these methods: IsolatedStorageSettings.ApplicationSettings["key"] = value; IsolatedStorageSettings.ApplicationSettings.Save(); Everything worked perfectly, my settings were stored. Save() method did the job. But now I am creating an app for Windows Phone 8.1 (WinRT). I have followed...

About Camera UI in window phone 8.1

How to access to Standard Camera Capture UI from code in winphone 8.1? I tried FileOpenPicker to open Picture Library (added button to access camera on navigation bar). Is there any another way to access Camera Capture UI than using FileOpenPicker, for example- custom UI with class MediaCapture or is...

Universal App ListView Item HorizontalAlignment

I would like to create a ListView that has right aligned items as well as left aligned. So far in all my attempts with DataTemplates and ItemContainerStyles, I am not able to get this working. The left alignment works fine as that is the default, but I cannot figure out...

Windows phone Store app Font size Issue

I have created windows phone 8.1 Store app. I have change setting: setting->ease of access->Text size to MAX Now if I launch my app all fonts are disturbed to too larger font sizes, which was not happening in earlier silverlight apps Is there any way to create app irrespective of...

Remove Combobox winrt flayout heading

In winrt windows phone app when you have more than 5 items in a combobox, it opens up on a full screen. And on top its written 'Choose an item'. I want to remove this heading from all my combo boxes....

MediaCapture VideoStabilization fails with 0xC00D4A3E

I'm working on a video recording app that supports the VideoStabilization effect, but when I start recording, I receive the following through the MediaCapture.Failed event almost instantly: The sample allocator is currently empty, due to outstanding requests. (0xC00D4A3E) It only happens when I use the recommended configuration from the effect,...

Save parameters when application is closed

How do I save parameters before closing my Windows Phone Runtime app and use these parameters when I activate my app? I have a String and an int that I need to save.

Is there a tile template catalog for windows 10 anywhere online?

I'm looking for the new tile templates for windows 10 and so I searched for the catalog, but all I found was the well known catalog for windows (phone) 8/8.1: Do anyone know a link for the new tile template catalog for windows 10? Greetings from a cloudy Germany...

How to bind width of child element to width of parent element in WinRT

I have a ProgressBar in StackPanel. I want my ProgressBar to have the size of my StackPanel or a bit smaller. I tried Width="{Binding ActualWidth, ElementName=parentElementName}" but this doesn't actually work in WinRT Sample Code <StackPanel Grid.Row="1" Margin="120,15,0,0"> <ProgressBar x:Name="progressBar1" Value="{Binding ProgressPercent}" HorizontalAlignment="Left" IsIndeterminate="False" Maximum="100" Height="10"/> </StackPanel> ...

Error APPX1706: creating winrt dll with xaml

I built a WinRT(Windows phone 8.1) dll with Page.xaml and App.xaml files. Next, I add reference to this winmd in wp8.1 application project. And I get following error: error APPX1706: The .winmd file 'project.winmd' contains type '?A0x32772d97.project_XamlTypeInfo.XamlMetaDataProvider' outside its root namespace 'project'. Make sure that all public types appear under...

navigating between pages using radio buttons in winrt

i'm trying to navigate between pages while toggling the radio buttons like the tab control. i've tries a few ways.Here they are first the xaml <StackPanel> <RadioButton Content="navigateto1" Checked="RadioButton_Checked"/> <RadioButton Content="navigateto2" Checked="RadioButton_Checked_1"/> <Frame x:Name="contentframe"> </Frame> </StackPanel> then the code behind private void RadioButton_Checked( object sender, RoutedEventArgs e ) { var...

SystemMediaTransportControl GetForCurrentView() fails in audio background task on Desktop Device Family (UWP C#

I'm trying to bring over my C# WP 8.1 Background Audio Task to UWP and everything works, except trying to get the UVC using Windows.Media.Playback.SystemMediaTransportControls.GetForCurrentView() throws the current exception on Desktop devices: "Could Not Find an appropriate view to be associated with this instance of the MediaPlaybackControl. Please make sure...

Dual WCF + Windows Runtime App == Trouble

This is a question about app life cycle. My WinRT client app connects to a Dual WCF service that pushes data into the client at the millisecond level. Everything works fine up to the point where the client app eventually gets suspended. It simply leaves the service hanging in there.......

seperating asynchronous HttpClient and Ui thread Winrt?

I am trying download json data from a rest service and all i'm doing is for a button click navigating to a new page and in the new page i'm using async methods to download data. But still the UI gets stuck ... the ui get's stuck in the first...

Adding table header to Listview with DataTemplate in XAML

In my Xaml I'm binding some data from a wcf. I don't know how to add some table headers to the columns. Also the data in the columns is not well aligned, I'm thinking it's because of the ColumnDefinition Width="auto". I want the columns to be aligned like in the...

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

I'm trying to localize my WP 8.1 app. Here is a part of Strings/en-us/Resources.resw: <data name="SampleProperty.Text" xml:space="preserve"> <value>Sample text</value> </data> <data name="SampleProperty.SomeRandomKey" xml:space="preserve"> <value>SAMPLE TEXT</value> </data> Also one of application pages contains the following code: <TextBlock x:Uid="SampleProperty" /> But the app throws an exception in process of navigation to that...

How to detect is a camera is available using isTypePresent in a Windows 10 Universal Application

When developing a Universal Application for Windows 10 you are encouraged to detect device specific hardware using IsTypePresent. (Microsoft refer to this feature as 'Light up'). An example from the documentation that checks for a device's back button is: if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; It is clear here that the string...

How to display UIElement but without UI interactions (to touches, clicks, …)

I would like to add some kind of watermark over a page in my application : The watermark is a UIElement (a Canvas for instance with partial opacity) which is on top of all others controls. And I want it to be "transparent" to any touches/clicks/gestures. As "transparent", I mean...

How to rotate labels of WinRTXamlToolkit column chart?

I have the following XAML definition: <Charting:Chart x:Name="ColumnChart" HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Height="Auto" Padding="50" Title="100 random numbers"> <Charting:ColumnSeries Title="Skills" IndependentValuePath="Name" DependentValuePath="Pts" IsSelectionEnabled="True"> </Charting:ColumnSeries> </Charting:Chart> How can I rotate the labels (let's say on -90 degrees) in order to make them more readable? ...

Windows 10 UAP back button

How would I handle the back button for windows mobile 10 and the back button for windows 10 tablet mode? I've been looking everywhere but can't find any examples for it.

Get an accelerometer's device id(or monitor an accelerometer in the backbround) on WinRT

I am looking into the method of monitoring accelerometer in the background. We can get the sample for Windows Phone which implements it at MSDN. According to the sample code, it requires the id of an accelerometer. However, there is no property which gets the device ID for WinRT. var...