windows-runtime

Apply Pointer up/down effect to windows phone 8.1 app

混江龙づ霸主 提交于 2019-12-09 19:30:25
问题 I've migrated my windows phone 8 app to windows phone 8.1 runtime. Apparently the tilt effect is included. How would I add this to a custom control? Thanks, 回答1: Hence you are targeting rintime, you may look at Windows.UI.Xaml.Media.Animation classes and espestially: PointerDownThemeAnimation and PointerUpThemeAnimation - there are simple examples there. Mostly what you have to do is put those animations into VisualStates and VisualTransitions, simple example can look like this: <Style x:Key=

What is the equivalent to “OnBackKeyPress”

拥有回忆 提交于 2019-12-09 17:53:36
问题 In Windows Phone 8.0 I used this to handle the back button: protected override void OnBackKeyPress(CancelEventArgs e) { base.OnBackKeyPress(e); } This Event does not exists on the "Page" control. How can I handle a click on the back button in WP 8.1? 回答1: Take a look at Windows.Phone.UI.Input.HardwareButtons. If you add a Basic Page to your project then VS will add a NavigationHelper class to your project which helps with Navigating thru your App, you can also see in the source code that it

Unable to load DLL 'sqlite3' in SQLite Net Platform WinRT

这一生的挚爱 提交于 2019-12-09 14:42:09
问题 I am in process of developing native app using Xamarin.Forms. But the problem I am facing now is not related with Xamarin. I added new Windows Phone project by right-click > Add > New Project -> Windows Phone Apps -> Blank App(Windows Phone). in my existing Xamarin project in Visual Studio premium 2013. I am using sqlitenet pcl for database connection. I have below code in my project. public ISQLitePlatform CreateSqlitePlatformInterface() { return new SQLitePlatformWinRT(); } When it executes

How to create variable sized group panels to fit the items in Windows 8 XAML

笑着哭i 提交于 2019-12-09 13:44:27
问题 The problem I'm having is the grouped grid view sizes all of its groups to the size of the first group as in the screenshot below: I need the groups to have different widths to accomodate their children. In this case the second group should be wider and the third group should be narrower. The code for the test app I wrote is as below: XAML (MainPage.xaml) <Page x:Class="GroupingBugTest.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas

Is it possible to make a WinRT service

為{幸葍}努か 提交于 2019-12-09 13:21:16
问题 Since WinRT have unique capabilities, I wonder if it were to make a Windows Service that is targeted to WinRT? If it were not possible, is the workaround to make an invisible WinRT/Metro application possible? Thanks a lot. 回答1: No is the correct answer. A metro application executes inside the Metro shell and inside an execution container that creates a sandbox away from system resources, including services. For this reason a metro app cannot access a local service. Similarly, for this reason,

How to Display Gridview items with variable width in Windows 8?

ⅰ亾dé卋堺 提交于 2019-12-09 13:15:36
问题 My GridView items having the size of it's first item size . How do i can change this behaviour ? How to display GridView items with variable Width as per the content ? I want to show the first one but i am getting second one. Any suggestion to do that? 回答1: Check Windows 8 GridView and Variable-Sized Items and Different Sized Tile Items in WinRT GridView and also check Variable Sized Grid Template Hope this help 回答2: You can create such view of GridView by setting ItemsPanel to WrapPanel ,

how to create collection (1:n) relation

不羁岁月 提交于 2019-12-09 10:49:18
问题 I'm implementing SQLite database in my Windows Store application (WinRT). I want to relation between two tables (1:n) Book (1) - Chapter (n) class Book { [SQLite.AutoIncrement, SQLite.PrimaryKey] public int Id { get; set; } public String Title { get; set; } public String Description { get; set; } public String Author { get; set; } public List<Chapter> Chapters { get; set; } public Book() { this.Chapeters = new List<Chapter>(); } } I get - $exception {"Don't know about System.Collections

Does WinRT have Garbage Collection?

大城市里の小女人 提交于 2019-12-09 07:53:52
问题 Does WinRT have Garbage Collection? Or does it do reference counting as does COM? 回答1: I found this article, which cites Microsoft's Martyn Lovell: "WinRT objects are reference counted like COM for memory management, with weak references to avoid circularity." Apparently this was mentioned at his talk on WinRT internals at the BUILD convention. 来源: https://stackoverflow.com/questions/7424710/does-winrt-have-garbage-collection

Change GridView GroupStyle in VisualState

眉间皱痕 提交于 2019-12-09 06:54:24
In my Windows 8.1 WinRT/XAML app I have a grouped GridView with a corresponding GroupStyle : <GridView ItemsSource="{Binding Source={StaticResource groupedViewSource}}"> ... <GridView.GroupStyle> <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate> ... </DataTemplate> </GroupStyle.HeaderTemplate> <GroupStyle.Panel> <ItemsPanelTemplate> <VariableSizedWrapGrid Style="{StaticResource NormalWrapGridStyle}" /> </ItemsPanelTemplate> </GroupStyle.Panel> </GroupStyle> </GridView.GroupStyle> </GridView> Now this is the version for a fullscreen view. What I want is to adapt the UI of the GridView for

Using Custom Windows Runtime Components in Non-Metro Applications

不羁的心 提交于 2019-12-09 06:49:32
问题 Imagine a scenario where you have a complex framework of WinRT code that you would like to access from both C++ Metro Apps and C# Desktop Apps. Is there any way to include WinMD in a non-Metro application? 回答1: UPDATE: This only works with Windows 8. Microsoft disabled this in Windows 8.1. Yes, there is. The block when attempting to add them via the reference manager appears to be implemented inside Visual Studio itself. Once added, Visual Studio will treat the referenced file as it would any