Xamarin - Native & Forms
See original GitHub issueCurrently a place-holder issue for commits / branches and discussion about what adding support for the new platforms will look like.
All platforms
- Configure nuget packages
- Caliburn.Micro.Platform.Mobile needs xml and build dir docs
- Xml docs
- It looks like we’ll need to introduce a third assembly for shared platform types, breaking change for the ABI. Should we update all projects including ones that shouldn’t be affected such as WPF and SL5? We can’t have a PCL that covers .NET 4.0 and SL5 so may leave them as it.
- Website documentation
- More samples
Xamarin.iOS
- Implement navigation service.
- Does the view model locator conventions make sense with the current bugs in the storyboard editor?
- Determine what should be in the extensions project.
Xamarin.Android
- Implement navigation service.
- Determine what should be in the extensions project.
Xamain.Forms
This is going to be interesting as it’s essentially a platform on top of a platform. Most likely we’ll treat it as a Platform assembly that’s Portable across iOS and Android. This stuff may end up in it’s own namespace so that works well with Xamarin native.
- No progammatic access to the value of x:Name, Confirmed.
-
VisualElement
does not haveLoaded
,Unloaded
events. This can potentially cause some memory leaks as we can’t clean up properly. - Doesn’t appear to be a way to check to see if a
BindableProperty
is bound, Confirmed. AffectsAction.HasTargetSet
. - How do we structure this so we can have
ViewModelLocator
for both Xamarin Native & Xamarin Forms at the same time? We’re using a multi platform approach where Xamarin.Forms classes live in Caliburn.Micro.Xamarin.Forms. - On
NavigationPage.Pushed
theNavigationEventArgs.Page
andCurrentPage
are the same, so we can’t get access to the previous page for deactivate, potentially could store our own reference. Imagine the same will be withPopped
. -
NavigationPage
doesn’t have the concept of a navigation parameter, makes things interesting. - Triggers are a property on
VisualElement
and not an attached dependency property. This could have implications on wherecm:Message.Attach
could be used. -
TriggerAction<T>
doesn’t inherit fromBindableObject
. WhileActionMessage
does have some dependency properties we may be able to get around them. - Doesn’t appear that the
TriggerBase
passes any data to theTriggerAction
viaInvoke
. This is very problematic as it means we won’t haveActionExecutionContext.EventArgs
. - Xamarin Forms has a custom Application Delegate, would collide with what we’ve done for Xamarin Native. Technically the CaliburnApplicationDelegate doesn’t actually need to inherit from UIApplicationDelegate but does it for completeness with the other platforms where we subclass Application. This does mean we can hack around it with just instantiating our second app delegate within the first. Crude and need a better solution for release. If we create a CaliburnApplicationDelegate that inherits from the correct Xamarin one then we would need a Caliburn.Micro.Platform.Forms.iOS assembly. Not ideal for one type. This could be ok if we start to get rid of the extensions assemblies.
- Have another look at
FormsApplication
is there a better way? - Navigation Service should handle the close guards.
- Rename methods to be more consistent with the other navigation services.
- Determine what should be in the extensions project.
- How can we leverage
DependencyService
for those automatic registrations
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Xamarin.Forms in Xamarin Native Projects
However, Native Forms enables ContentPage -derived pages to be added directly to native Xamarin.iOS, Xamarin.Android, and UWP applications.
Read more >All Differences and Use Cases for Xamarin Native vs ...
Forms allows reusing the same UI code for multiple OS, whereas Xamarin Native is adapted to APIs, specific to a specific platform –...
Read more >Xamarin.Forms - Native Forms - Code Samples
This sample demonstrates how to consume Xamarin.Forms ContentPages in native Xamarin.iOS, Xamarin.Android, and Universal Windows Platform ...
Read more >When to Use Xamarin.Forms vs Xamarin Native?
Xamarin.Forms can take your Xamarin.Native skills even further, but there are times it makes more sense than others. Xamarin.Native (Xamarin ...
Read more >101 Tutorial on the art of native Xamarin.iOS & Xamarin.Android
Compared to Xamarin Native, Xamarin.Forms allows you to get rid of dealing with Android XML and iOS Storyboards, and more importantly having to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Xamarin Forms support in 3.0.0 released.
I’ve contacted one of the Xamarin Forms devs a while ago about these, these were mentioned as low hanging fruit but haven’t seen any progress yet.