예제 #1
0
 public SplashScreenViewModel(SyncFusionService syncfusionService,
                              MediaElementService mediaElementService,
                              AnalyticsService analyticsService,
                              NotificationService notificationService) : base(analyticsService)
 {
     InitializeAppCommand = new AsyncCommand(() => ExecuteInitializeAppCommand(syncfusionService, mediaElementService, notificationService));
 }
예제 #2
0
 public GitTrendsOnboardingPage(IDeviceInfo deviceInfo,
                                IMainThread mainThread,
                                IAnalyticsService analyticsService,
                                MediaElementService mediaElementService)
     : base(OnboardingConstants.SkipText, deviceInfo, Color.FromHex(BaseTheme.LightTealColorHex), mainThread, 0, analyticsService, mediaElementService)
 {
 }
예제 #3
0
        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));
        }
예제 #4
0
            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)
                    }
                };
            }
예제 #5
0
 public ChartOnboardingPage(IDeviceInfo deviceInfo,
                            IMainThread mainThread,
                            IAnalyticsService analyticsService,
                            MediaElementService mediaElementService)
     : base(OnboardingConstants.SkipText, deviceInfo, Color.FromHex(BaseTheme.CoralColorHex), mainThread, 1, analyticsService, mediaElementService)
 {
 }
예제 #6
0
 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;
 }
예제 #7
0
                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();
                }