Is it possible to use DTCoreText in MonoTouch or is there a native library that does what DTCoreText does? Thanks.
This looks promising: https://github.com/Cocoanetics/DTCoreText (but I haven't used it myself).
Then you just have to create a MonoTouch binding to be able to use it from MonoTouch.
Related
I've faced with problem yesterday. I want to use System.Drawing.Color structure in Android and iOS projects. Xamarin documentation claims that MonoTouch framework has System.Drawing.Color structure (link - http://iosapi.xamarin.com/?link=T:System.Drawing.Color). But in monotouch.dll namespace System.Drawing hasn't structure with name Color.
What did I do wrong?
Add a reference to the OpenTK library and you'll have System.Drawing.Color available. The doc you linked was indicating it:
To add a reference: double click on Reference in your project, and under the **All* tab, select OpenTK,
It clearly states "System.Drawing.Color Structure", i.e. not
namespace. This means you cannot do something like "using
System.Drawing.Color;" in C#.
For all your color needs in iOS, you need to use MonoTouch.UIKit.UIColor, the type that MonoTouch uses in most cases (e.g. all the UIKit API).
I am not sure for Android, but I guess you need to use Android.Graphics.Color
I have a project written in createJS using haxe js project, what would it involve to re-write the project to be NME based targeting AS3?
Is it a difficult task? any one tried this before?
Okey, after one months, no answers! so, I decided to answer my question, as I have already started porting my createJS project to haxe nme, here is what I got:
haxe nme is now openFL
targeting flash with openFL is very easy! they are using the same Flash APIs
using FlashDevelop, you will need to use conditional compilation
to keep things simple, rather than re-writing onPress, onMouseMove .. etc in createJS, I've created a wraper classes that use the same APIs of createJS, which will add events/ remove events behind the scenes
also, I wrote a wrapper for Tween to use Actuate behind the scenes.
Any one needs those wrappers, I would be glad to help!
I tried the simpledroid with INotifyPropertyChanged and ICommand successfully.
I want to do the same with monotouch and xib designer,but without TouchDialog. Is there a way to implement without inheriting from mvx class as in monodroid?
Is it possible to do the same with MonoMac without Dialog as Portable Library in MonoMac or XaMac in supported now?
I understand what is your goal.
I think you want to start learning MvvmCross for Monotouch with a basic application example as you probably did with SimpleDroid. I tried to do the same without success.
Why ? Because SimpleDialogTouch is an "Advanced" example in my opinion. When you learn Monotouch, you use xib to design your view. But the sample tells you to learn a new tool "Monotouch Dialog" which is a way to display controls programmatically.
You get those errors because the sample implements the ViewModel only for Dialog and not for xib or classic binding.
Finally, you will have to dig into MvvmCross to build your own SimpleTouch implementation. The problem is that you don't have a lot of documentation, but Stuart is the best supporter for a beginner or you can switch to advanced Mvx features if you don't need to understand the underground of MvvmCross. There are a lot of samples, tutorials and posts to tweak Mvx.
Hope that helps.
Is there a way to implement without inheriting from mvx class as in monodroid?
I don't believe this is supported in the current source.
There is an effort underway to separate out the databinding code in MvvmCross so it can be used more easily with other frameworks - e.g. we might try porting MvvmLight across too. This is where my effort is currently focused.
If you need this now, then I think you could fairly easily create this simple binding yourself if you wanted to - but you'd have to take a look at what the SimpleDialog version does - it's not too big a code to copy across to the XIB version - https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Dialog.Touch/Simple/MvxSimpleTouchDialogViewController.cs
But... why not just implement a proper portable MvxViewModel instead?
Is it possible to do the same with MonoMac without Dialog as Portable Library in MonoMac or XaMac in supported now?
Portable libraries are not supported in any release from Xamarin yet - there is an unofficial installer that Jeff very kindly provided - but it's not a release...
For MvvmCross MonoMac/XaMac support, there is one non-PCL version from #deapsquatter around, but I don't believe this has data-binding yet.
I will be working on a PCL and data-binding release for MonoMac or XaMac - but it's on a spare time basis - no-one's come forward with a customer project to fund that work yet. If you or anyone wants to assist with this port, then you are very welcome... but it will be quite technical work - there are changes I intend to make 'under the covers' - so the easiest place for others to help will probably be in later work - adding more views, more bindings, doing QA, making samples, etc.
Note: "Simple" bindings are not the future for MvvmCross and may get dropped from a future release. However, this will only happen after I've separated out the Binding code so that it can be used with other libraries - the first of which will probably be a simple binding example.
I personally don't see much difference or advantage in using these so-called Simple bindings... but maybe I'm missing something...
The property for UIFont.LineHeight was removed in MonoTouch 4.0. What was the motivation behind this and are there any alternatives or do I have to write my own binding to get that value?
This was an oversight, my apologies for that. It will be reintroduced in 4.0.1. In the meantime you can do:
Messaging.float_objc_msgSend (font.Handle, Selector.GetHandle ("lineHeight"));
I'm using Automapper in a VB.NET project, and am trying to make it ignore a member. I can see how to do this in C#, but not in VB.NET. Does anyone have a quick example of using the ForMember method.
Thanks,
Paul
Here's how you do it :)
Mapper.CreateMap(Of incomingModel, outgoingModel)().ForMember(Function(x) x.FieldToIgnore, Sub(y) y.Ignore())
The thing that is important, and likely what messed up you is the Sub instead of the function for the second part.
this also only works in vs2010. older versions you can't do it.
There is now (AutoMapper 2.0) an IgnoreMap attribute.