windows-8.1

Windows Store Apps: The host name in the certificate is invalid or does not match

空扰寡人 提交于 2019-12-01 07:42:07
问题 in my windows 8.1 application, when I call a web service, I get the following exception: The host name in the certificate is invalid or does not match The code I use: HttpBaseProtocolFilter filter = new HttpBaseProtocolFilter(); filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Untrusted); HttpClient client = new HttpClient(filter); HttpResponseMessage msg = await client.GetAsync(new Uri("[Service_URL]",UriKind.Absolute)); IRandomAccessStream randomAccessStream=

ListView.ContainerFromItem returns null after a new item is added in windows 8.1 store XAML

折月煮酒 提交于 2019-12-01 06:34:46
问题 I have a simple ListView with no item template and the SelectionChanged event setup: <ListView x:Name="list1" HorizontalAlignment="Left" Height="556" Margin="209,93,0,0" VerticalAlignment="Top" Width="1033" SelectionChanged="list1_SelectionChanged" /> private void list1_SelectionChanged(object sender, SelectionChangedEventArgs e) { var container = (sender as ListView).ContainerFromItem(e.AddedItems.First()); var presenter = VisualTreeHelper.GetChild(container, 0); } I also have a test class

WPF Handwriting .NET 4.5 Windows 8: Missing IAWinFX.dll and others

走远了吗. 提交于 2019-12-01 06:30:48
问题 I am trying to use text recognition with the WPF InkCanvas control on a Windows 8.1 computer with .Net 4.5. Note: **WPF InkCanvas control Windows 8.1 **, not Windows Forms, nor Windows Apps! According to the help it should be quite easy: MSDN: Handwriting Recognition However when I get to this paragraph I get stuck. Add a reference to the WPF Ink Analysis assemblies, IAWinFX.dll, IACore.dll, and IALoader.dll, which can be found in \Program Files\Reference Assemblies\Microsoft\Tablet PC\v1.7.

How to stop Explorer starting my application maximized?

给你一囗甜甜゛ 提交于 2019-12-01 06:12:12
问题 Explorer seems to always start my application with SW_MAXIMIZE ( STARTF_USESHOWWINDOW is set in STARTUPINFO.dwFlags). I know that ShowWindow will use this value the first time you/Windows needs to display a window but it has the unfortunate consequence of maximizing a window that should never be maximized. My window is created with CreateDialogIndirectParam and has the following styles: WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_CLIPCHILDREN|DS_MODALFRAME|DS_CENTER|WS_VISIBLE . Why does

How to change TextBox placeholder text color for a specific element, not global

跟風遠走 提交于 2019-12-01 04:41:34
MSDN lists the styles and templates for the TextBox class here . I can override these theme resources by creating a ResourceDictionary in App.xaml like this: <Application.Resources> <ResourceDictionary> <ResourceDictionary.ThemeDictionaries> <ResourceDictionary x:Key="Default"> <SolidColorBrush x:Key="TextBoxPlaceholderTextThemeBrush" Color="Yellow"/> </ResourceDictionary> </ResourceDictionary.ThemeDictionaries> </ResourceDictionary> </Application.Resources> but this will affect every TextBox in my app. How can I set this theme for only a specific element? I've tried putting this dictionary in

How to capture high resolution video and capture photo from it in windows 8.1. I am having a UI jumping effect while tried it

☆樱花仙子☆ 提交于 2019-12-01 03:13:36
问题 Im my camera capturing application am used to take continuous photos using the Camera implemented in a view using CaptureElement . When it taks continuouly capturing the photos the UI is moving back and forth seems like a jump effect. That is the problem am facing. Codes used are the following var cameras = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture); MediaCaptureInitializationSettings settings=new MediaCaptureInitializationSettings { VideoDeviceId = cameras[0].Id,

MQTT-SN with Windows

£可爱£侵袭症+ 提交于 2019-12-01 00:53:44
I have been running MQTT (Mosquito) for a while on Windows and it works great with my Netduino, thanks ppatierno. But now I need to start incorporating mqtt-sn for a wired serial connection from an Arduino. Having a solution capable of wireless is also desirable. I can not find any references for accomplishing this on Windows. Does it need to be some combination of cygwin socat (would prefer to avoid) and Mosquito or what? Really Small Message Broker (RSMB) has support for MQTT-SN over UDP. Source is available from git on http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.rsmb.git . To

Unable to set up Anaconda on Windows : Path problems

时间秒杀一切 提交于 2019-12-01 00:46:17
I've been trying to setup Anaconda 1.8 on Windows 8.1 but cant get Windows to detect it for the life of me. I've tried adding it in the system path by editing the environment variables and adding C:\Anaconda . I've tried the Cygwin route and tried to edit .bashrc and .profile , but the path doesn't seem to reflect the presence of Anaconda. Powershell output PS C:\WINDOWS\system32> python Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. Look closely at your PATH. If you installed Python

Detect/identify the port (HDMI, other) the monitor is connected to in Windows 7/8/10 Win32 C++

萝らか妹 提交于 2019-12-01 00:45:56
I am able to detect all the monitors that are connected to my system. I am able to get a lot of relevant information about them using the following Windows API calls: EnumDisplayMonitors GetMonitorInfo EnumDisplayDevices The system I am developing on is an AIO (all-in-one) that comes with 2 monitors. It has an external HDMI output that I can connect and external monitor. Then, through a port replicator I am able to connect the 4th monitor. All of the monitors are extending my desktop and all of them are working fine. My task is to detect the monitor that is connected through the HDMI port. The

MQTT-SN with Windows

荒凉一梦 提交于 2019-11-30 20:50:30
问题 I have been running MQTT (Mosquito) for a while on Windows and it works great with my Netduino, thanks ppatierno. But now I need to start incorporating mqtt-sn for a wired serial connection from an Arduino. Having a solution capable of wireless is also desirable. I can not find any references for accomplishing this on Windows. Does it need to be some combination of cygwin socat (would prefer to avoid) and Mosquito or what? 回答1: Really Small Message Broker (RSMB) has support for MQTT-SN over