public BaseDemoView(TabbedDemoPage tabbedDemoPage) { this.tabbedDemoPage = tabbedDemoPage; printerLbl = new Label { Text = "No Printer Selected" }; Button selectPrinterBtn = new Button { Text = "Select Printer", HorizontalOptions = LayoutOptions.Start }; selectPrinterBtn.Clicked += SelectPrinterBtn_Clicked; Button aboutBtn = new Button { Text = "About", HorizontalOptions = LayoutOptions.EndAndExpand }; aboutBtn.Clicked += AboutBtn_Clicked; StackLayout topSection = new StackLayout { VerticalOptions = LayoutOptions.Start, HorizontalOptions = LayoutOptions.FillAndExpand, Orientation = StackOrientation.Horizontal, Children = { selectPrinterBtn, aboutBtn } }; SelectPrinterView.OnPrinterSelected += SelectPrinterView_OnPrinterSelected; Children.Add(printerLbl); Children.Add(topSection); }
public FormatView(TabbedDemoPage tabbedDemoPage) : base(tabbedDemoPage) { title = new Label { Text = "No Format Selected" }; spinner = new ActivityIndicator { IsRunning = false }; ClearFormat(); }
public StatusDemoView(TabbedDemoPage tabbedDemoPage) : base(tabbedDemoPage) { printerStatusLbl = new Label { Text = "Printer Status:" }; causesLbl = new Label { Text = "" }; refreshBtn = new Button { Text = "Check Status" }; refreshBtn.Clicked += RefreshBtn_Clicked; refreshBtn.IsEnabled = true; Children.Add(refreshBtn); Children.Add(printerStatusLbl); Children.Add(causesLbl); }
public ReceiptDemoView(TabbedDemoPage tabbedDemoPage) : base(tabbedDemoPage) { Label title = new Label { Text = "Receipt Demo" }; printBtn = new Button { Text = "Print" }; printBtn.Clicked += PrintBtn_Clicked; Children.Add(title); Children.Add(printBtn); }
public FormatDemoCarousel(TabbedDemoPage tabbedDemoPage) { Title = "Format Demo"; formatDemoView = new FormatDemoView(tabbedDemoPage); formatView = new FormatView(tabbedDemoPage); Children.Add(new ContentPage { Title = "Select a Format", Content = formatDemoView }); Children.Add(new ContentPage { Title = "Enter Information", Content = formatView }); formatDemoView.OnFormatSelected += FormatDemoView_OnFormatSelected; }
public FormatDemoView(TabbedDemoPage tabbedDemoPage) : base(tabbedDemoPage) { formatList = new ObservableCollection <Format>(); title = new Label { Text = "Format Demo" }; refreshBtn = new Button { Text = "Get Formats" }; refreshBtn.Clicked += RefreshBtn_Clicked; spinner = new ActivityIndicator { IsRunning = false }; formatLv = new ListView { ItemsSource = formatList }; formatLv.ItemSelected += FormatLv_ItemSelected; Children.Add(title); Children.Add(refreshBtn); Children.Add(spinner); Children.Add(formatLv); }