JSQMessagesViewController add button to bubble - xamarin.ios

i use this nuget https://www.nuget.org/packages/JSQMessagesViewController
to provide binding on my xamarin ios project.
Question is how to add custom cell to JSQMessagesViewController that it includes one view with some button?sample
i find solution on this issue https://github.com/jessesquires/JSQMessagesViewController/issues/1739#issuecomment-246489889
but have trouble convert swift to c# code

Related

IPleaseWaitService not working after upgrade to 5.0

I have an app that I use the IPleaseWaitService working fine when using Catel v 4.5.4, but when I updated to v 5.0.0, the IPleaseWaitService does not display the UpdateStatus and only displays a little spinner that doesn't go away on Hide (the only way to 'hide' the spinner is to use Pop). Additionally the views are not greyed out and not active like the previous version used to do.
Is there anything special that I have to do to implement the IPleaseWaitService with Catel 5.0.0? (nothing indicated in the documentation)
thanks
The PleaseWaitHelper (used for the WPF implementation) has been removed to simplify the code-base for Catel 5. See https://github.com/Catel/Catel/issues/1010 for more information>
The good news is that it's all open source so you can copy / paste the implementation of the PleaseWaitService from Catel 4.5 and use that one if you prefer it.
Another implementation you could look at can be found in Orchestra, where it embeds itself in the shell (at the bottom).

Cannot create class-file Android Studio

I'm trying to integrate Google Calendar API into my android project and I follow the tutorial here
https://developers.google.com/google-apps/calendar/quickstart/android
At step 5 create a new java class
I right click project folder src>main>java>com>example>utarapp and then new>file and entered the file name but then it has this error
What's going on ?
I'm using android studio 1.3.1
I think you are trying to create file with same name which is already present in the same package. This may be one possible reason.
It seems like you are right-clicking on the upper level in your application's directory tree.
Right click on one of the files inside the utarapp folder and then select Java class option from the menu.
For me this was happenning because of the length of the class name. In my case it was "ChallengesFragmentPagerAdapter"!
Changing it to "ChallengesPagerAdapter" solved the problem.
Create a blank Activity then remove "extends Activity" from the activity class.

Using UISearchBar with Xamarin iOS and MVVMCross

We have a standard SearchView - SearchViewModel binding that works in our Android and Windows Store apps.
There are various places in the app that call ShowViewModel to show the SearchViewModel. In this call we pass the Search Text.
We are now looking to reuse that same ViewModel in Xamarin.iOS.
The UISearchBar examples show the Search Bar filtering data in the current ViewModel.
I want to use it as a way of triggering a ShowViewModel, with the Search text being passed across to the SearchViewModel. That would then take the user from the current View to the Search View.
How do I trap the initiation of the Search so that I can pass the Search Text across to our SearchViewModel using ShowViewModel?

Adding User Defined Runtime Attributes?

Is there a way to add user defined runtime attributes to a button in Xamarin's storyboard designer?
I'm trying to get Pixate Freestyle to work and need to define the attributes. I can only find the place to define them within xcode.
I was working on a Xamarin Forms project and I figured out that on each platform, there is a method to update the style for a Control. The way I used to do this is something like this:
PixateFreestyle.SetStyleId(view, styleId);
or
PixateFreestyle.SetClassId(view, classId);
Where view is any UIView you want to style ann styleId/classId is a string with the style name in your default.css
Hope this works for you
This is where I based my project
XamarinForms-PixateFreestyle

MvvmCross and Xcode Storyboard

The storyboard xcode are supported in mvvmcross v3?
If yes, how? There is an example?
Thanks
MvvmCross doesn't really fit that well with Storyboards
The reason is because Storyboards have some logic in them (eg Segue navigation) which really belongs inside actions in the MvvmCross ViewModels.
With that said... if you just want to take advantage of data-binding then you can... just:
add the MvvmCross assembly references
modify your Storyboard app so it runs some minimal setup code
use the Mvx*ViewController base classes instead of the UI*ViewController classes
and similarly use MvxTableViewCell (or similar) for the base class for any TableViewCell's you use.
There's no documentation around for this at the moment... but there is one sample - posted under the very odd title of 'eh' - https://github.com/slodge/eh - it's just a simple master-detail pair of views and it needs to be built against recent binaries - e.g from https://github.com/slodge/MvvmCross-Binaries/tree/master/XS-iOS-Mac
Not sure if this is really the SO way but Stuart and others have a better answer IMHO to this question when it was asked at a later date. See the answers to this question MVVMCross support for Xamarin.iOS Storyboards
I am answering here just to tie up the Q&A
UPDATE
MVVMCross 3.5.1 Now has a FromStoryboard attribute so that you can have some views which are Storyboard based. See http://slodge.blogspot.co.uk/2015/05/351-release.html
Thanks
Pat

Resources