Metro XAML Apps - DependencyProperty.AddOwner - xaml

Im writing some custom controls in Metro XAML, and I noticed the DependencyProperty no longer has the AddOwner method. Does anyone know if there is a new way of doing this in Metro ?

Add owner API has been removed from Silverlight and metro XAML as well. There is no equivalent API for this any more.
You should be able to yield similar ability by defining a new dependency property, and data binding them. But I know it cannot fully replace add owner. If you post your underlying motivation for add owner, we might be able to help.

Related

Xamarin.Forms embed native controls for WPF

Following Native Views in XAML I see that it is possible to embed native views in XAML by specifying a value for targetPlatform in an appropriate xmlns attribute value.
In my sample project I have confirmed this works for UWP by using targetPlatform=Windows. This actually works fine.
However I wish to do the same thing for a WPF control and was wondering which targetPlatform value to use. I see from the article that targetPlatform should be set to one of values of the TargetPlatform enumeration. Looking at the documentation for TargetPlatform enumeration I see that it is obsolete and does not have a value for WPF. (I tried to use Other but this does not work.)
I see that Device.RuntimePlatform may be used in code, but not sure if there is a way to use it with the xmlns attribute.
How do I conditionally embed WPF native views in XAML? If this is not possible, what's the best way to do this?
At the moment WPF support is in beta and it is not possible, as you can see it is on TODO list at the moment: https://github.com/mohachouch/forms-wpf-progress/blob/master/Status.md
You can port any view using the custom renderer, but adding and binding properties even for just one control is a huge work.

Avalonia UI Carousel Example

I'm rather new to Avalonia UI / XAML / .NET MVVM in general. While I really like Avalonia so far, it's still in beta and lacks extensive documentation. Hence I sometimes struggle to get specific things working or finding out how I should use them correctly.
Could somebody point me to an example using the Carousel control? Which properties should I set in the xaml, what kind of item list should be behind it etc?
Cheers.
You can find usage example in ControlCatalog project from the main repository:
https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog/Pages/CarouselPage.xaml
https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog/Pages/CarouselPage.xaml.cs

How to get started with Infragistics web controls using MVC

I have an existing web project in Visual Studio 2012 and it is MVC4. I have Infragistics installed (all components) on the machine.
Now what I want to achieve is to be able to use the web drop down control via a HTML helper.
After some reading on here I understand there may be a few steps involved in order to be able to use the HTML helper as I wish, such as adding the namespace either to the web.config or the view.
I have tried to manually add references to the libraries but after, when trying to add the namespace to my view, it is not recognised. Assuming that there are DLL dependencies I am not aware of I used the Infragistics "Create ASP.NET Toolbox Tab for CLR 4.0 2013.1" app to hopefully add my controls for me so that a drag drop onto my html page would hopefully add whatever reference is required. The app seems to complete successfully but I don't see any change to what I need. No new items in the toolbox and still I cannot add the namespace to my view.
Can someone please tell me simply as possible how to get started? I cannot believe how difficult I have found this. I don't mind what technique, I just need a technique.
Thanks
Not a complete answer but one reason why I could not use it was because adding a reference is not enough. You need to set CopyLocal=true in order for the HtmlHelpers to pick it up.
Use the jQuery combo box rather than the ASP.NET WebDropDown as the WebDropDown is dependent on the page and ASP.NET web forms which you are not using in ASP.NET MVC. You can either write your own helper or use the one that Infragistics provides.

How can I create a screenshot in Winrt applications?

In my Metro application, how can I programmatically create a screen capture?
Unfortunately, in this version, the necessary WriteableBitmap.Render method is not yet implemented. Without this, a screenshot is not possible.

Is there a cocoa touch property pages like table view form renderer viewcontroller?

Is there any free or opensource property pages like form renderer for ios applications?
Or I missed something, and I can create these kind of objects with the base framework?
I want to render forms inside applications, not on the Settins menu.
Is there any built in way or any lib what do it for me or I must make the plist parseing and table cell lifecycle management.
Your question is a little vague, but I think what you want to do is have functionality like that available in the Settings app within your application. I have used InAppSettingsKit and been quite happy with the results. It's free and open source. I think they ask you to credit them, but it is not required.