windows-8.1

How to get the Download/Upload status(in %) from Http Client in Windows 8.1 Universal App?

喜夏-厌秋 提交于 2019-12-08 05:57:24
问题 I have a spec in which there is a need to ignore HTTPS certificates and also to get the status of Upload/Download. I am using HttpClient to ignore the certificate but i could not find the way to get the status of downloading/Uploading. I know it was there in WebClient Windows Phone 8 and Webclient not there in Windows 8.1. So please guide me to accomplish both these things. 回答1: For Download progress, You can return response stream from your Http request and can use below code to write to

Windows Phone 8 emulator on Windows 8.1

﹥>﹥吖頭↗ 提交于 2019-12-08 05:11:31
问题 Is it possible to run Windows Phone 8 emulator on Windows 8.1 standard edition (not 8.1 Pro)? I know that normally the emulator requires Hyper-V which is not available in non-Pro version but since Windows Phone 7 emulator works fine without Hyper-V maybe there is a way to run 8's emulator without Hyper-V as well? 来源: https://stackoverflow.com/questions/25089523/windows-phone-8-emulator-on-windows-8-1

Custom Binding not working updating from Knockout 2.3 to 3.3

爱⌒轻易说出口 提交于 2019-12-08 03:34:58
问题 My Windows 8.1 App was working fine on Knockout 2.3 but after updating to 3.3 it seems like I get the wrong Context in my custom binding. First here is how I apply binding for individual elements in the command bar of my app : var cmdArray = []; var commandIsRunning = function() { return _.any(cmdArray, function(command) { return command.isRunning(); }); }; _.each(_bottomCommands, function (row) { if(row.command) { // command wrapper var commandWrapper = ko.command({ action: function() { var

Pin tile to selected position on Startscreen (programmatically) Windows 8

浪尽此生 提交于 2019-12-07 17:37:13
问题 I am searching a solution to pin an installed app or desktop application to the windows 8 startscreen. I have figured out to do this like it is described in this post before There has also been a long disscusion about this problem But there was no answer to my question: How can I pin a new tile to a selected position on the startscreen? If I install a new app/application windows 8 pins the new application at the end of the Startscreen. (windows 8.1 does not) But if I want to place the tile f

How to specify initial window size for Windows 8.1 app running on Windows 10

半世苍凉 提交于 2019-12-07 17:12:17
问题 Is it possible to set the default window size for a Windows 8.1 app running on Windows 10? I know that this can be done for a UWS app using APIs introduced in Windows 10. However, converting the app to Windows 10 will take some time. In the meantime, I would like to be able to release a quick fix which would ensure that current Windows 8.1 app launches with the correct size. Does anyone know how to achieve this? 回答1: You could use reflection to call part of windows 10 sdk at runtime within

Timer in Windows 8.1 - how to mimic Timer(TimerCallback) constructor?

*爱你&永不变心* 提交于 2019-12-07 16:15:29
I am porting an existing .NET class library that uses System.Threading.Timer to a Windows Store app that targets Windows 8.1. The Timer class is available, but a few options seem to be missing in relation to the corresponding .NET Framework Timer . In particular, there are only two constructors available in the Windows Store version: public Timer(TimerCallback callback, Object state, int dueTime, int period); public Timer(TimerCallback callback, Object state, TimeSpan dueTime, TimeSpan period); .NET Framework contains this additional constructor: public Timer(TimerCallback callback); which

SearchBoxControl has focus on app launching on Win8.1

心不动则不痛 提交于 2019-12-07 13:49:18
问题 I'm using the new SearchBox Control in my Windows 8.1 app, but everytime I launch the app the SearchBox has the focus and displays the search history. I've tried to set the focus on another control on my page, but it doesn't work. So how can I start my app without showing the search history? Thanks. 回答1: Here's my guess. You are attempting to set focus to something else on the page, but there's actually nothing else on your page that can accept a programmatic focus. To test this, simply add a

appxupload package not being generated. Only test package is being generated

余生颓废 提交于 2019-12-07 12:46:25
问题 I am developing a universal windows app. When I try to create package using Store->Create App packages, it is creating only test packages. In AppPackages directory, I can find only one folder with _test. How do I ensure that .appxupload package gets created that can be uploaded to windows store. 回答1: Look in your Projekt.csproj.user file if AppxPackageIsForStore is set to true. <PropertyGroup> <ProjectView>ShowAllFiles</ProjectView> <AppxPackageIsForStore>True</AppxPackageIsForStore>

How to split text with HTML tags to array

半城伤御伤魂 提交于 2019-12-07 11:22:11
问题 I have very simple text with HTML (only <b> tag) e.g. Lorem Ipsum is <b>simply dummy</b> text of the printing and <b>typesetting industry</b> I would like to split the text to array like this: [0] - Lorem Ipsum is [1] - <b>simply dummy</b> [2] - text of the printing and [3] - <b>typesetting industry</b> The text inside HTML tag must be separated from another text. Is there any simple solution for it? Thank you 回答1: You may achieve this using following code string value = @"Lorem Ipsum is <b

Error PSRemoting using Session and CredSSP

半城伤御伤魂 提交于 2019-12-07 10:31:21
问题 I use Windows 8.1 Enterprise 64 bit and Powershell 4.0. I want execute powershell remoting and using authentication CredSSP. I open Console Powershell, run as Administrator, and execute Enter-PSSession command to connect to remote computer. But I get error about connection. PS C:\Documents and Settings\kiquenet> Enter-PSSession -ComputerName DC -credential devrsg.com\Administrator Anyways, I test command from Windows XP and Windows 7, and connection is OK. PS C:\Documents and Settings