windows-8

NetworkInformation NetworkStatusChanged event fired twice

自闭症网瘾萝莉.ら 提交于 2019-12-13 12:33:10
问题 I am listening for a network change in my WinRT application using what I believe is the recommended approach. I subscribe to the event using this code. (I have tried in a number of places but currently I have it in the page OnNavigatedTo method). NetworkInformation.NetworkStatusChanged += NetworkInformation_NetworkStatusChanged; Then in the OnNvaigatedFrom method I remove it: NetworkInformation.NetworkStatusChanged -= NetworkInformation_NetworkStatusChanged; When I remove the network cable

show progress bar/ring in windows 8 app while a webpage is loading in webview control

会有一股神秘感。 提交于 2019-12-13 12:31:47
问题 I have the experience of adding the progress bars and progress rings while calling async functions . That has been an easy job as it relies on only IsIndeterminate and IsActive properties of progress bar and progress ring respectively . Now my question is that , how to show a progress bar/ring in the app while some webpage is loading in the webview control of a windows 8 app . I am searching for a property or event , that tells the web page in web view is currently in loading state . If

Visual Studio 2015 Enterprise Setup failed

混江龙づ霸主 提交于 2019-12-13 09:34:35
问题 I have windows 8.1 pro 4 GB RAM. Visual studio installation setup shows error: Microsoft .net framework 4.6 the extended attributes are inconsistent I chose custom installation and only selected "Microsoft Web Developer Tools" . I have a brand new laptop and no other software is installed. Ay ideas how to solve this error and install visual studio 2015 in my machine? Thanks very much 回答1: First download and install .Net Framework 4.6. Then Run Visual studio setup Choose custom installation

Windows 8 Store App with Windows Phone App

断了今生、忘了曾经 提交于 2019-12-13 08:27:47
问题 May I know, can A Windows 8 Store App source project (Metro), link with binary reference initially created for Windows Phone 7? A Windows 8 Store App source project (Metro), link with binary reference initially created for Windows Phone 8? A binary Windows 8 Store App, run in Windows Phone 8? I had tested (1) so far, by compiling a Windows 8 Store App project using Microsoft Face SDK for WP7. I get a mystery compilation error. The "GenerateResource" task failed unexpectedly. System

How to get memory range used by a specific device with WMI (Windows Management Instrumentation)

别等时光非礼了梦想. 提交于 2019-12-13 07:23:01
问题 How can I get the resources used by a specific device (in particular, the memory range) of a specific device knowing it's name and/or DeviceID and/or the Pci bus number, Device number and function number? For example, I want to know what memory range an Intel AHCI Controller uses. With the query "SELECT * FROM Win32_IDEController WHERE Name LIKE\"%ahci%\"" I can get some info like the complete name, device id, and other informations. Then I thought that using the complete name or device id I

Stop YouTube Video on Back Button of Windows Metro App 8.1

纵饮孤独 提交于 2019-12-13 07:09:34
问题 I have a page on which i am showing multiple youtube videos as webviews. When i play any video, then correspoding video starts playing. But When I click on the back button of the App i should be stop then but its running in background(can hear voice of video). here is the code of back button: protected void GoBack(object sender, RoutedEventArgs e) { ((Frame)Window.Current.Content).GoBack(); } Tell me how i can dispose of this webview or can stop video. Thanks 回答1: First make sure that the

Erasing the content from canvas where mouse is being dragged

痞子三分冷 提交于 2019-12-13 06:20:49
问题 I am developing a paint like application in metro style. I want to apply a eraser functionality. So how can I make such a tool for erasing the content from canvas like we do in MS paint ? I don't want to clear whole canvas, wherever I click or drag the pointer, the path traveled by the pointer should be erased. 回答1: The important thing to remember is that you're not "erasing." You're painting with small while pixels over the area that the mouse has traveled. There's 100 different ways to do

ScrollViewer: Disable Snap (elastic band effect)

大兔子大兔子 提交于 2019-12-13 06:19:38
问题 I have a ScrollViewer on my MainPage that contains all other elements (except the AppBars of course). Scrolling works fine, but I want to disable the snap behavior (you drag the whole page to the left, release it and it will snap back). See the image (Background of ScrollViewer: Black, Background of Grid: White). So how can I disable this behavior? Also known as overscroll or bounce effect. I just found out about IsScrollInertiaEnabled , but setting this to false doesn't help. <ScrollViewer

Windows 8 Store App DirectX 11.1 Enabling Blendstate with loaded PNG texture with alpha

跟風遠走 提交于 2019-12-13 06:17:40
问题 I am loading a PNG with transparency to a texture with the following code: ComPtr<IWICStream> stream; ComPtr<IWICBitmapDecoder> bitmapDecoder; ComPtr<IWICBitmapFrameDecode> bitmapFrame; ComPtr<IWICFormatConverter> formatConverter; unsigned int width, height D3D11_SUBRESOURCE_DATA resourceData; ZeroMemory(&resourceData, sizeof(resourceData)); DX::ThrowIfFailed( m_wicFactory->CreateStream(&stream) ); DX::ThrowIfFailed( stream->InitializeFromMemory( rawFileBytes->Data, rawFileBytes->Length) );

GridView width inherited from parent

与世无争的帅哥 提交于 2019-12-13 06:15:51
问题 I have a StackPanel with a fixed width. Inside that StackPanel I have a GridView , which Width should be limited to its parent width (smth like Width="*"). My sample XAML: <StackPanel Orientation="Horizontal" Width="300" Height="300"> <TextBox Width="50" Margin="0" Height="50" Background="Blue"></TextBox> <GridView > <GridView.ItemsPanel> <ItemsPanelTemplate> <WrapGrid Orientation="Horizontal" FlowDirection="LeftToRight" /> </ItemsPanelTemplate> </GridView.ItemsPanel> <GridView.Items>