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

Can we add application icon in notification area of task bar from windows store app?

Is it possible to add application icon in notification area of task bar from windows store app.? which class is responsible for that.
0
votes
1 answer

Detect bluetooth scanner and read barcode when available in Win RT

I am able to scan a bar code using Bluetooth scanner on a button click in VS 2015, but I want to write a code, which would detect my bluetooth device any time, when I try to scan any barcode and not only on a button click.
daisy
  • 277
  • 1
  • 5
  • 16
0
votes
0 answers

Deploying app with brokered component in physical device

I am developing an app using brokered components, using the Microsoft templates (https://visualstudiogallery.msdn.microsoft.com/527286e4-b06a-4234-adde-d313c9c3c23e) and following this step-by-step…
Fran_gg7
  • 717
  • 3
  • 13
  • 30
0
votes
1 answer

How can I see pdf file directly from my windows phone 8.1 app, not from other pdf reader?

How can I see pdf file directly from my windows phone 8.1 app, not from other pdf reader? Is there free component?
Denis Worker
  • 39
  • 1
  • 5
0
votes
1 answer

Parse through a struct and returning values to C# from C++ function

.h file public ref class Lockscreen sealed { public: Lockscreen(); _BADGE_INFORMATION GetLockscreenNotificationData(); }; .cpp file _BADGE_INFORMATION…
Apoorva
  • 1,047
  • 13
  • 33
0
votes
1 answer

Windows 8 compatible camera implementation

I have an existing applicaton in winforms. It is using third party library (Touchless.Dll and WebCam.lib) to enable image capturing functionality. Now i want to make it compatible with Windows 8.1 tablets. When i tried to apply WinRT API in winform…
Arun
  • 182
  • 1
  • 2
  • 14
0
votes
2 answers

Windows 8 XAML possible bug - using images causes text controls to disappear

I have a strange problem happening intermittently with my apps where textbox controls would disappear intermittently. I have narrowed the cause of this down to having image files (small logos etc) on my page. I have managed to create a simple…
RCairns
  • 155
  • 13
0
votes
1 answer

WinRT Background Task with Time Trigger Error

I have defined my BackgroundTask as follows: public sealed class BackgroundSynchronization:IBackgroundTask { public async void Run(IBackgroundTaskInstance taskInstance) { BackgroundTaskDeferral _deferral =…
0
votes
2 answers

How to Share File to specific email address

I'm develop a windows store app using winRT C++. I can share a file through email but it cannot specific a receiver email address. Bellow is a part of my code to sharing a file:- DataRequest^ request = e->Request; request->Data->Properties->Title =…
0
votes
1 answer

WinRT Gridview focus/selected item behaviour

A am writing a WinRT application which utilises a Gridview to display some data. The Gridview has a SelectionMode of Extended so that as the user navigates the grid with the cursor keys the selected item moves with them (plus I have multi-select…
Slade
  • 2,311
  • 3
  • 21
  • 25
0
votes
1 answer

What causes D2DERR_INVALID_GRAPH_CONFIGURATION?

When I'm playing with this MSDN sample, I just fail to add a blur effect on an ID2D1Image created by DXGISurface and filled with some rectangles. Here is my EndDraw method: void Scenario1ImageSource::EndDraw() { // Remove the transform and clip…
Eddie
  • 661
  • 1
  • 5
  • 13
0
votes
1 answer

How can I give WinRT XAML controls a disabled appearance?

I have a flyout which contains DatePicker controls and associated TextBlocks allowing the user to select date range criteria. I also have a "Use All Dates" ToggleSwitch. If that has been set to "On," I want to disable the date range controls, or at…
0
votes
1 answer

Add reference of a Windows Runtime Component to an existing project

I have a Windows Phone 8.1 solution with the following projects: MainApplication (for the application itself) Portable Class Library (PCL) (for some useful methods and whatnot) Windows Runtime Component (WinRT) (for Background Tasks) I'm trying to…
0
votes
1 answer
0
votes
1 answer

Accessing form elements in a form belonging to a foreign component (WinRT)?

I have a Windows Store App that references a package that performs OAuth authorization to make working with a particular REST API easier. The problem is, they don't give you access to the access token generated by the session, or a way to provide…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227