This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This example uses Storyboards and iPad app. We have few entities here the TreeViewController (also holding the TreeViewSource delegate and my TreeNode Class) and TreeViewCell where I’m adding UIViews programatically. | |
Code as follows: | |
1) TreeViewController class: | |
public partial class TvViewController : UIViewController | |
{ | |
public TvViewController(IntPtr handle) : base(handle) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//_mapFragment.Map is now obsolete with latest Google Play services.. new approach is needed... | |
private void SetUpMap() | |
{ | |
_mapFragment = FragmentManager.FindFragmentByTag("map") as MapFragment; | |
if (_mapFragment == null) | |
{ | |
GoogleMapOptions mapOptions = new GoogleMapOptions() | |
.InvokeMapType(GoogleMap.MapTypeHybrid) | |
.InvokeZoomControlsEnabled(true) | |
.InvokeCompassEnabled(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//PhotoObserver.cs | |
public class Media | |
{ | |
public System.DateTime Added { get; set; } | |
public File File { get; set; } | |
public System.DateTime Modified { get; set; } | |
public string Type { get; set; } | |
public override string ToString() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Snippet Name: iOS Utils | |
Platform: Xamarin.iOS | |
Function: Check if running iOS 8, is phone, is tall, and envoke on UI Thread | |
Snippet: | |
public static class Utils | |
{ | |
public static NSObject Invoker; |