windows-8

How to map sqlite tables and columns to c# classes in windows 8

淺唱寂寞╮ 提交于 2019-12-05 17:33:57
I'm building an my first app (I'm a complete noob) in C# for windows 8. And I have some classes that I have created. When the app runs it needs to read data from a sqlite database. I have a class for each table, but I don't know how to map each class property to its respective column in the database. I can't seem to find any info and all the stuff I've seen seems to map them automatically or doesn't mention how it's done e.g. public class Person { [PrimaryKey, AutoIncrement] public int Id { get; set; } [MaxLength(30)] public string Name { get; set; } [MaxLength(30)] public string Surname { get

Enabling “Toast Notifications” for Windows 8 Store App

天大地大妈咪最大 提交于 2019-12-05 17:12:37
I'd like to enable Toast Notifications for a Windows 8 Store Application i am building. The documentation says: "Simply set the Toast Capable option to "Yes" in the Notifications section of the Application UI tab." (Taken from How to opt in for toast notifications ) Unfortunately, the Visual Studio manifest editor doesn't seem to have this option. Am i missing anything? *I know this can be done by editing the manifest file, but i am just wondering why it is missing from Visual Studio It is accessible from the Visual Studio manifest editor. Make sure that you are on the "Application UI" tab.

Does WinRT access the NT kernel directly (when it needs OS support) or does it go through Win32?

时光毁灭记忆、已成空白 提交于 2019-12-05 16:44:35
问题 How is WinRT implemented beneath the hood? Uses NT directly kernel directly or is it implemented on top of Win32/64? 回答1: Both - some parts of the Windows runtime are new top-to-bottom (and thus interact directly with kernel services), other parts of the Windows runtime (WinRT) use existing services in Windows. 来源: https://stackoverflow.com/questions/8254988/does-winrt-access-the-nt-kernel-directly-when-it-needs-os-support-or-does-it-g

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

早过忘川 提交于 2019-12-05 16:30:01
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? I believe, or should I say "I hope", that the "rate and review" command appears automatically under the settings charm for all applications downloaded from the store.

LINQ Where clause with four &&

浪尽此生 提交于 2019-12-05 16:18:57
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.expenseDateNextPayment.Month == month) && (s.expenseDateNextPayment.Year == year) && (s

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

安稳与你 提交于 2019-12-05 16:14:37
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 = "Bar", range_description = "Bar: (5-15)", min = 5, max = 15}, new Range { range_name = "Baz", range

Make the button transparent on mouse over

家住魔仙堡 提交于 2019-12-05 15:40:19
I'm building a metro style application using Microsoft Visual Studio Express 2012. I am very new to this applications and I need help. I have defined a button in XAML with button background is set from an image. At mouse over the button changes it background to blank. I want to change it an make the image about 50% transparent on mouse over. Is that possible? Any help? Thank you. I have declared the button as follows: <Button Height="100" Width="100" Margin="0,0,0,0"> <Button.Background> <ImageBrush ImageSource="../Images/home.png"></ImageBrush> </Button.Background> </Button> The Interactivity

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 15:02:48
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? What exactly are you trying to do? There are Touch, Pointer (an abstraction around touch/mouse/stylus), and Manipulation events on every UI element In JavaScript you can use the event.pointerId to detected multiple touch inputs. This identifier gives every new input an id. When you want to get multiplie touches for a move with the finger, you can

Windows 8 printing Postscript file programmatically

情到浓时终转凉″ 提交于 2019-12-05 14:32:50
I've spotted a strange problem while printing a Postscript file . So here is my setup: I have a Windows 8 PC , on this PC there is an C# application "NetworkPrintTest.exe", which, when executed, should open a PDF, generate a Postscript file and ultimately should print it. But it doesn't do anything. I don't get an error but it won't print either. The same program runs error free on windows 7 and i even get the printer to print the file. As mentioned above the .ps file is generated successfully on both operating systems but the printing failes. Here is my source code which should print the file

Check if user added new music on Windows Phone 8.1

人走茶凉 提交于 2019-12-05 13:40:28
I'm trying to find out if a user added new music to the Music folder on the phone since app was last used. I try to do this by checking the DateModified of the Music folder (which updates correctly on the computer when adding new music to the phone): async void GetModifiedDate () { BasicProperties props = await KnownFolders.MusicLibrary.GetBasicPropertiesAsync(); Debug.WriteLine("DATEMODIFIED: " + props.DateModified.ToString()); } Unfortunately this returns: DATEMODIFIED: 1/1/1601 1:00:00 AM +01:00 Am I doing something wrong or is there another quick way to check if user added new music?