windows-8

How do you bind a ViewModel to the Windows 8 Settings pane in MvvmCross?

蹲街弑〆低调 提交于 2019-12-04 17:13:07
I've been looking at MvvmCross for cross platform mobile development. Since navigation of views is done by calling ShowViewModel<>(), how would you create the settings pane (which is a user control) in Windows 8 using MvvmCross? MvvmCross provides a general ShowViewModel<T> navigation mechanism which uses a Presenter to display and set the DataContext on View s. Views that are shown this way typically cover the 'whole screen' and benefit from automatically constructed ViewModels using CIRS (see http://slodge.blogspot.co.uk/2013/03/v3-new-viewmodel-lifecycle.html ) However, just because

Using MessageBinder.SpecialValues in Windows 8 app not working?

孤街醉人 提交于 2019-12-04 16:50:20
I'm brand new to Caliburn.Micro, so I'm hoping somebody might be able to help me here :). I'm trying to use MessageBinder.SpecialValues in my Windows 8 app, but I can't get it to work. I'm adding a new "$pointerPercentage" to know the percentage (float between 0.0 and 1.0) of how far the mouse is positioned within an element (for a music keyboard in my synthesizer app). Everything else is currently working (so I believe I have Caliburn.Micro wired up properly). I've added the following to the Configure method of my App.xaml.cs: protected override void Configure() { container = new

Nexus 5 (Kitkat 4.4) won't authorize my Windows 8 computer

荒凉一梦 提交于 2019-12-04 16:34:52
问题 I'm trying to do some app development for Android with Eclipse and my Nexus 5. However, after the first time loading MyFirstApp from Eclipse, I can't seem to get the authorization right. When I run adb devices from the command prompt, I end up getting 0350b965215d9854 unauthorized or 0350b965215d9854 offline and even after restarting everything, I only sporadically get the authorization popup on my phone. Even if I select 'always allow from this computer' checkbox (pic below), my computer

Testing a Windows 8 Store App with NUnit

不羁的心 提交于 2019-12-04 16:26:34
问题 I'm currently working on a Windows Store Application (Windows 8) for a class and I'm having problems getting my NUnit tests to run. My Solution/Project setup looks like the following: TheMetroApp.sln SQLite-net.csproj - Class Library (Windows Store Apps). Files are pulled from NuGet. DataModel.csproj - Class Library (Windows Store Apps) UnitTests.csproj - Unit Test Library (Windows Store Apps). NUnit framework is pulled from NuGet. TheMetroApp.csproj - A project file which was pulled from one

How to get GridView.Selected Item's Scroll Position in Windows 8 Metro App

感情迁移 提交于 2019-12-04 16:20:32
I am selecting gridview item using code, so I also need my gridview to Scrolls at selected item's position , I tried GridView.ScrollintoPosition() but it is not working . IS there any way to get the Scroll position of SelectedItem so that I can scroll it using scrollViewer1.ScrollToHorizontalOffsetWithAnimation() There are a few aspects here. I think just gridView.ScrollIntoView(gridView.SelectedItem) should work. It's a bit asynchronous, so the code wouldn't immediately see it scrolled, but if you do something like await Task.Delay(100) - you might be able to see the ScrollViewer offset

Windows 8: How to undo & redo ink using built in Inking functionality?

家住魔仙堡 提交于 2019-12-04 16:17:31
I've implemented inking code in my app based on the simplified inking sample by microsoft : http://code.msdn.microsoft.com/windowsapps/Input-simplified-ink-sample-11614bbf/view/SourceCode First I made a class that saves data of an operation (draw/delete/clear) like this: public enum eInkOperation { Draw, Delete, None } public class InkOperation { public InkStroke Stroke { get; set; } //requred for drawing from undo public eInkOperation Operation { get; set; } public InkOperation(InkStroke stroke, eInkOperation inkOperation) { Stroke = stroke.Clone(); //needs to be cloned for AddStroke to work

How to capture the screen in a Metro C# app

左心房为你撑大大i 提交于 2019-12-04 16:14:02
Anyone got a snip for grabbing a screenshot of your metro app using C#? Or C++? Or VB? Thanks... No, there is no way for a Metro style app to do this. By design they cannot directly interact with other apps outside of themselves, including capturing screenshots which may include other apps. There also isn't a way for a Metro style app to render Xaml elements to a bitmap so you can't readily implement this for your own app. --Rob More details are found here : MSDN Forum I haven't test this solution but it might work if you try to let your app press the Window Key + PrintScreen and it should put

Creating a Sorted Collection View in WinRT

╄→尐↘猪︶ㄣ 提交于 2019-12-04 16:12:37
问题 Has anyone had a go at creating a view that sorts a collection? The ICollectionView interface is present, and it claims to have the same responsibilities as its WPF / SL counterpart (sorting, paging, filtering), however, unless I have missed something, there are no sort methods / properties on the interface. I would be interested to find out how to take a collection of items then sort them via a view in WinRT. Note, I know I can do this manually, however, I want to see how a sorted collection

How does the WinRT Chrome app print without triggering the OS's “Print” dialog?

妖精的绣舞 提交于 2019-12-04 15:35:37
How does the WinRT Chrome app print without triggering the OS's "Print" dialog? From what I've seen elsewhere, every WinRT app must go through the Windows Print dialog to print. But when you print a page from the Chrome Metro app, you get the Chrome Print dialog, and the Windows Print dialog is not triggered. I don't think you can. The one browser app that enjoys the privilege of being your WinRT browser also enjoys special privileges not granted to other WinRT apps. For example, you can bet that Chrome is neither a XAML app nor an HTML/JS app. Yet all WinRT apps (except the one browser app)

Search and Connect to Bluetooth device in Windows 8/8.1 Store apps?

六月ゝ 毕业季﹏ 提交于 2019-12-04 15:30:31
I need to search and connect to a Bluetooth device using a Windows store app. I am using XAML/C# and Windows 8.1. The device supports RFCOMM. What I have done so far: If I pair the device to my system and then search for the device using var devicesInfoCollection = await DeviceInformation.FindAllAsync(); I get the Bluetooth Device, however is there a way to find the device when its still not paired. Thanks There is no way to do that (in Windows 8.1). You have to pair your device first, otherwise the offered service won't show up in the list returned by .FindAllAsync(). 来源: https:/