Talking to C# based WinRT components that contain UI features like XAML based user controls from a JavaScript based Windows Store app

Can you create a WinRT component written in C# that consists of a library of XAML based controls and then used those controls within a Windows Store app using WinJS or via a JS Cordova plugin for Windows 8.1 & WP8.1? 
Is this possible or can you only use a C# based WinRT component that contains a library of XAML controls in XAML/C# based Windows Store apps? 
My understanding is that a C# based WinRT component containing non-UI code (i.e. no XAML controls) can be used in a Windows Store app written C#, VB.NET, JavaScript or VC++, but not sure if that principle would work with XAML controls
wrapped via WinRT types. In theory a XAML control is a C# class, so could work, but not sure how would JS code read that and then launch for example a page or user control from/into its HTML based UI?
Sandip Ahluwalia

Right. The code in your app is C# code, but the actual Xaml controls (like the rest of the Windows Runtime) are native code. They are projected into each language (C#, VB, C++ in the case of Windows.UI.Xaml) in a way that appears natural for that
language and the interop layer is hidden.
You could expose a Xaml control in a Windows Runtime Component written in any of C#, VB, and C++ to an app written in any of C#, VB, and C++, and the control would appear as a normal C#, VB, or C++ runtime class. This won't
work for Xaml controls in JavaScript, since the HTML window doesn't have the Xaml hosting infrastructure, but for non-UI code you can write a WRC in C#, VB, or C++ and it will appear as a normal JavaScript class to a JavaScript app.

