public StyleListView() { IsNavigationBarVisible = true; Container = new BaseScrollView(); Container.Orientation = ScrollOrientation.Horizontal; Container.ScrollEnabled = false; BackgroundColor = Background; MyStyles = new StyleContainer(); MyStyles.Header = StyleContainer.GetHeaderLabel("MY STYLES"); Templates = new StyleContainer(); Templates.Header = StyleContainer.GetHeaderLabel("TEMPLATE STYLES"); Templates.ContainsRefreshButton = true; AddStyle = new AddStyleItem(); MyStyles.Footer = AddStyle; Tabs = new StyleTabBar(); FileList = new FileListPopup(); Webview = new WebviewPopup(); Settings = new SettingsPopup(); SettingsButton = new SettingsButton(); NavigationBar.AddRightBarButton(SettingsButton); }
protected override void OnElementChanged(ElementChangedEventArgs <RelativeLayout> e) { base.OnElementChanged(e); if (e.NewElement != null) { View = e.NewElement as AddStyleItem; #if __IOS__ Layer.BorderWidth = View.BorderWidth; Layer.BorderColor = View.BorderColor.ToNativeColor().CGColor; if (View.Elevated) { var path = UIKit.UIBezierPath.FromRect(Bounds); Layer.MasksToBounds = false; Layer.ShadowColor = Colors.CartoNavy.ToNativeColor().CGColor; Layer.ShadowOffset = new CoreGraphics.CGSize(2.0f, 2.0f); Layer.ShadowOpacity = 0.5f; Layer.ShadowPath = path.CGPath; } #endif } }