monotouch layer - xamarin.ios

i am new to monotouch and iOS development environment.
I read Quartz 2D programming guide but I still don't know if it is possible to draw 2 layers on the screen, first layer will be always on the top showing a star or some shape and rest transparent, and the 2nd layer will draw circles where people touch the screen.
I want the first layer to be on the top always and since it is not changing, it should not be re-drawn.
Where can i find example of this or doc?
Thanks

Maybe you should look at the Xamarin Seminar Getting Started with CoreGraphics also a couple of books which have a really nice section of CoreGraphics
Developing C# Apps for iPhone and iPad using MonoTouch iOS Apps
Development for .NET Developers
Learning MonoTouch: A Hands-On Guide to Building iOS Applications with C# and .NET
And a lot of Objective-c examples that you can find on the web, they are quite easy to implement on c# because the exposed API is quite similar.
Hope this helps to get you started.
Alex

Related

Developing C++ WinUI3 Desktop App with MVVM

I am looking at the WinUI3 framework with native C++ support for desktop applications.I cannot see any MVVM support as in C#. Should I expect it will be never supported and go i.e. with MVP with some code behind, or I am missing something?I cannot find any sample.
When you are talking about automatic tooling for XAML than you have to wait until 2024 to use it with C++. This is the estimated timeline from MS as they first hebr yo push a reflection API into the C++2023 standard.
But the MVVM fundamentals are perfectly working. Just write it out by hand and enjoy a developer experience last seen in 2006.
You can do MVVM by implementing interfaces such as INotifyPropertyChanged manually. Check out this sample which showcases how to implement the interface.
The cppxaml library (part of the unpackaged NuGet package) has been providing some help with MVVM though it's very barebones compared to MVVM frameworks available for .NET apps.

I try to make chart graph component, library . for web and desktop. what language most common?

I try to make chart graph component, library . for web and desktop. what language most common?
I try make very cheap chart, graph component. I worked for 3D engine programmer.
I always use C++ and my own library.
I want to make cheap library component for desktop application and web service.
which language is common for desktop developing?
what language and platform most use for web page chart?I hope there is no download at all. difficulty is not matter at all for me.
I've just completed a 3D chart library for the desktop, mobile and the web. I used Java for the desktop, wrote a native Android application (it's a Java-like platform, different API but same programming language), and Javascript (actually Dart compiled to Javascript) for the web. I didn't do a native iOS version. Those were my choices, I think it worked out well. Your mileage may vary.

Need help Android and iOS-App developed on Xamarin

Need some help on xamarin Platform. I understand it can be used to develop Android-base and iOS-base App on Xamarin. I have the following questions:
For Android and iOS-based app develop on Xamarin, can the app run on Android-tablet ad iOS-tablet respectively? what I need to do for both tablets respectively?
If there are new controls for android and iOS, how Xamarin will update this for development?
1) Yes they can run on Android Tablet and iPad. Your code logic would remain the same but you would need to provide for the UI since the resolutions are different.
For iOS, Xamarin makes it simple by providing for a Universal template which allows you to provide different layouts for iPhone & iPad.
For Android, there is no template as such but the process remains the same just as you would for phones with different resolutions.
2) Assuming you are talking about the default controls, they will made available in the Xamarin framework via their regular update channels. First they are in Alpha, then in Beta and once the bugs have been ironed out, they are made available to Stable channel which can then be used in the production apps safely.
I would recommend you go through their docs which are quite good and explains this whole thing in quite detail. Xamarin Docs

Is it possible to embed xamarin part into an existing native app?

I have existing iOS and Android native apps. Is it possible to extend the apps with Xamarin coded part ?
Both Xamarin.iOS and Xamarin.Android are currently setup to take control of your application, so you need to make your main program be written in C# and then call into the existing code.
The way that you would do this is to bind your existing Objective-C or Java code as C# libraries, and then consume those libraries from C#. The binding technology is precisely what drives both the Xamarin.iOS and Xamarin.Android tools, so you would effectively be doing the same.
Once you have bindings, the interoperability works both ways: you can call native code, and native code can call C#.
The bad news is that instead of starting to enjoy writing code with both tools from day zero, the first thing you have to do the bindings, which is in general, not as fun as watching colored squared move on your screen.
Ok I find an answer here : http://www.whitneyland.com/2013/05/why-i-dont-recommend-xamarin-for-mobile-development.html
For example, code written in Xamarin cannot be used in native or HTML5
apps.

Use CoreData in MonoTouch?

I have seen that there are so wonderful ways in Xcode to design your CoreData models - is there a way to make use of this and CoreData in general in MonoTouch 5?
Any tutorials or examples?
Maybe is not the direct answer to your question but might be what you are looking for:
Sqlite-net is an open source, minimal library to allow .NET and Mono applications to store data in SQLite 3 databases. <- the one you are using but for future reference
Vici CoolStorage is a fully typed Object Relational Mapping library for .NET 3.5, Windows Phone, MonoTouch and Mono for Android
Catnap is a basic lightweight ORM for .NET. It uses the ADO.NET API. The project includes an adapter for Sqlite, and it is tested with System.Data.Sqlite and Mono.Data.Sqlite.
MonoTouch.SQLite An abstract UITableViewController to make displaying data from an SQLite table simpler.
Entify is entity framework for desktop and mobile applications. It aims to be stable and easy-to-use library that is effortless to deploy with any application. It has visual designer which allows developer to define application data model easily and quickly.
Just a side note on entify, it has not been updated since Apr 11, 2010 so idk if it still works
The only thing I could find about MonoTouch and CoreData was this blog post.
Hope this helps.
Alex
Here is the documentation for CoreData in Mono.
This blog post is almost two years old, but the only example I could find of using CoreData in Mono.
Most relevant to your question, however, this bug/request is for integrating Xcode's tools into Mono. It doesn't seem to even be under development yet.
Edit:
You can also use /Applications/Xcode.app/Contents/Developer/usr/bin/momc <source xcdatamodel> <absolute path to target> to generate the .momd. I'm still working on getting it integrated better - see this question.

Resources