win-universal-app

raw frames windows phone 8.1

牧云@^-^@ 提交于 2019-12-11 22:19:44
问题 I need to get raw frames from the Camera in YUV/YCbCr format on windows phone 8.1 ( without Silverlight ), I don't see any example on internet, is it possible using MediaCapture or CameraPreviewImageSource (Nokia SDK) ? Thanks 回答1: The recommended way to process raw video frames on Windows Phone 8.1 is to write a custom MFT plug-in and then add it to the MediaCapture object via AddEffectAsync. The MFT acts as a DSP filter between the decoder and the XAML rich compositor. You can choose the

ETW/Eventsource tracing to file (dump)

冷暖自知 提交于 2019-12-11 19:54:43
问题 I use ETW to do tracing in my application. So I create a custom EventSource and EventListener . Now I want to use this tracing from a client side. For example, I want my app to dump the tracing log to a file when the app get an unhandled exception, so i will be able to know what happened remotely (so i want a trace dump). Question 1 : Is ETW design for this (dump) or is it just a tracing tool and I have to implement another distinct solution ? Question 2 : (If Question 1 => ETW can do such

How can i Decrypt Aes 128 in Universal windows app? (using System.Security.Cryptography not exist)

社会主义新天地 提交于 2019-12-11 19:45:59
问题 I want to decrypt AES 128 in Universal app (win 10), but we do not have AesManaged because this lib doesn't exist in System.Security.Cryptography. So, how can I decrypt my string in UWA c#? I use this code in windows phone 8 : public static string DecryptString(string cipherText) { const string password = "myPass"; string plaintext = null; try { if (!string.IsNullOrEmpty(cipherText)) { if (cipherText != "") { var key = new byte[KeySize]; var passwordbytes = Encoding.UTF8.GetBytes(password);

UWP - SignTool Error: No certificates were found that met all the given criteria

落花浮王杯 提交于 2019-12-11 18:25:11
问题 I'm getting this error after our company changed its AD domain. UWP app development with VS 2019 and Windows 10 (1903) C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(4469,5): error APPX1204: Failed to sign 'D:\AzureDevOps-Workspace\UWP\Main\BoardPACWinApp\bin\x64\Release\BoardPACWinApp_3.51.11.0_x64.appx'. SignTool Error: No certificates were found that met all the given criteria. 5>C:\Program Files

How do you make Speech to Text work in Windows (Phone) 8.1 Universal App

烂漫一生 提交于 2019-12-11 18:23:01
问题 I'm trying to write code to read aloud an incoming Toast (this was trivial in WP8.1) I have this so far Using MediaElement doesn't seem to work (code runs but no audio) either on the phone or in the emulator Using BackgroundMediaPlayer works in the emulator but not on the phone I've tried both from the UI thread (MediaElement only works on the UI thread) and BackgroundMediaPlayer from the thread that handles the incoming toast var mediaElement = new MediaElement(); using (var tts = new

How to ignore “ease of access” settings on Windows Phone?

旧城冷巷雨未停 提交于 2019-12-11 16:19:41
问题 There are 'TextSize' and 'High contrast' settings in 'ease of access' settings category on Windows Phone. Is there a way to ignore them or make an app to follow my own accessibility styles? 回答1: It's a common bug in apps that they ignore the high contrast settings and hardcode their own colours. So yes: you can do this by doing the wrong thing and hardcoding your settings instead of using the system resources. You can override most system brushes in your app resources in app.xaml and you can

How can I reconnect to BLE device? - UWP

淺唱寂寞╮ 提交于 2019-12-11 14:58:49
问题 Both the device id and the address are random that I CANNOT re-use them for bleDevice = await BluetoothLEDevice.FromIdAsync or bleDevice = await BluetoothLEDevice.FromBluetoothAddressAsync . I came up with 2 possible solutions: (1)ConnectionStatusChange & (2)Pairing, but both cases I have problems. (1) MAIN QUESTION Before I disconnect, I first save the bleDevice as bleDeviceReconnect . Then I unsubscribe, dispose characteristics & service & bluetooth le device, and set them to null. In the

define a style for a button in code behind UWP app

☆樱花仙子☆ 提交于 2019-12-11 14:03:36
问题 I tried to apply a style for my button in the code behind,like this: using Windows.UI.Xaml.Markup; MenuButton2.Style = ButtonStyle(); private Style ButtonStyle() { string xaml = "<Style " + "xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' " + "xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' " + "xmlns:d = 'http://schemas.microsoft.com/expression/blend/2008' " + "TargetType='Button'>" + "<Setter Property='Foreground' Value='#e6e6e6'/>" + " < Setter Property = 'Template

XAML Margin in resources

蓝咒 提交于 2019-12-11 13:58:55
问题 How do I define XAML margin in Windows universal app resources? I tried to define it as <Thickness x:Key="MyMargin" Left="10" Top="20" Right="10" Bottom="20" /> by this does not compile, I get XamlCompiler error WMC0100: XAML Thickness type cannot be constructed. In order to to be constructed in XAML, a type cannot be abstract, interface, nested, generic or a struct, and must have a public default constructor 回答1: The syntax for Windows XAML is as follows: <Thickness x:Key="myMargin">10,20,10

UWP - How to format time in TimePicker_TimeChanged AND Select Time without Buttons inside in TimepickerFlyout

∥☆過路亽.° 提交于 2019-12-11 13:56:08
问题 I am developing UWP App (Win10 VS2015). I have two problems. 1- How can I get the time in this format (4:00 PM or 9:34 AM etc..) in 12hours format, I can get the value without PM/AM via this TimePicker.Time = sender.Time.ToString(@"hh\:mm") , but I need the actual format as I mentioned. XAML Code <TimePicker ClockIdentifier="12HourClock" TimeChanged="TimePicker_TimeChanged" Style="{StaticResource TimePickerStyleCustom}"/> .cs Code private void TimePicker_TimeChanged(object sender,