public SplashScreenViewModel(SyncFusionService syncfusionService, MediaElementService mediaElementService, AnalyticsService analyticsService, NotificationService notificationService) : base(analyticsService) { InitializeAppCommand = new AsyncCommand(() => ExecuteInitializeAppCommand(syncfusionService, mediaElementService, notificationService)); }
public GitTrendsOnboardingPage(IDeviceInfo deviceInfo, IMainThread mainThread, IAnalyticsService analyticsService, MediaElementService mediaElementService) : base(OnboardingConstants.SkipText, deviceInfo, Color.FromHex(BaseTheme.LightTealColorHex), mainThread, 0, analyticsService, mediaElementService) { }
public OrganizationsCarouselOverlay(IMainThread mainThread, IAnalyticsService analyticsService, MediaElementService mediaElementService) { _mainThread = mainThread; _analyticsService = analyticsService; RowDefinitions = Rows.Define( (Row.CloseButton, Star), (Row.CarouselFrame, Stars(8)), (Row.BottomPadding, Star)); ColumnDefinitions = Columns.Define( (Column.Left, Star), (Column.Center, Stars(8)), (Column.Right, Star)); Children.Add(new BackgroundOverlay() .RowSpan(All <Row>()).ColumnSpan(All <Column>())); Children.Add(new CloseButton(() => Dismiss(true), analyticsService) .Row(Row.CloseButton).Column(Column.Right)); Children.Add(new OrganizationsCarouselFrame(analyticsService, mediaElementService) .Row(Row.CarouselFrame).Column(Column.Center)); Dismiss(false).SafeFireAndForget(ex => analyticsService.Report(ex)); }
public OrganizationsCarouselFrame(IAnalyticsService analyticsService, MediaElementService mediaElementService) { _analyticsService = analyticsService; Padding = 0; CornerRadius = _cornerRadius; LightThemeBackgroundColor = GetBackgroundColor(0); Elevation = 8; Content = new EnableOrganizationsGrid { IsClippedToBounds = true, Children = { new OpacityOverlay() .Row(EnableOrganizationsGrid.Row.Image), new OrganizationsCarouselView(analyticsService, mediaElementService) .Row(EnableOrganizationsGrid.Row.Image).RowSpan(All <EnableOrganizationsGrid.Row>()) .Invoke(view => view.PositionChanged += HandlePositionChanged) .FillExpand(), new EnableOrganizationsCarouselIndicatorView() .Row(EnableOrganizationsGrid.Row.IndicatorView) .Assign(out _indicatorView) } }; }
public ChartOnboardingPage(IDeviceInfo deviceInfo, IMainThread mainThread, IAnalyticsService analyticsService, MediaElementService mediaElementService) : base(OnboardingConstants.SkipText, deviceInfo, Color.FromHex(BaseTheme.CoralColorHex), mainThread, 1, analyticsService, mediaElementService) { }
public ConnectToGitHubOnboardingPage(IDeviceInfo deviceInfo, IMainThread mainthread, IAnalyticsService analyticsService, MediaElementService mediaElementService) : base(OnboardingConstants.TryDemoText, deviceInfo, Color.FromHex(BaseTheme.CoralColorHex), mainthread, 3, analyticsService, mediaElementService) { GitHubAuthenticationService.AuthorizeSessionCompleted += HandleAuthorizeSessionCompleted; }
public OrganizationsCarouselView(IAnalyticsService analyticsService, MediaElementService mediaElementService) { _analyticsService = analyticsService; Loop = false; HorizontalScrollBarVisibility = ScrollBarVisibility.Never; ItemsSource = new[] { new IncludeOrganizationsCarouselModel(ManageOrganizationsConstants.GitHubOrganizationsTitle, ManageOrganizationsConstants.GitHubOrganizationsDescription, 0, "Business", null), new IncludeOrganizationsCarouselModel(ManageOrganizationsConstants.GitTrendsAccessTitle, ManageOrganizationsConstants.GitTrendsAccessDescription, 1, "Inspectocat", null), new IncludeOrganizationsCarouselModel(ManageOrganizationsConstants.EnableOrganizationsTitle, ManageOrganizationsConstants.EnableOrganizationsDescription, 2, null, mediaElementService.EnableOrganizationsUrl), }; ItemTemplate = new EnableOrganizationsCarouselTemplateSelector(); }