FAQ Database Discussion Community


Programmatic access to USSD from the Windows 10 Desktop

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

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

excel-2013,windows-10
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....

Windows phone apps on Windows 10

windows-phone-7,windows-phone-8,windows-phone,windows-phone-8.1,windows-10
I'm creating apps for windows phone pretty much since the beginning and I was wondering.. Will the Windows Phone apps run on Windows 10 (for Phone) ? I could not find an answer anywhere and I wonder if the Windows Phone store will just disappear with the new version of...

How do you read the serial port with windows 10 core

c#,raspberry-pi,core,win-universal-app,windows-10
using python on the Raspberry PI I use similar code to what is shown below to read data from the serial port: baud = 9600 # baud rate port = '/dev/ttyACM0' # serial URF port on this computer ser = serial.Serial(port, baud) ser.timeout = 0 var message = ser.read(9); Essentially...

How to track down seemingly random crashes in Java?

java,swing,windows-10
While doing some homework that works with some swing gui components, my program started crashing seemingly at random. That is, it starts, runs for a short time, and then crashes. I don't get any errors in the console, it's just a straight up crash. I don't doubt that it is...

changing to dark in Themeresource for a simple windows app

xaml,visual-studio-2015,windows-10
Recently I have started exploring VS2015 and I went through the basic tutorial of how to create a hello world using c++ in VS2015(https://msdn.microsoft.com/en-us/library/windows/apps/hh974580.aspx). After copying and building the exact same thing, the background color that I got was light instead of dark like the example shown in the link....

Run Windows 10 Universal Apps on Windows 8.1

windows,windows-8.1,win-universal-app,windows-10
Is it possible to run a windows 10 universal app on windows 8.1? I searched a lot, but I didn't find a clear answer on MSDN etc. Thanks....

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

c#,wpf,xaml,windows-10
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...

XAMPP and Skype Port Conflict on Windows 10

apache,xampp,skype,ports,windows-10
I know some of you knew that Skype usually conflicts with XAMPP, because of the port. However if you are trying to use Windows 10 there are no advance option on how to avoid Skype using ports like 80 or 443. (Sorry I can't find advance option on Skype on...

Fit element width of current screensize in an universal app

xaml,windows-phone,winrt-xaml,windows-universal,windows-10
I'm trying to develop an app for Windows 10. But with the all new screensizing I can't seem to figure out how to get an element to fit to the current size of a device screen. For example I want a TextBlock to fit the width of the window if...

Windows Phone emulator not starting (couldn`t setup the UDP port)

windows-phone-8,hyper-v,windows-10,windows-phone-emulator
After updating Windows 10 to build 10061 windows phone emulators (all 8.1 and 10) stopped starting. I get the following error: "Windows Phone Emulator is unable to connect to the Windows Phone operating system. Couldn`t setup the UDP port" I tried "reparing" emulators, but nothing changed. Hyper-V manager shows that...

Windows 10 FIle query issues

c#,windows-phone,windows-phone-8.1,windows-8.1,windows-10
I am trying to follow the instructions to get files from the knownfolders in windows 10 as shown below, https://msdn.microsoft.com/en-us/library/windows/apps/br227275.aspx try { StorageFolder folder = KnownFolders.PicturesLibrary; IReadOnlyList<StorageFile> pics = await folder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery.OrderByDate, 0, 20); Debug.WriteLine(pics.Count); } catch(Exception ex) { Debug.WriteLine(ex.Message); } The same code works in WindowsPhone 8.1 SDK. But on...

VS 2015 RC Installation Failed On Windows 10 Technical Preview build 10074 [closed]

visual-studio-2015,windows-10
Microsoft Visual Studio Services Hub Fatal error during installation. Log File Here

Remote debugging on Surface Pro 3

remote-debugging,visual-studio-2015,windows-universal,windows-10,sideloading
I've installed x64 version of remote debugging components for Visual Studio 2015 on my Surface Pro 3 with Intel Core i3 CPU and recently updated to Windows 10 Pro Insider Preview x64. When I'm trying to debug remotely simple universal application from Visual Studio 2015 RC (development machine runs Windows...

Windows universal application (WIN 10) app manifest validation error

win-universal-app,windows-10,appxmanifest
I found error in Blank app (Windows Universal) template in Visual Studio 2015 RC. It is some mismatch inside schemas. error 0xC00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 23, Column 4, Reason: Element '{http:/schemas.microsoft.com/appx/manifest/foundation/windows10}TargetDeviceFamily' is unexpected according to content model of parent...

What are the Windows 10 universal app deployment methods?

win-universal-app,windows-universal,windows-10
I'm trying to evaluate Windows 10 universal app platform for future development, and trying to understand how Windows 10 universal apps can be deployed to Windows 10 computers. Are they can be deployed only via the Windows Store, just like Windows 8 Metro apps? Or can they be deployed via...

How is Microsoft's iOS bridge IslandWood implemented?

ios,objective-c,win-universal-app,windows-10
Microsoft's newly announced Project Islandwood is interesting, as it allows Objective-C code written for iOS to be repurposed into a Universal Windows app. I couldn't find any information on the details, so: Has Microsoft effectively implemented an iOS subsystem in Windows 10? Is it built on existing software (e.g. the...

Attempting to deserialize an object using JSON.NET in Windows 10 Universal App fails with FileNotFoundException

c#,windows-runtime,json.net,windows-10
I'm using the Windows 10 Preview SDK, and attempting to port forward some code that depends on JSON.NET. It's failing with the following exception: {"Could not load file or assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The system cannot find the file specified.":"System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e,...

x:Bind syntax for event binding giving error CS0122: inaccessible due to protection level

c#,xaml,binding,windows-10
I've got a basic page in a Windows 10 Universal App that I'm using the new binding pattern with. I'm loading a ViewModel into a public property on the MainPage.xaml.cs code-behind. This ViewModel contains a bunch of properties that I am binding to properties on my controls and they work...

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

visual-studio-2015,windows-10
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: https://msdn.microsoft.com/en-us/library/windows/apps/hh761491.aspx Do anyone know a link for the new tile template catalog for windows 10? Greetings from a cloudy Germany...

windows 10 templated control and AdaptiveTrigger

xaml,windows-10
How can I use AdaptiveTrigger in Templated Control in Windows 10 (I use Windows 10 Pro Insider Preview Build 10074). Window.Current.SizeChanged event do not fire up when window size change. What is proper way to make fluid control? Here is what I try to do, but nothing happens when change...

8.1 Universal App. Setting textbox focus on load

c#,xaml,focus,win-universal-app,windows-10
I was wondering if there was a way to force focus to a textbox in a Windows 8.1 Universal app? I've been playing around with publishing to Window 10 IoT on the raspberry pi 2. While publishing to it I noticed that the only textbox does not pickup focus, despite...

Windows 10 xaml Controls Centre Screen

xaml,user-interface,windows-universal,windows-10
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...

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

c#,windows,windows-10,windows-10-mobile
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...

Windows Universal app - no “Any CPU” configuration for Windows 10?

win-universal-app,visual-studio-2015,windows-universal,windows-10
I'm updating Windows Universal project that was created with Windows Software Development Kit (SDK) for Windows 10 Technical Preview to Windows Software Development Kit (SDK) for Windows 10 Insider Preview: So the solution file's changes is only VisualStudioVersion from 14.0.22609.0 to 14.0.22823.1. The project file's changes are also minor: <TargetPlatformVersion>10.0.10030.0</TargetPlatformVersion>...

Error when adding VideosLibrary capability in app's manifest file

c#,windows,windows-phone,windows-10,windows-10-mobile
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...

UnAuthorizedAccessException on StorageFolder.GetFolderFromPathAsync while having access through FilePicker

c#,windows-runtime,windows-store-apps,windows-10
I try to read files from a network location. But I keep getting an UnAuthorizedAccessException. I pick the StorageFolder through StorageFolder.GetFolderFromPathAsync but listing the files throws the exception. When I pick the same folder through the FolderPicker it works. So I tried pinpointing the problem with this code: FolderPicker picker...

Beacons in Windows 10

windows,ibeacon,windows-10
Is there any way to use ibeacons with Windows 10 development? Since ibeacons development with previous versions of Windows seemed nearly impossible, will we have the oportunity to support this technology now? Has anyone started developing something like this?...

Why does Windows Shell context menu handler break power-user menu (Win+x) on Windows 8/10?

windows,windows-8,menu,shell-extensions,windows-10
My custom Windows shell context menu handler works like a charm, for all Windows versions from XP to 7, but on Windows 8, 8.1 and 10, installing it breaks the Win+X menu (sometimes called "Power user menu", or "Quick Access menu", or "WinX menu"): when hitting Win+X, the menu is...

Can we use Windows 10 (for phone ) model design in Windows phone 8.1 App?

design,windows-phone,windows-phone-8.1,windows-10
I am developing an app for windows phone 8.1 . Based on MSDN design guidelines I am using pivots and panorama controls in my application. I heard there are some significant changes in UI in windows 10 OS and MSFT is not using popular controls like pivot and panorama in...

does not implement interface member IComponentConnector2

c#,windows-universal,windows-10
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 (4.5.1.0) How did i do ? I used this simple way : And next, i tried to build project without...

Windows 10 UAP back button

c#,windows,windows-10
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.

GetCustomAttributes for an enum value return an empty Array

c#,enums,custom-attributes,windows-universal,windows-10
I'm currently working on upgrading a windows 8.1 universal app to a windows 10 UWP app. There is a part of code that was working perfectly before that doesn't work anymore in my Windows 10 UWP app. I have an enum that looks like this : public enum EStaticFile {...

Universal App ListView Item HorizontalAlignment

xaml,listview,win-universal-app,windows-10
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...

Can't get WinAppDeployCmd for Appx deployment to work

windows-phone,win-universal-app,windows-universal,windows-10
During the App Packaging and Deployment for Universal Windows Apps presentation (fast forward to 00:36:00) one specific command line utility - WinAppDeployCmd - was used for deployment Windows 10 Universal application to the phone running Windows 10 Mobile. This utility could be found here: "c:\Program Files (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe" But every...

VS 2015 RC - Xaml designer won't load when trying to create windows 10 universal apps in Windows 8

c#,win-universal-app,windows-10,vs-2015-preview
I've started working on Windows 10 IoT apps, and I'm baffled by the following issue XAML designer won't load when trying to create Windows 10 universal apps in Windows 8 VS 2015 RC. Upon comparing the blank project XAML for Windows 8 applications to the new blank project XAMLfor windows,...

Windows 10 IoT Raspberry Pi 2: Autostart published Application

iot,raspberry-pi2,windows-10
I'm starting making experience with the Raspberry Pi 2 Development with Windows 10 and I was wondering how can I configurate the Raspberry Pi 2 to autostart my own published application, I developed in Visual Studio? And furthermore: How can I set up time & Region on my device? Thank...

GetWindowRect has offset in Windows 10

winapi,c++builder,windows-10
I use GetWindowRect in my program to get the coordinates of a window on the desktop. This works fine on a dozen or so PCs I have here for testing (XP-W8.1) but not on my one W10 PC with touch screen: the coordinates have an offset to the top-left. I...

APIs supported with Windows 10

windows-10,capability
I want to develop a Windows 10 app (something similar to Windows Store app) . I want to know , would I be able to get the following details from my app CPU Usage and show top Metro apps consuming RAM Getting list of all the apps installed. Battery Usage...

Windows.Web.Http.HttpClient with gzip

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

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

c#,windows-10,background-task
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...

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

delphi,network-programming,ip-address,windows-10
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);...

How can I install Application Request Routing ARR 3.0 in Windows 10 Preview?

iis,arr,windows-10,arr-3.0
When I try to Install Application Request Routing I get an error "IIS Version 7.0 or greater is required to install Microsoft Application Request Rounting 3.0". Windows 10 has IIS 10.0, so it should be possible, but I guess that Microsoft hasn't fixed the version check yet. Are there any...

Calling a rest API windows 10 IoT with a Raspberri pi

c#,windows-universal,iot,windows-10,raspberry-pi2
I'm trying to do something as simple as calling a REST API using an universal app for windows 10 IoT but I can't find a way to do it. Normally I would use: private XElement ImportData(string sourceUrl) { WebClient wc = new WebClient(); String source = wc.DownloadString(sourceUrl); return XElement.Parse(source, LoadOptions.None);...

Get all Windows 8/10 toast notifications

c#,notifications,toast,windows-10
Is it possible to get notified when other apps raise Windows 8/10 toast notifications and get the content of these toasts? Or, is there a way to get all of the current notifications so that I can poll this list for additions? WinRT's Windows.UI.Notifications.ToastNotificationManager has a CreateToastNotifier method which can...

WebStorm 10, issue with terminal on Windows 10

webstorm,windows-10
I decided to try Windows 10, but having problem to make terminal works inside WebStorm. When I open terminal, sometimes it's completely black, sometimes it loads project folder but I cannot type there. There is a way to run it in the external window, but I just got accustomed to...

Setting x:DeferLoadStrategy in code behind

xaml,windows-runtime,winrt-xaml,windows-universal,windows-10
In Windows 10, we have a new way of deferring xaml rendering by setting x:DeferLoadStrategy="Lazy" in xaml. However, I failed to find any document indicating how to achieve the same thing in code-behind. The reason that I want this is that I need to somehow hide the element completely again...

Unable to share image using DataTransferManager in Windows 10

c#,facebook,windows-10,fileshare
Requirement: Share a text and image using DataTransferManager into Facebook in Windows 10. Problem: Unable to share image. Below shown is the code I used, private async void DataTransferManager_DataRequested(DataTransferManager sender, DataRequestedEventArgs args) { DataRequestDeferral deferral = args.Request.GetDeferral(); args.Request.Data.Properties.Title = "Sharing sample"; args.Request.Data.SetText("Testing share in universal app"); var imageUri =...

Can I download and install apps that previously published for wp8.1 with a Windows 10 phone?

windows-phone,windows-store,windows-10
I have read many articles about the "forward compatibility" of WP apps stating an app targeting 8.0 can run on an 8.1 phone. But I have not verified this on WP Store. I have published a universal app for WP 8.1 and some users have installed this app. Now I...

Getting Location in Windows 10 Universal App

c#,win-universal-app,windows-universal,windows-10
In the new Windows 10 documentation, it says that before getting a user's location that you should use Geolocator.RequestAccessAsync(). However, the method doesn't seem to be available. The only options I can use are are "Geolocator.Equals" and "Geolocator.ReferenceEqual". When I try to get the location without using the RequestAccessAsync. I...

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

c#-5.0,visual-studio-2015,windows-10
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 https://code.msdn.microsoft.com/windowsapps/BackgroundAudio-63bbc319...

Can't deploy universal app to phone with Windows 10 Mobile Tech Preview

deployment,win-universal-app,windows-universal,windows-10,windows-10-mobile
I have a developer unlocked Lumia 635 just yesterday updated to Windows 10 Mobile Technical Preview (OS version: 10.0.12562.84). After creating "Blank App (Windows Universal)" targeting Windows Phone 10 in Visual Studio 2015 RC and tried to deploy it to the device (and have changed configuration to ARM for that...

Refresh binding with converter bound to other property

c#,windows-runtime,winrt-xaml,windows-10
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...

Can't find any Directx3D 12 examples

windows,msdn,visual-studio-2015,windows-10,directx-12
now I want to understand Directx 12 and reading msdn. It says Working samples are installed with the SDK which demonstrate the following: I found d3d here C:\Program Files (x86)\Windows Kits\10\Redist\D3D But where are samples for Directx 12? Thansks....

UAP file extensions

windows-universal,windows-10
My package.appxmanifest editor wont open in the designer in the new VS 2015 RC so I'm forced to edit it the old fashioned way. How can I add file extensions to a windows universal app(windows 10) like this one from an 8.1 app: <Extensions> <Extension Category="windows.fileTypeAssociation"> <FileTypeAssociation Name="mp3"> <DisplayName>mp3</DisplayName> <SupportedFileTypes>...

MediaCapture VideoStabilization fails with 0xC00D4A3E

c#,windows-store-apps,windows-universal,windows-10
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,...

Can't open localhost in Project Spartan in Windows 10 preview

iis,browser,windows-10,microsoft-edge
I installed Windows 10 preview and installed IIS. Open "http://localhost" in Project Spartan can't connect. IE has no problem. What's the problem?...

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

c#,windows-10,binaries,windows-10-mobile
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...

Visual Studio Code layout render bug - mouse actions work only in full screen mode

vscode,windows-10
Has anyone else encountered this annoying situation? In short, there is this black bar that appears right above the menu bar and on the left of the sidebar. It causes any mouse actions to fail (unless you position the cursor slightly above the targeted item) and the status bar to...

Can't Install Visual Studio 2010 on Windows 10

visual-studio-2010,windows-10
When I run the VS2010 installer, nothing opens. I checked my running processes and I do not see anything new in there either. I have tried running it in compatibility mode for 8, 8.1, and 7. I have also tried running it as an administrator. Same problem. Opening the setup...