Similar Messages

  • Is there a way to place an encrypted document on the iPhone, a document that contains passwords and private information, really well protected from hackers?

    Is there a way to place an encrypted document on the iPhone, a document that contains passwords and private information, really well protected from hackers?
    Can such a document be exempted from the cloud feature, a feature that I use for the rest of my stuff?
    If so, how can I do this?

    Yeah, but 1Password charges for both the iPhone client AND the Mac/Windows client, and it ain't cheap! Plus, it only syncs via Dropbox, and where I work Dropbox is banned due to security concerns.
    Sure, there is Secure Notes, a free form entry part of 1Password, but a bug in the program will not let you view all the text you can put in the field!! You have to EDIT the text to see the whole list! What if you accidentally delete or change an entry while scrolling through your entries??
    Plus NONE of the programs I have tried, and I have tried a lot, can find text IN the file - do a search and it will tell you what file/folder the text is in, but YOU have to scroll down through 400 entries one at a time looking for the entry.
    I use a program called Secure Text - I have many admin passwords, and DO not need a field based program. Secure Text is totally freeform entry. However, it suffers from the same search issue.
    If someone knows of a secure text program that uses a file/folder type of layout, free form entry, AND can actually tell you where in the file/folder the text you searched for is, PLEASE let me know! Plus sycing via some method other than Dropbox would be a plus.
    Before I got my iPhone, I used a program called Tombo for my WinCE based system AND my Windows workstation, and the synced up fine without iTunes, internet, DropBox type functionality or any of that horsecoller stuff Apple likes to throw on your neck.

  • Hide form field based on name that contains certain characters

    I think this is an easy one.
    We're looking for help with a script that will hide all instances of text fields that contain a certain value. We have a function running that applies to the same text fields, however, each text field had to be tagged with a number at the end. Also running with this is a custom save button that flattens the page and hides certain elements before saving out. The hide function works pretty straightforward with "this.getField… = display.hidden;". The issue is that we don't want to repeat this for every single instance of the text fields that share the same name.
    We need it look for every text box that has a similar title so for instance if we had multiple fields like this…  "my-text-field-01", "my-text-field-02" and "my-text-field-03" we want the script to look for the name "my-text-field" and hide all instances of that.
    Hope this makes sense, sorry, our programming skills are still amateur. Thanks in advance for any help.

    You can do that if you use a heirarchical naming convention. So instead use something like: my-text-field.1, my-text-field.2, etc.
    You can then hide them all like:
    // Hide all of the "my-text-field" fields
    getField("my-text-field").display = display.hidden;

  • Solution for Windows Store app "projectname.exe" does not contain a static 'Main' method suitable for an entry point . Error.

    Hi,
    I'm developed a blog reader for windows 8 store app. It was perfectly worked before. But suddenly it started to miss behave and I got an
    error. No other errors were there other than that.
    Error 
    Program c:\Users\.........\Desktop\Blog_Reader\Blog_Reader\obj\Release\intermediatexaml\Blog_Reader.exe' does not contain a static 'Main'
    method suitable for an entry point. 
    C:\Users\..........\Desktop\Blog_Reader\Blog_Reader\CSC    Blog_Reader
    But I found the solution while I fixing it.
    Solution for that is like below.
    Go to your App.Xaml and Right-Click thenGo to Properties
    Check whether the Build Action is
    ApplicationDefinition
    If not change it to ApplicationDefinition.
    Clean the code (solution) and Deploy
    Now the error is fiexed.

    Hi Robana, 
    Good sharing on the Technet. 
    This will definitely benefit other who may encounter the same issue as yours.
    Thanks for your sharing again. 
    Kate Li
    TechNet Community Support

  • Is there any chance that Tab Grouping feature (like the one in Opera 11) will become native for Firefox? Could be very helpful.

    Is there any chance that Tab Grouping feature (similar to Opera 11) will appear in Firefox? Could be very helpful and convenient.

    Hi ThaPlaya,
    I feel your pain. I am in charge of over 250 PCs and laptops. Flash Player stopped working for me after an update. I have been working on this issue non-stop since the middle of October, 2012. It's time-consuming, and even after applying the latest Flash update, it still doesn't work properly.
    I am beyond frustrated! I have people calling me left and right saying that they can't access content. I have been using this site https://www.mozilla.org/en-US/plugincheck/ to try and do a browser plug-in check while in IE an dFirefox. Even after I update all plug-ins, Flash still works about half the time.
    For instance, the principal of the middle and high school wanted to view an online magazine http://upfront.scholastic.com/issues/12_10_12, about 3 pages load on this site. The rest continue to say LOADING. When I right-click on a page and then left-click on ABOUT ADOBE 11.5.502.110, it seems I am using the most up-to-date version for IE and Firefox.
    Students are trying to access sumdog.com and stmath.com, both run using Flash. STMath is now working a bit better because I allowed some exceptions in our internet content filtering appliance, and in our firewall, sumdog still works half the time.
    If Adobe is going to update their browser plug-ins, they need to test and retest before giving the public access. This situation is causing me a ton of problems!
    Sorry to infiltrate your post...
    Dawn/Flower1964

  • I got an app on my iphone that was promotionally free. I borrowed an ipad from a friend and needed the app but it was not free anymore so i logged into my apple account and downloaded the app from there. Will i be charged for downloading it?

    Will i be charged for downloading it from my account which had the app while it was still free?

    Some apps are written for the iPhone. Some are written for the iPad. Some are universal and will run on both.
    That app is NOT universal. That means you must purchase a separate version of the app for iPhone and iPad.  The iPad version will NOT run on the iPhone.
    In these cases, the iPhone version of the app usually WILL run on the iPad, but it will be window-boxed when running (or expanded and unable to take advantage of the iPad display).
    Pay attention when making a purchase if you want it to run on both. If it does not have a + in the price box, it is not universal.

  • How to solve 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names.

    Hi,
    I am developing windows store 8.1 app. I need to perform unit testing of my app . When I add the project (to be tested) to unit test
    library project by using Add reference I am getting these errors:
    Error
    5
     The .winmd file 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names. Type 'Microsoft.Advertising.WinRT.UI.AdControl'
    is already registered with the in-process server 'CLRHost.dll'.
    UnitTestLibrary
    Error
    6
     The .winmd file 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names. Type 'Microsoft.Advertising.WinRT.UI.AdSettingsFlyout'
    is already registered with the in-process server 'CLRHost.dll'.
    UnitTestLibrary
    Error
    7
     The .winmd file 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names. Type 
    I found a blog here . I tried it but i coudn't see the xml file in this path C:\Program
    Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\MSAdvertisingXaml\6.1\SDKManifest.xml
    I found the file in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\MSAdvertisingXaml\8.1 . But when i tried to update it is displaying an access denied  message  

    Hi Alok,
    Thank you for posting in MSDN forum.
    Based on your issue, to check if the issue is related to the specified unit test or the VS IDE issue. I suggest you can refer the following document to re-create a simple new unit test with windows store app and then add the windows store app as reference
    to the Unit test project check this issue.
    https://msdn.microsoft.com/en-us/library/windows/apps/jj159318.aspx
    (1)If you did not get same error message in the new unit test project, I doubt that maybe you did not reference the windows store app successfully. So please refer the above document to reference it again check this issue.
    If you still could not reference successfully, please share me the mainly code for the windows store and unit test project.
    Or you could share me your solution include the reference project and unit test project.
    You could upload your sample to the OneDrive and then copy link here.
    (2) If you get same error message in the new unit test, I suggest you could try to repair or re-install the VS IDE and then check this issue again.
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Find all topics that contain specific content

    The Find feature in Robohelp for html seems to only be able
    to find topics that contain the find criteria in the title of the
    topic. Can I do a Find that will access all the topics that contain
    a character, like a quotation mark, within the body of the
    topic?

    Hi all
    Personally I think we need to clarify whether COHAN3 is
    talking about looking through source content or compiled/generated
    content. Certainly the utility you mentioned would work for the
    source files, but it would fail on compiled/generated content.
    Cheers... Rick

  • Is it true that After March 30, 2015, AOL will no longer support your ability to sign in to the iTunes Store, App Store, or iBooks Store or did I just receive a phishing email?

    I just received the following email.....Is this legit? Makes no sense.
    Dear iTunes Customer,
    Our records indicate that you have been using your AOL Username to sign in to the iTunes Store, App Store, or iBooks Store.
    After March 30, 2015, AOL will no longer support your ability to sign in to the iTunes Store, App Store, or iBooks Store. In order to continue using store features, including the ability to access your previously purchased content, you must transition from signing in with your AOL Username to signing in with an Apple ID.
    To make this transition, simply sign in once more with your AOL Username to iTunes on your Mac or PC. You will automatically be taken through a few short steps to complete the process.
    When the process is complete, your new Apple ID will allow you to continue to purchase and download music, movies, TV shows, apps, books, and more. Additionally, your Apple ID will allow you to access other Apple services, such as iCloud and the Apple Online Store.
    This transition does not affect any AOL services you may be using with your AOL Username.
    AOL Usernames which have not been transitioned to Apple ID will permanently lose access to the iTunes Store, App Store, and iBooks Store after March 30, 2015. Apple will be unable to provide support for AOL Usernames which are not transitioned by this date.
    To learn more about this transition, visit support.apple.com/kb/HT204268.
    Regards,
    The iTunes Store team

    The link that appears in the copy in the OP does not go to an Apple site, it is something to the effect of newitunes.com, whereas the text tells you it is an Apple support document.
    However, if you take the text of the support document listed, I put it in my browser and it does lead to a legit Apple Support document about coverting. Convert your AOL Username to an Apple ID - Apple Support  Seems this needs to be done by March 31, 2015, as AOL will no longer allow users to use their AOL identification.

  • Can I place an image in the Note section of Contact book . I use a MacBook Pro with Yosemite 10.10 . I am NOT talking about using an image to identify the contact, just an image that contains some information relevant to the contact. I have tr

    I want to place an image in the Note section of my Contact book . I use a MacBook Pro with Yosemite 10.10 . I am NOT talking about using an image to identify the contact, just an image that contains some information relevant to the contact. I have tried copying and pasting, dragging and dropping.

    From reading Vista forums support for SSD is one of the things Vista SP2 and Windows 7 hope (need) to improve upon. I was in a similar discussion once befoe on SSDs:
    http://discussions.apple.com/thread.jspa?messageID=8482110
    http://news.cnet.com/8301-13924_3-10026010-64.html
    http://www.intel.com/design/flash/nand/mainstream/index.htm
    http://www.google.com/search?hl=en&rls=com.microsoft%3Aen-US&q=IntelSSDVista
    I don't think it is EFI issue, but with XP and drivers, lack, and wonder if you can try with Vista?
    http://arstechnica.com/news.ars/post/20080908-intel-tosses-hat-into-ssd-ring-wit h-80gb-launch.html
    That won't solve performance issues, but should work.
    http://www.reghardware.co.uk/2008/07/22/sandiskssd_vistabeef/
    "My guess is that [Samsung and Microsoft] are maybe working on the OS recognizing an SSD with a 4K-byte sector size instead of a hard disk drive with a 512-byte sector size," Wong said.
    Sun is already working with Samsung to bulk up SSD support on the ZFS (Zettabyte File System), which is included in the Solaris OS, and will also be supported in Apple's upcoming Mac OS X 10.6, codenamed Snow Leopard. Sun is adding capabilities to boost the durability and performance of SSDs on ZFS-based operating systems. For example, Sun may add defragmentation capabilities for SSDs, which organizes data in a particular order to enable quicker data access.
    SSDs were not considered ideal for defragmentation because of limited read-and-write capabilities, Wong said. However, Samsung and Sun in July jointly announced an 8G-byte SSD that bumped up durability from 100,000 read-and-write cycles to 500,000. That brings defragmentation in SSDs closer to reality, which could improve its caching and provide quicker access to data. Sun plans to put SSDs into storage products later this year.
    http://www.itworld.com/operating-systems/54115/samsung-microsoft-talks-speed-ssd s-vista

  • I need to set the position of components on a page that contains a MenuBar,

    I need to set the position of components on a page that contains a MenuBar, but MenuBar does not provide a getPreferred size method.
    How can I get the MenuBar's size in AWT?
    Thanks.

    A menubar is not a general component that is added to a frame like any another. It is the specific responsibility of the setMenuBar/setJMenuBar methods to deal with this.

  • I have  a singleton that contains my data object. How to refresh components

    I have a singleton that contains my data object. This
    singleton data is used to populate comboboxes and datagrids across
    various custom components that are children of the main
    application. These components can manipulate the singleton. When
    these changes are made to the singleton what do I have to do to get
    this data to refresh across the componets that use its data?

    I assume that your mail app on your iPad/iPhone is Apple Mail.  You can open a MS Word/Excel document in Adobe Reader for iOS and convert it to PDF at a time.
    In Mail, long press (press & hold) an attachment icon.
    Select "Open in Adobe Reader".
    Follow the instructions shown in Adobe Reader to subscribe to a paid service called "Adobe PDF Pack" to convert the document to PDF.
    Please note that Adobe Reader for iOS itself is a free app but the subscription for the Word/Excel to PDF conversion is a paid service (i.e. not free).
    In case you have any questions about Adobe PDF Pack, here's the user forum.
    Adobe PDF Pack

  • I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    Labview isn't cheap, but it would certainly allow you to build a program (set of vi's - virtual instruments) that would do what you describe. Where would the timecode information come from? Your vi, or program, would: Start up, initialize the serial port, loop until a trigger happened, read the timecode (from where?), output that timecode out the serial port in a loop until you pressed the stop button. There is a free evaluation of Labview software available from NI - the base product itself runs about $995.
    - Dave

  • Is there a program to get the GUID of a Mozzilla application or Mozilla fork such as K-Meleon or Waterfox or is there a respository that contains these GUIDs?

    We have several plugins that in the past successfully ran in other Mozilla based browsers such as K-Meleon, Sea-Monkey, Netscape, etc.
    In the past the plugin needed to be manually installed or required a special downloadable installer to get the plugin installed/ working with browsers like these.
    Recent work on many of these projects now allow you to install plugins directly through the web or though about:addons and then restart the browser to complete the installation, just like in Firefox.
    We have the list of the most popular GUIDs from the Mozilla documentation listed below, however we do not have the GUIDs for the more obscure Mozilla based forks or projects.
    - Firefox, Thunderbird, Nvu, Mozilla Suite or Mozilla Browser 1.x, SeaMonkey, Sunbird, Netscape, Flock, and Mobile.
    Is there a way to find the GUIDs for these other browsers: K-Meleon, Waterfox, Firefox Nightly (we are guessing the Nightly builds use the same GUID as Firefox) so that we can add the appropriate information to our install.rdf and update.rdf files or does one need to get in contact with the respective projects to determine these?
    For our use either an application that does this, or even a small script that could be run to determine the GUID of these other Mozilla based browsers would be great. If these don't exist, is there a public document or repository that can be accessed to get these GUIDs?
    Additionally, is it possible that some of the obscure Mozilla based forks do not contain or utilize GUIDs that are used by the install.rdf and update.rdf manifests? If so, what can we do so that our plugins can be installed automatically for these browsers through the web or about:addons?
    Is there a way to tell an install manifest that a particular browser is supported even though no GUID exists for that browser so that the installation can proceed as normal for that browser?
    My apologies for the lengthy details and for so many questions. I have searched around and have not been able to find answers to these questions so I figure what better place than directly from Mozilla.
    Thanks again for so many great products over the years and for the continued development of most of them. :-)
    Kevin

    Kevin, there are a few questions I can answer, but if you have irc you can also reach out to the #addons channel. I will also try to get in touch.
    As far as I know:
    * Starting point: [https://developer.mozilla.org/en-US/docs/Developing_add-ons Developing Add Ons: MDN]
    * [https://developer.mozilla.org/en-US/docs/addons.mozilla.org_%28AMO%29_API_Developers%27_Guide/The_generic_AMO_API AMO API ]
    * [https://developer.mozilla.org/en-US/Add-ons/Plugins/Gecko_Plugin_API_Reference/Plug-in_Development_Overview Registering Plugins and Developement Overview]
    *[https://developer.mozilla.org/en-US/Add-ons/Overlay_Extensions/XUL_School/The_Essentials_of_an_Extension Install.rdf file info for extensions]
    ''Is there a way to find the GUIDs for these other browsers: K-Meleon, Waterfox, Firefox Nightly (we are guessing the Nightly builds use the same GUID as Firefox) so that we can add the appropriate information to our install.rdf and update.rdf files or does one need to get in contact with the respective projects to determine these?''
    I do not know. There are generating GUIDS [https://developer.mozilla.org/en-US/docs/Generating_GUIDs]
    Be right back. I will try asking for backup.

  • Create a view - All Service Requests that contain a Completed Review Activity

    In the Service Manager 2012 console, is it possible to create a view that displays Service Requests, with the view criteria being something like as follows:
    Service Request status is In Progress
    Service Request contains a Review Activity where the Review Activity status is In Progress
    My intent is to provide a way for Service Desk Operators to be able to identify requests that are ready for implementation.
    From what I'm seeing in the console, this sort of view is not possible as it appears that any view criteria must be derived from the view's target class.

    Nothing like a bit of thread necromancy in the morning.
    It turns out the solution to this question was quite straight forward (once you know where to look...)
    The trick is creating a view based on one of the Service Request combination classes rather than the basic class itself, and then rephrasing my requirement after realising that what I was really after was a view containing Requests that have an In Progress
    Manual Activity.
    So...open the console, go to Work Items, right click on
    Service Request Fulfillment and select Create View
    On the General tab, give your view a name and select a Management in which it will be stored.
    On the Criteria tab, click Browse to select a specific object class.  Change the
    Frequently used basic classes filter to Combination classes then enter 'Service Request' in the filter field.
    Pick the Service Request and Activity class.
    Now when configuring the criteria, you'll notice a little arrow next to the
    Service Request class. Click on this arrow to expand the node, and select the
    Contains Activity class.
    Under the Available properties box, enter 'Status' in the search field. In my environment, I got two Status fields. Each corresponds to a specific Activity class. Select both of them and click
    Add.
    One of the Criteria will look like 'Contains Activity[Activity]Status'. Keep this one and delete the other from the Criteria box. Change the value to 'Completed'
    While we're at it, select the Service Request class and add a criteria for the Service Request Status = 'In Progress'.
    Click on the Display tab and select whatever fields you want to display in this view.  Click
    OK to save this view.
    Now go to the Administration workspace and select the
    Management Packs node. Export your management pack that contains your view and open the management pack in a text file viewer. Notepad++ works for me...
    First search for the string that you used to name your view. It will be found towards the bottom of the MP in a DisplayString element in the LanguagePacks XML element. This element will have an ElementID.
    Select the ElementID and search the entire file for this string. You want the instance that resides within a Presentation | Views | View element. From this point, scroll down until you get to a Criteria element. Within the Criteria element you will find
    the two Expressions that were entered via the GUI. One of the Expressions corresponds to the Service Request.Status=In Progress criteria, the other corresponds to the Activity.Status=In Progress criteria. We will be changing the Activity criteria so that it
    explicitly refers to a Manual Activity.
    Identify the Expression that has the Property containing the string 'System.WorkItemContainsActivity'. We will be changing the TypeConstraint attribute of this criteria.
    In this line, Replace the string 'System.WorkItem.Activity' with 'System.WorkItem.Activity.ManualActivity'
    Save this file and import the management pack into SCSM

Maybe you are looking for

  • ITunes only playing one song at a time

    Since the 7.6 upgrade in January, my iTunes is only playing one song before stopping. Do I need to reinstall? Will wiping out the instance of iTunes on my PC blow away my music or video libraries? Thanks in advance

  • The type tool is not working

    I upgraded from PSE9 to CS5 and I can no longer view any of the fonts or use the type tool in either program.  What do I need to do to fix this issue?  Thanks for any help!  Cindy

  • AP - One Check for Vendor from two Company Codes

    Our Company would like to issue one check  for a vendor in two company codes. Configuration has the paying company code = sending company code. So the payment proposal will want to create two checks, one for each company code. Question --- Is there a

  • Shared Objects not imported properly

    I am moving from 6i to 9i. I exported my 6i applications. I imported them into 9i. The one application consists of some tables shared from another. I imported the source of the shares first. In the RON the shared objects show correctly under the "Tab

  • How do you turn off in- app purchasing?

    How do I turn off in-app purchasing? I recently incurred a $30.00 charge for coins on an Ice Age game. Is there a away to block this feature on my ipad?