windows-8

How do I detect multitouch actions in a Windows 8 metro app?

点点圈 提交于 2019-12-07 09:58:49
问题 I am working on a metro app right now and I'm looking to enable multitouch. I've browsed around google, but I can't seem to find any API to support it. Can someone point me in the right direction to support multitouch actions in a Windows 8 Metro app? 回答1: What exactly are you trying to do? There are Touch, Pointer (an abstraction around touch/mouse/stylus), and Manipulation events on every UI element 回答2: In JavaScript you can use the event.pointerId to detected multiple touch inputs. This

How to update a data bound combobox when the source data changes?

我与影子孤独终老i 提交于 2019-12-07 09:44:07
问题 I'm working on a C# Metro style app for Windows 8, and I'm having a problem getting my data bound combo box to update when the source data changes. Here's the data source: public class Range { public string range_name { get; set; } public string range_description { get; set; } public int min { get; set; } public int max { get; set; } } static List<Range> ranges = new List<Range> { new Range { range_name = "Foo", range_description = "Foo: (0-10)", min = 0, max = 10}, new Range { range_name =

SocketAsyncEventArgs.Completed doesn't fire in Windows 8

可紊 提交于 2019-12-07 09:05:20
问题 When I compile this code on a machine with Windows 7 Ultimate and .NET 4 installed, it works just fine but when I try it on one with Windows 8 RTM and .NET 4.5 installed, Complete event never fires. class Program { private static Socket _Socket = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); private static void Main(string[] args) { _Socket.Bind(new IPEndPoint(IPAddress.Any, 5012)); _Socket.Listen(100); var arguments = new SocketAsyncEventArgs(); arguments

“Unable to add dynamic content” using AngularJS for Windows Store App, yet it works

与世无争的帅哥 提交于 2019-12-07 08:48:57
问题 I'm creating an Windows Store App (or metro app, or whatever they call it) using AngularJS. I solved to Javascript RunTime Error "Unable to add dynamic content" which crashed the application (see here) and everything went fine until I beginning to use directive (undestand angular.module.directive). Now, I have a "Unable to add dynamic content" but in the console log. Note that the app do not crash, in fact, the app works as expected! Should I just ignore the error (I don't like that), can I

is there an equivalent of wp7's marketplacereviewtask for windows 8 / winrt / metro style?

拈花ヽ惹草 提交于 2019-12-07 08:45:45
问题 I've looked through MSDN on both the Store API and the Launchers collection, and can't seem to find a task or launcher that would open up an application in the Marketplace application ready for a user to rate, as we could really easily do in Windows Phone 7. Is there an alternative way that I can easily point a user towards leaving a review/rating, or are we going to have to wait until MS provides this, or does it already exist? 回答1: I believe, or should I say "I hope", that the "rate and

Adding all images to the Package.AppXManifest results in a compiler warning

て烟熏妆下的殇ゞ 提交于 2019-12-07 08:38:55
问题 I have specified win8_logo_small.png for the "Small logo" in the Package.appxmanifest setting of my Windows 8 Store project. When I create a store package, I get this warning: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1052,9): warning APPX1621: A mixture of images matching logical name 'win8_logo_small.png' exists in this project with and without the "scale" or "targetsize" qualifier specified. For predictable runtime behavior,

How do I dynamically size a GridView Item?

牧云@^-^@ 提交于 2019-12-07 08:32:26
问题 I have a Grid View that is used to display "tags" which is a list of strings that are dynamic in size. Using the following code: <GridView ItemsSource="{Binding Tags}" ItemTemplate="{StaticResource TagTemplate}" VerticalAlignment="Bottom" Grid.RowSpan="2" SelectionMode="None" /> I use the following Template for the items: <DataTemplate x:Name="TagTemplate"> <Border BorderBrush="Gray" BorderThickness="1" Opacity="75"> <TextBlock Text="{Binding}"/> </Border> </DataTemplate> When added to the

WinRT - Display animated GIF in a control

喜夏-厌秋 提交于 2019-12-07 07:32:44
问题 I need to display an animated GIF in my metro app, but I can't find any control that allows it. (I tried Image , MediaElement and MediaPlayer from the Player Framework) Is it possible somehow to display an animated GIF? 回答1: While I haven't checked if it works and it might not work for you due to airspace issues - you could try hosting your gif in a WebView control. It might be a lot easier than the otherwise better solutions proposed by Norbert and Carl. 回答2: You can achieve this natively by

LINQ Where clause with four &&

*爱你&永不变心* 提交于 2019-12-07 07:11:44
问题 I'm trying to create an LINQ Query with 4 arguments in the Where clause. It's a Windows 8 App project and I'm using an SQLite Database. (SQLite implementation ) Here's the code snippet: public List<FinancialListBoxExpenseItem> retrieveExpenseItems(int month, int year, bool isPaid, StaticResources.FrequencyEnum frequencyEnum) { List<FinancialListBoxExpenseItem> tmpList = null; connection.RunInTransaction(() => { var items = from s in connection.Table<FinancialListBoxExpenseItem>() where (s

Some options on DirectX control panel was disabled on Windows 8

笑着哭i 提交于 2019-12-07 06:47:18
问题 I am using DirectX 9.0 on Windows 8, when I open the DirectX control panel, I found some options was disabled, I am running as a administrator, so this is not an privilege issue. why this happened? I can't turn on the debug version runtime since it is disabled. see picture below. the SDK I am using is June 2010 回答1: Answer from Microsoft XNA forum The Direct3D 9 Developer Runtime (aka D3D9D.DLL) in the legacy DirectX SDK (June 2010) is not compatible with Windows 8. In fact, the entire