Before upgrading to Prism 8 I was using the bindable property ViewModelLocator.AutowirePartialView to set the binding context of ContentViews.
This property is now gone and I can't find any documentation about how to replace it.
Do I have to stick with Prism 7?
The ViewModelLocator.AutowirePartialView was removed in Prism 8.0.0.1909. Although it is not mentioned in the release notes, you can refer to this pull request.
In Prism 8.1 questions, you get an official answer, which is to use regions instead.
Because AutowirePartialView is no longer available in Prism 8.1 do we need to use regions now? Are regions compatible with third party TabView control?
The short answer here is that yes you do need to use Regions. Regions are compatible with 3rd party controls, however you will need to create and register the Adapters for the 3rd party controls yourself.
Related
what approach is used to create a specific component that is only available for one platform?
Can I use Custom Renderer or DependencyService or any other approaches is there ?
If you want to set the UI desinger on a specific control or layout .Such as entry or button.You can use custom renderer.
Custom renderers provide a powerful approach for customizing the appearance and behavior of Xamarin.Forms controls. They can be used for small styling changes or sophisticated platform-specific layout and behavior customization. This article provides an introduction to custom renderers, and outlines the process for creating a custom renderer.
And you can use DependencyService if you
just want to call some native API .
DependencyService allows apps to call into platform-specific
functionality from shared code. This functionality enables
Xamarin.Forms apps to do anything that a native app can do.
And you can also use Effects.In some cases, all three can help you implement your requirements.
There are some relevant cases that use one of them to solve the issue.I hope they can help you better understand their differences and usage, and how to choose them as a solution in specific cases.
CustomRenderer case
DependencyService case
Effect case
Is there a way to change the image of the pins in Xamarin Forms Maps. I want to make the pin a custom image, if it has to be done natively, can someone give me a simple example of it. Thank you.
To anyone coming to the later, this is now well supported in Xamarin Forms.
In essence you need to create a custom map class in your PCL or shared code that inherits from the Xamarin Forms Map and then create a Custom Renderer in each of the platforms' projects.
Those custom renderers will be different for each platform, dealing with the specifics of rendering icons and any pop up information shown when you click on that pin for that particular platform. You are not obliged to create a custom renderer for all platforms, for any that you don't a normal map will be displayed.
This is all now really well documented in the Custom Renderers | Customizing a Map section of the Xamarin Forms Developers Guide. That documentation walks through creating a custom renderer for Android, iOS and UWP and explains the code needed in detail. There's a lot of it, so I won't reproduce it here. There is also an accompanying sample solution here.
One point worth noting is that if you are trying to reproduce that code in your own project you will also need to add the images in the various drawable folders in the ProjectName\Droid\Resources directory, and also the two axml files in the layout directory.
Apparently this is quite locked down and you have to look at custom renderers to achieve what you are needing.
There is a discussion about this on the following link:-
http://forums.xamarin.com/discussion/17916/customization-of-xamarin-forms-maps-pins
, with specific reference to a project at the following link which someone has implemented custom image pins from the Assets folder:-
https://github.com/paulpatarinski/ShouldIWashMyCar/blob/master/Android/Renderers/MapViewRenderer.cs
I haven't tried this yet, however this would probably be a good place to start when looking to customize map rendering.
This project might be helpful to you. raechten/BindableMapTest
From the description:
Small sample for binding a collection to a Xamarin Forms Maps pins
(valid until binding directly to the Pins property will be supported
by Xamarin Forms directly).
Includes custom and clickable pins.
It has Android and iOS implementations.
I am using Delphi XE2. I have Dev Express 12 installed and use it for some projects.
However I have projects where I do not use DevExpress at all, and I wanted for those to not have any dependency on it.
When I assign a PNG image to any TPicture property on Object Inspector it always use a TdxPNGImage class to handle it.
That cause to add the unit dxGDIPlusClasses creating dependency on having DevExpress installed.
But I need to not break DevExpress on my Delphi. It must continue to work for those projects based on it and that eventually will need this png class.
Somehow I have missed the answer of this on DevExpress forum, even after many searches.
I am posting here the link for the issue and possible solutions:
Delphi 2010 always uses the TdxPNGImage class for loading PNG images (this corrupts form streaming)
I have tested and it works.
I'm trying to build a MonoGame view inside MvvmCross on Android,iOS and WP8. On Windows side it's relatively easy to use dependency properties as a binding target, but how can I achieve a cross platform data binding solution that I can use on all platform?
This was covered in a previous MvvmCross version - see Insert a Monogame view inside MvvmCross monodroid Activity
The technical details have changes a bit since that post, but the core of the advice remains the same - use inheritance to add data-binding.
For example, if you want to adapt a FooActivity or FooViewController base class so that it can be used for MvvmCross data-binding, then you need to:
inherit from FooActivity to provide EventSourceFooActivity - to do this you need to add event notifications like those shown in MvxEventSourceFragmentActivity.cs
inherit from EventSourceFooActivity to provide BindingFooActivity - to do this you need to add all the members like DataContext from MvxFragmentActivity.cs
The process for Touch/iOS is very similar, but with iOS specific events and members. Take a look at any of the Mvx*ViewController classes to see what is involved.
This technique is also discussed in: Integrating Google Mobile Analytics with MVVMCross
I am looking for a Flex4 calendar with source code.
Ready to pay for it also.
I do not want to use the IBM ilog calendar, that i was using before for my website.
Any suggestions.
Thanks
~Z~
Check out our Flex Calendar Component. Free developer editions are available for you to test. The component supports Flex 3 and up; and we provide a version specifically for Flex 4.
Really it depends what you're looking for though.
I think ours is the most flexible implementation out there; with everything visual, such as the day components, implemented as renderers, thus giving you complete control over display and functionality.
However, our component is not going to be a replacement for "Google Calendar" as is.
We're always an e-mail away for support purposes.
In addition to Flextras, there's also one in IBM's iLog Elixir. I believe it's much more expensive. Examples of Elixir and Flextras are in Tour De Flex I believe.
Have you checked this one? http://www.keepcore.com/composants-flex/flex-calendar-component.html