windows-runtime

HttpUtility.HtmlDecode in WinRT

早过忘川 提交于 2019-12-05 00:34:54
Is there an equivalent to HttpUtility.HtmlDecode in WinRT? I'm developing a MetroStyle app and want to decode strings that came from a XML doc. According to this answer from a Microsoft employee , there's currently no replacement for HtmlDecode in the WinRT that's included in the Windows 8 Developer Preview. However, there will be a replacement in the next pre-release version of WinRT. Use System.Net.WebUtility instead 来源: https://stackoverflow.com/questions/8341882/httputility-htmldecode-in-winrt

Windows 8 Store applications as enterprise software

試著忘記壹切 提交于 2019-12-05 00:24:10
问题 I'm writing a Windows 8 Store application but the application is for internal uses within my company. The application needs to run on 100+ tablets so the installation process needs to be easy. So, I've been using the Windows 8 Store template to create my application but I now need to get this application on my devices. How can I do this without going through the Windows 8 store release process? I've sideloaded the application on a few tablets for testing but I needed a developers licence for

Is it possible to create an IME in WinRT?

跟風遠走 提交于 2019-12-05 00:15:20
问题 The built-in Bengali keyboard layout in Windows 8/ Windows RT is not user-friendly at all. So using an IME is the only option for most users. There are quite a few Bengali Input Method Editors in Win32. They work fine in Windows 8. But for Windows RT there are no solutions at the moment. Is it possible to write IME's using purely WinRT APIs? 回答1: A good information of writing IME is given in this MSDN Link I putting some traits from the article which is important Requirements for Windows 8

How to close a Windows Phone 8.1 app

柔情痞子 提交于 2019-12-05 00:11:25
In WP7 and WP8 I just needed to clear the backstack in a page, then press Back button and the app is closed. In WP8.1 I do Frame.BackStack.Clear(), press Back and the app just minimizes.. How to kill it with Back button? You can add, in your main page definition: Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; Then private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e) { if (!e.Handled && Frame.CurrentSourcePageType.FullName == "YourApp.MainPage") Application.Current.Exit(); } Warning: As others said, you should

Give Java application a Metro Look and Feel in Windows 8 [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-05 00:06:28
I have already developed a Java application which is working well in Windows XP, Windows 7 & Windows 8 consumer preview. The application is developed using GWT, CSS3 with Spring framework,and built-in Jetty server which is used to launch the application using the Internet explorer. After exploring throught the metro apps principles, i want to give my application users an extra benefit of using is as a metro app I read about DWR , gwt-explorer . But still i'm not sure. Is there any other workaround with minimum code changes? Thank you Mr.Andrew Thompson for helping me. You could mimic Metro

Getting a Stream from a resource file / content

南笙酒味 提交于 2019-12-04 23:33:55
Is this the correct/only way of getting a Stream from a resource file? Uri uri = new Uri(fullPath); StorageFile storageFile = await Windows.Storage.StorageFile. GetFileFromApplicationUriAsync(uri); IRandomAccessStreamWithContentType randomAccessStream = await storageFile.OpenReadAsync(); IInputStream resourceStream = (IInputStream) randomAccessStream.GetInputStreamAt(0); All my other sources (http and local storage) return a Stream object, and it is painful to have to if-else code that uses one or the other. I've also tried to just create a MemoryStream out of it, but I can't even find a way

Building Windows 8 Metro App on Windows 7 with Visual Studio 2010

坚强是说给别人听的谎言 提交于 2019-12-04 23:06:06
My Visual Studio can't seem to build any of the Metro Sample applications. As I've never really used this IDE before, I've pretty much given up. Can anyone direct me to a sample application that is already built and preferably some source code along with it for reference? Note: I have a copy of Windows 7 AND 8. However I can't seem to build Microsoft's File Access Sample in my copy of Visual Studio 2010 Ultimate. I'm trying to test one of my Win7 applications in Metro mode of Win8 (the application may be called for use during a user's session in a given Metro app). Metro Apps (that is,

Page constructor gets called again when navigating back in Windows 8 C# App

孤人 提交于 2019-12-04 22:54:32
问题 I have found that in Windows 8 apps, a Page's constructor always gets called again when navigating back to this page, however this is not the case in Windows Phone 7 apps. Because of this behavior all the properties of that page get lost and you need to somehow store them and reassign them after the page is reactivated. At the moment I am using the SaveState method to save the data and reassign the data in LoadState method. Both of the methods are built-in in the sample Grid/Split App. I

Crop image with dynamic rectangle coordinate

这一生的挚爱 提交于 2019-12-04 22:48:42
I have a Image and I want crop it by using a rectangle, code below is the code I put a image and draw a rectangle at middle of the image: MainPage.Xaml: <Canvas x:Name="canvas" HorizontalAlignment="Center" VerticalAlignment="Center" Width="340" Height="480" Background="Blue"> <Image x:Name="photo" HorizontalAlignment="Center" VerticalAlignment="Center" ManipulationMode="All"> <Image.RenderTransform> <CompositeTransform/> </Image.RenderTransform> </Image> <Path Stroke="Black" StrokeThickness="1"> <Path.Data> <RectangleGeometry Rect="0,0,340,480"/> </Path.Data> </Path> </Canvas> I able to move

How do I use INotifyPropertyChanged in WinRT?

二次信任 提交于 2019-12-04 22:17:52
I'm a total newbie, just learning the basics of DataContext and the MVVM model. I've now got a grid bound to a view model object which implements INotifyPropertyChanged , however it appears that UpdateSourceTrigger (which all the WPF tutorials tell me to use) is not available for WinRT / Metro Style apps! How do I implement INotifyPropertyChanged then? I'm at the end of my tether here. I've spend nearly the whole day on the most basic of app examples, simply trying to get a grid to update after I click something. The only way I've managed to do this so far is to create an entirely new instance