windows-8

VB6 on Windows 8 ARM based Tablets

最后都变了- 提交于 2019-12-05 20:37:18
With the announcement that VB6 will be supported on Windows 8, my question is: Is there any place where Microsoft has said (Yes or No) VB6 apps will run on the ARM based Tablets? And, if not, is there any ARM emulator, so we could test our VB6 apps on a Windows 8 ARM Tablet? Scott Whitlock My understanding is: No. Windows 8 will support 2 different APIs: Win32 (and .NET on top of that) and WinRT. The Windows 8 ARM builds will only support WinRT. VB6 is compiled against the Win32 API, it won't work on the ARM tablets. As explained by Adam Mihalcin in this answer . On ARM, there are no 3rd party

Did Win8 add built-in spell checker for legacy apps too?

馋奶兔 提交于 2019-12-05 20:09:09
According to MSDN : In Windows 8, spell checking is built-in to edit controls. Well, I have the option enabled in my settings (both highlight and auto-correct) and I'm not seeing this in Notepad.exe or my own legacy Win32 app. What do I need to do to enable (hopefully it's that simple) this for my application? I did try to follow the info in the article and read a lot of the reference, but it really isn't clear and seems geared towards creating custom providers/solutions, but I'd be happy with any "built-in" behaviors. It is built-in only for Rich Edit controls, EM_SETLANGOPTIONS , IMF

How to gain access to KnownFolders.DocumentsLibrary

半城伤御伤魂 提交于 2019-12-05 19:39:24
I'm trying to save a string of user inputs to a file in a windows runtime app. However I'm getting the error System.UnauthorizedAccessException . How do I gain access to this Library? static private async Task WriteDataToFileAsync(string fileName, string content) { byte[] data = Encoding.Unicode.GetBytes(content); var folder = KnownFolders.DocumentsLibrary; var file = await folder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting); using (var s = await file.OpenStreamForWriteAsync()) { await s.WriteAsync(data, 0, data.Length); } } "Documents library" capability in Visual Studio

List of assemblies in the .NET for Windows 8 profile

非 Y 不嫁゛ 提交于 2019-12-05 19:27:34
I am looking for the list of assemblies in the ".NET for Windows 8" profile. This is the profile used for WIndows 8 Metro-style applications, and like Silverlight doesn't use the full .NET framework. .NET for Metro style apps — list of namespaces Converting your existing .NET Framework code — changes to the various APIs. I don't see any list currently... and WinRT is expected to change alot till the official release in 2012... current information about assemblies/not available in the "Metro/WinRT Client profile": http://blogs.microsoft.co.il/blogs/sasha/archive/2011/09/17/metro-net-framework

Windows 8 - Custom Live Tile

会有一股神秘感。 提交于 2019-12-05 19:24:42
We are developing an app for Windows 8 in C#. Our app involves drawings the user creates, and we'd like to incorporate their drawings into the live tile. I have found examples of setting text and pictures as your app's live tile. Is there a way to do custom stuff to render lines, etc.? Or is the only way to do what we need by rendering a PNG out to our app's AppData directory? You will need to render a PNG or JPG into the apps data directory. The live tile has a fixed number of pre-defined templates and outside of that all you can do is pick the template with a full-tile image and supply your

Using ScrollViewer for image pinch-zoom, keeps snapping left on pan

落花浮王杯 提交于 2019-12-05 19:24:23
问题 I am trying to use a XAML ScrollViewer to 'cheaply' add pinch-zooming to an image. The issue however is that when panning around the image, it keeps snapping to the very left. If I slide it right, it looks fine, but the second I release the image, it snaps back to the left. This problem only persists horizontally - for vertical panning, it works fine. I abstracted this to the most simple test case, and it persists. My XAML code is as follows: <ScrollViewer> <Image Source="http://i.imgur.com

Reuse animations in Windows 8

允我心安 提交于 2019-12-05 19:16:38
I am building Windows Store Application (Winrt, Metro, Windows 8 app). I try give images in gridview animation: after image is loaded from web and opened it populates its cell. I have storyboard for that: <Storyboard x:Name="PopupImageStoryboard"> <DoubleAnimationUsingKeyFrames EnableDependentAnimation="True" Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="image"> <EasingDoubleKeyFrame KeyTime="0" Value="100"/> <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="240"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames EnableDependentAnimation="True"

ListView isSelected

南笙酒味 提交于 2019-12-05 19:02:40
问题 I have an listview in my xaml that i populate with items like this: List<DataLayer.Models.Dictionary> dicts = DataLayer.Manager.getDictionaries(); if (dicts != null) { foreach (DataLayer.Models.Dictionary dict in dicts) { this.itemListView.Items.Add(dict); } } My DataLayer.Models.Dictionary object have an isSelected property along with a Name and a SubName . Name and SubName works fine in the template but how can i go about getting the item to be selected and also updated when user clicks an

ToggleButton doesn't show any state

若如初见. 提交于 2019-12-05 18:17:23
问题 I've got the most simple application ever: single window with one single toggle button: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <ToggleButton Content="This is my ToggleButton" /> </Grid> </Window> When I now click on the toggle button, really nothing happens. When I setup event handler for Checked and Unchecked event,

Can't Receive UDP Windows RT

六月ゝ 毕业季﹏ 提交于 2019-12-05 18:13:52
I'm writing a Windows Store/Metro/Modern/RT app for Windows 8/RT that needs to receive UDP packets on port 49030, but I can't seem to receive any packets. I've followed the tutorial on using DatagramSocket to the letter, and I'm getting nothing. I know my sender program is sending data, as I can see it on wireshark. I also wrote a test C# console app that uses the regular BSD socket API (System.Net.Sockets.Socket) that properly receives the data over UDP. This is the code that works: Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); s.Bind(new IPEndPoint