public Footer (ExtendedMap map, double pageHeight, double minimizedFooterY, double expandedFooterY) { _extendedMap = map; _uiHelper = new UIHelper (); _pageHeight = pageHeight; _minimizedFooterY = minimizedFooterY; _expandedFooterY = expandedFooterY; FooterMode = FooterMode.Hidden; var footerLayout = new RelativeLayout (); footerLayout.Children.Add ( new FooterMaster(_extendedMap, _uiHelper, this), Constraint.RelativeToParent ((parent) => (parent.Width * 0)), Constraint.RelativeToParent ((parent) => (parent.Height * 0)), Constraint.RelativeToParent ((parent) => (parent.Width * 1)), Constraint.RelativeToParent ((parent) => (parent.Height * 0.15)) ); footerLayout.Children.Add ( new FooterDetail(_uiHelper, _extendedMap, this), Constraint.RelativeToParent ((parent) => (parent.Width * 0)), Constraint.RelativeToParent ((parent) => (parent.Height * 0.149)), Constraint.RelativeToParent ((parent) => (parent.Width * 1)), Constraint.RelativeToParent ((parent) => (parent.Height * 1)) ); Content = footerLayout; }
public Footer(ExtendedMap map, double pageHeight, double minimizedFooterY, double expandedFooterY) { _extendedMap = map; _uiHelper = new UIHelper(); _pageHeight = pageHeight; _minimizedFooterY = minimizedFooterY; _expandedFooterY = expandedFooterY; FooterMode = FooterMode.Hidden; var footerLayout = new RelativeLayout(); footerLayout.Children.Add( new FooterMaster(_extendedMap, _uiHelper, this), Constraint.RelativeToParent((parent) => (parent.Width * 0)), Constraint.RelativeToParent((parent) => (parent.Height * 0)), Constraint.RelativeToParent((parent) => (parent.Width * 1)), Constraint.RelativeToParent((parent) => (parent.Height * 0.15)) ); footerLayout.Children.Add( new FooterDetail(_uiHelper, _extendedMap, this), Constraint.RelativeToParent((parent) => (parent.Width * 0)), Constraint.RelativeToParent((parent) => (parent.Height * 0.149)), Constraint.RelativeToParent((parent) => (parent.Width * 1)), Constraint.RelativeToParent((parent) => (parent.Height * 1)) ); Content = footerLayout; }
View CreateMapContentView() { //Coordinates for the starting point of the map const double latitude = 41.788081; const double longitude = -87.831573; var location = new Position(latitude, longitude); var _map = new ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap(MapSpan.FromCenterAndRadius(location, Distance.FromMiles(15))) { IsShowingUser = true }; _map.StyleId = "CustomMap"; _map.ShareText = string.Format("This is a custom message text"); _map.BindingContext = BindingContext; _map.SetBinding <ExtendedMapViewModel>(ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap.CustomPinsProperty, x => x.SamplePins); var createMapContentView = new CustomMapContentView(_map); return(createMapContentView); }
public FooterMaster (ExtendedMap extendedMap, UIHelper uiHelper, Footer footer) { _extendedMap = extendedMap; _uiHelper = uiHelper; _footer = footer; Content = CreateFooter (); }
public CustomMapContentView (ExtendedMap extendedMap) { _extendedMap = extendedMap; _mapGrid = new RelativeLayout {BindingContext = this}; Content = _mapGrid; }
public FooterMaster(ExtendedMap extendedMap, UIHelper uiHelper, Footer footer) { _extendedMap = extendedMap; _uiHelper = uiHelper; _footer = footer; Content = CreateFooter(); }
public FooterDetail (UIHelper uiHelper, ExtendedMap extendedMap, Footer footer) { _uiHelper = uiHelper; _extendedMap = extendedMap; _footer = footer; Content = CreateFooterDetails (); }
public FooterDetail(UIHelper uiHelper, ExtendedMap extendedMap, Footer footer) { _uiHelper = uiHelper; _extendedMap = extendedMap; _footer = footer; Content = CreateFooterDetails(); }
public CustomMapContentView(ExtendedMap extendedMap) { _extendedMap = extendedMap; _mapGrid = new RelativeLayout { BindingContext = this }; Content = _mapGrid; }
View CreateMapContentView() { //Coordinates for the starting point of the map const double latitude = 41.788081; const double longitude = -87.831573; var location = new Position(latitude, longitude); var _map = new ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap(MapSpan.FromCenterAndRadius(location, Distance.FromMiles(15))) { IsShowingUser = true }; _map.StyleId = "CustomMap"; _map.ShareText = string.Format("This is a custom message text"); _map.BindingContext = BindingContext; _map.SetBinding<ExtendedMapViewModel>(ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap.CustomPinsProperty, x => x.SamplePins); var createMapContentView = new CustomMapContentView(_map); return createMapContentView; }