windows-8.1

Load BitmapImage into WriteableBitmap but no method existing

倖福魔咒の 提交于 2019-12-30 12:23:26
问题 The constructor of WriteableBitmap class with Windows 8 only takes two arguments: the height and the width of this object. Meanwhile with Silverlight it accepts a BitmapImage object as argument. (Verified on MSDN : WriteableBitmap.WriteableBitmap constructor) I would like to load this BitmapImage because I'm trying to blur an image which already exists on my Assets folder. 回答1: Thanks for your help, I succeed to blur my image. Here is the sample in order to link the BitmapImage into the

Windows.Web.Http.HttpClient + WEB API Windows Authentication

只愿长相守 提交于 2019-12-30 10:39:07
问题 Im using Windows.Web.Http.HttpClient to connect to my WEB API. Application haven't prompted for userid and password, but recently i changed WEB API by moving AuthorizeAttribute filter from Action to Class level. Now my Windows store 8.1 application prompt for user id and password. Please let me know how to set HttpClient to not prompt the login and password. Can any1 suggest me do i need to add header to my httpcleint using (Windows.Web.Http.HttpClient httpClient = new Windows.Web.Http

Failed to find the MSVC compiler version 10.0 on your system

梦想与她 提交于 2019-12-30 10:35:49
问题 Trying to install PySide and I am getting this error: running build Python architecture is 64bit nmake not found. Trying to initialize the MSVC env... Searching MSVC compiler version 10.0 error: Failed to find the MSVC compiler version 10.0 on your system. I have minGW, QT 4.8 vs 2010 and mingw versions, Cmake. Now I have a feeling that something is missing from my PATH, but I'm not sure where and what should it point. My current PATH: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:

Unable to set up Anaconda on Windows : Path problems

三世轮回 提交于 2019-12-30 07:27:09
问题 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

How to animate a Popup when it hides?

三世轮回 提交于 2019-12-30 04:59:05
问题 i created a Popup Style for using in my windows 8.1 application. And i applied PopupThemeTransition to it's ChildTransitions Property. <Style x:Key="AnimatedPopupStyle" TargetType="Popup"> <Setter Property="IsLightDismissEnabled" Value="False"/> <Setter Property="ChildTransitions"> <Setter.Value> <TransitionCollection> <PopupThemeTransition/> </TransitionCollection> </Setter.Value> </Setter> </Style> My problem is that it animates when it Opens & not animating when closing. What to do with

Calculate Horizontal Offset to scroll ListView to the center of the SelectedItem

为君一笑 提交于 2019-12-30 01:35:15
问题 I am building a photo application, using a FlipView and a listView as a Pagination. When I click on the thumbnail picture in the ListView it shows me the same picture in the FlipView . And when I swipe into the FlipView , any photo selected will select the same picture in the ListView . This is done by adding to both of them: To the ListView : SelectedIndex="{Binding Path=SelectedIndex, ElementName=flipView1, Mode=TwoWay} And to the FlipView : SelectedIndex="{Binding Path=SelectedIndex,

How to access any control inside Hubsection Datatemplate in Windows 8.1 store

谁都会走 提交于 2019-12-29 07:35:07
问题 Please tell me how to access flipview control inside Hubsection * DataTemplate * 回答1: I don't know if you managed to solve your problem already. If you didn't here is how. private DependencyObject FindChildControl<T>(DependencyObject control, string ctrlName) { int childNumber = VisualTreeHelper.GetChildrenCount(control); for (int i = 0; i < childNumber; i++) { DependencyObject child = VisualTreeHelper.GetChild(control, i); FrameworkElement fe = child as FrameworkElement; // Not a framework

Change App language at RunTime on-the-fly

前提是你 提交于 2019-12-29 07:32:10
问题 I'm currently developing a metro app in which the user can change current language at runtime and all the custom controls that are loaded must update their text regarding to the new language. Problem is that when I change the language using the following code, the app language changes but it will only update text when I restart my app because the pages and controls that are already rendered are cached. LocalizationManager.UICulture = new System.Globalization.CultureInfo((string)((ComboBoxItem

How to add Command Behavior in windows store 8.1 MVVM application

╄→гoц情女王★ 提交于 2019-12-29 04:01:48
问题 I want to invoke a command on TextChange event of new windows phone 8.1 AutoCompleteBox Control. I am using MVVM Light. 回答1: In new windows store 8.1 apps there is a new SDK Behavior SDK for adding behaviors in the application. it is not added by default you have to add this Extension in your project. below is how to add this extension in your project. install the Behavior SDK from the list. Now in your XAML page add following namespaces to InvokeActionCommand that is capable of invoking

How can I determine bandwidth on Windows 7, 8.1 and 10?

巧了我就是萌 提交于 2019-12-25 16:17:12
问题 So far I have struggled to get MbnInterfaceManager working (see hresult from IMbnInterfaceManager::GetInterfaces when no MBN device exists), so instead I built and debugged an application with no problems from within Visual Studio 2015 that executed this WMI query in C# (see also the Win32_PerfFormattedData_Tcpip_NetworkInterface documentation): string query = "SELECT * FROM Win32_PerfRawData_Tcpip_NetworkInterface"; ManagementObjectSearcher moSearch = new ManagementObjectSearcher(query);