Questions tagged [winrt-component]

Windows Runtime Component and WinRT Component Libraries are concepts related to language runtime interoperability in Windows Runtime - the modern development platform for Windows and typically used in Windows Store applications. Use this tag to denote any questions related to creating WinRT Components, WinRT Component Libraries and typically to limitations imposed by the rules of creating WinRT Components.

From Wikipedia:

Classes that are compiled to target the WinRT are called WinRT components. They are classes that can be written in any supported language and for any supported platform. The key is the metadata. This metadata makes it possible to interface with the component from any other WinRT language. The runtime requires WinRT components that are built with .NET Framework to use the defined interface types or .NET type interfaces, which automatically map to the first named. Inheritance is as yet not supported in managed WinRT components, except for XAML classes.

Windows Runtime applications can be written using any combinations of the three major runtimes - native, .NET and JS as long as these components are exposed across ABI (application binary interface) following rules such as - public classes need to be sealed, method arguments and return types need to be WinRT types themselves or have direct projection to those (such as Windows.Foundation.Uri with System.Uri or Platform::String and System.String or many of the other basic types having counterparts in different language runtimes).

114 questions
0
votes
1 answer

Different Iitems in GridView

I'm trying to implement the following "start screen" interface for my Windows Store App. I've figured a Gridview would be the component to use. How do i display different type of items in a GridView? Is this a good…
Richard
  • 14,427
  • 9
  • 57
  • 85
0
votes
1 answer

Windows RT Component, Getting the app's core window

I just have a simple question, with a Windows Runtime Component (as in a library) that I am making how do I get the window object for the app? CoreWindow::GetForCurrentThread() throws an exception as it seems that the library runs in a different…
Captain Picard
  • 119
  • 4
  • 12
0
votes
0 answers

awaiting a task on the second run of application causes exception

The Setup: I have a code base that includes a few PCLs one of those PCL is a group of data access classes that call out to my WCF Data service. I've leveraged the Task.Factory.FromAsync to manage the beginExecute/endExecute of calling out to the…
0
votes
0 answers

Using C fopen in Windows 8 Runtime Component

I am using a cross-platform library in a Windows Runtime Component (C++) in a Windows 8.1 Store (Metro) app. This library makes C style file calls such as fopen, stat, etc. These operations work fine when the file is in the local app scope (e.g. in…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
0
votes
1 answer

Access image file in Metro JS project from WinRT component project

I am working on a JavaScript metro application, and I found out that to call a C# code from JavaScript I have to use Windows Runtime Component project in my solution. Now I need to check some image which are added in the JavaScript metro application…
-1
votes
2 answers

WinJS Issues | Windows 8.1 and Windows Phone

I am a C# windows developer. I recently started to work with WinJS. Working with WinJS, I have noticed some challenges and limitations. Can face some new challenges as the community support for WinJS is very less. Below are the few points mentioned…
-1
votes
1 answer

Store Text to String[] Arrays?

How can I store data text into string or array in windows store using C#? I tried this method but it did not work: string[] phparay ={@"F:\Designe- Video\projects\Phpgonehelp\Phpgonehelp\PHPCODE\Php1.txt"}; I thought this would execute any data…
user4967080
-1
votes
2 answers

Brokered Component not working when deploying to client

I created a test App with brokered copmonent and it runs smooth on my machine, but when moved it to a tablet and did all the required settings (regsvr32, icacls), it throws an exception. then I went and downloaded the Microsoft Northwind sample and…
-1
votes
1 answer

How can I programmatically select specified ListBox items?

I've got this code that populates a ListBox when a flyout is opened: private void flyoutOpenPhotosets_Opened(object sender, object e) { lstbxPhotosets.ItemsSource = PhotraxSQLiteUtils.GetPhotosets(); foreach (String pset in…
1 2 3 4 5 6 7
8