windows-8.1

How to bind a TextBlock in a template, defining the ListBoxItem of a ListBox, to the IsSelected property of the parent ListBoxItem?

陌路散爱 提交于 2019-12-11 04:59:45
问题 I have a List box defined like this: <ListBox x:Name="EmailList" ItemsSource="{Binding MailBoxManager.Inbox.EmailList}" SelectedItem="{Binding SelectedMessage, Mode=TwoWay}" Grid.Row="1"> <ListBox.ItemTemplate> <DataTemplate> <usrctrls:MessageSummary /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> The UserControl is defined like this: <UserControl x:Class="UserControls.MessageSummary" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com

Visual Studio 2013 Designer View not showing the UI Elements

我的未来我决定 提交于 2019-12-11 04:57:27
问题 I started facing the weird problem recently on my new laptop. I installed a fresh copy of Windows 8.1 and then Visual Studio Ultimate 2013. It worked fine for the first few hours, but the next time I opened it, it did not show the UI elements in the XAML Designer view. There's no error, the XAML code is perfectly alright and then on hovering over the supposed-to-be-visible elements, their outline is visible as well as selectable. Surprisingly this is the case only with all new Windows Store

How to show Marquee style border around object in xaml C# Windows 8

大憨熊 提交于 2019-12-11 04:50:04
问题 Is there a way to show marquee style border around objects in WinRT? I see there is stroke style of border, but I want it to move around the object like the lasso tool border in Photoshop or Paint. Also I need to decide what should be the color of the gap between two strokes of the dashes. Thank you. 回答1: This is what you want, since you want the fill color: <Page.Resources> <Storyboard RepeatBehavior="Forever" x:Name="Test"> <DoubleAnimationUsingKeyFrames EnableDependentAnimation="True"

Bluetooth Low Energy connection

独自空忆成欢 提交于 2019-12-11 04:14:10
问题 I'm trying to develop an app for Win 8.1 PC to communicate with my BLE device. I read that in Win 8 there is no something like scanning functionality for BLE so I read some examples from MS and try to simple connect to my device with UUID: "A9DA45B4-34F8-C660-591D-F6918B5B988C" So I write some code based on ms examples: var devices = await DeviceInformation.FindAllAsync( GattDeviceService.GetDeviceSelectorFromUuid(new Guid("A9DA45B4-34F8-C660-591D-F6918B5B988C")), new string[] { "System

Win8 - Winforms mouse transparent form with clickable controls in it

限于喜欢 提交于 2019-12-11 03:45:33
问题 I'm trying to make a mouse transparent form in win8 and winforms, that contains controls that are clickable. I'm able to make the form mouse transparent, using this code int initialStyle = GetWindowLong(this.Handle, -20); SetWindowLong(this.Handle, -20, initialStyle | 0x80000 | 0x20); (on win8 the WndProc approach does not work) But when I make the form mouse transparent, the controls that are contained in this form are also mouse transparent What can I do? 回答1: You can create a Form and set

Flyout.showAt() ArgumentException based on Content

ⅰ亾dé卋堺 提交于 2019-12-11 03:42:17
问题 I am trying to use a Flyout this way this.DefaultViewModel["SelectedVideo"] = vi; Flyout f = new Flyout(); f.Content = this.videoFlyoutContent; f.ShowAt(videosGrid); // HERE I GET AN EXCEPTION while I have the following XAML code <Page.Resource> <!-- ................ --> <!-- ................ --> <x:Double x:Key="FlyoutWidth">500</x:Double> <x:Double x:Key="FlyoutHeight">440</x:Double> <x:Double x:Key="FlyoutTextWidth">400</x:Double> <ContentControl x:Name="videoFlyoutContent"> <Grid

Change global application font in a Windows 8.1 app

左心房为你撑大大i 提交于 2019-12-11 03:32:13
问题 There are lots of articles online about how to embed custom fonts, create font styles and apply them to controls. But how can one override the global application font such that each control uses that font instead of setting the FontFamily property manually for each control. In my case, I do not wish to use a custom font as the global font but a system font such as Tahoma or Calibri. 回答1: In winrt default Fontfamily for all controls ContentPresenter is Segoe Ui and its key is

Installshield 2011 - crashes at build between “Embedding manifest” and signing

自作多情 提交于 2019-12-11 03:10:08
问题 Since upgrading to a windows 8 & 8.1 machine all my InstallShield projects began failing at signing. The error occurs after or during the embedding manifest into setup.exe, with the following error: Exception ACCESS_VIOLATION (0xc0000005) at address 0x76b34db0 trying to read address 0x00000001. File : C:\Program Files (x86)\InstallShield\2011\System\isdev.exe Version : 17.0.0.714 Exception : c0000005 Address : 76b34db0 Access Type : read Access Address : 00000001 ... When I opted to debug

value error trying to install numpy on windows 8

谁说胖子不能爱 提交于 2019-12-11 02:54:30
问题 I am trying to set up a python enviorenment on a computer running Windows 8.1. I have installed Python 3.4 successfully, but when I try to install numpy with pip I run in to the following error: raise ValueError<str<list<result.keys<>>>> ValueError: ['path'] In looking around for similar problems I have found and tried this solution: https://stackoverflow.com/a/10558328/2362877 Taking in to account that I have Visual Studio 2010 installed. I have also tried running vcvarsal.bat to no avail. I

Class Library (Portable for Universal Apps) System.Diagnostics.StackTrace limitations and referencing assemblies targeted at another runtime

[亡魂溺海] 提交于 2019-12-11 02:01:42
问题 I use Visual Studio 2013 Ultimate Update 4 to create a new project of type "Class Library (Portable for Universal Apps)". The resulting PCL is targeted at two platforms i.e. Windows 8.1 and Windows Phone 8.1 and this is what I need. System.Diagnostics.StackTrace class is not supported in this subset. For my other applications I heavily utilize this class for purposes of tracing and exception logging. After a while of trial and error I found out that I can simply set a reference from my