public InstanceDetailsTotalSpots() { InitializeComponent(); Title = "Choose number of spots"; this.Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(SelectAppointmentService)).Assembly, "FBCross.Styles.global.css")); }
public MerchantSelectionPage() { InitializeComponent(); this.Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(MerchantSelectionPage)).Assembly, "FBCross.Styles.global.css")); BackgroundColor = Color.FromRgb(13, 130, 219); }
public static void SetAppGlobalTheme(ResourceDictionary resources, string version) { version = $"OmniReader.GUI.Assets.Style.Theme.AppThemeV{version}.css"; //"MyProject.Assets.styles.css" resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(OmniReader.GUI.App)).Assembly, version)); }
public MainPage() { vc = new ViewModel(); Resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(MainPage)).Assembly, "CalculatorForTest2.Assets.Style.css")); BindingContext = vc; InitializeComponent(); }
public StyledPage(string id) { InitializeComponent(); var filename = $"mulitsheets.Assets.sheet{id}.css"; var img = id == "1" ? "zx81" : id == "2" ? "spectrum" : "ql"; Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(StyledPage)).Assembly, filename)); imgPic.Source = img; }
public LoginPage() { InitializeComponent(); // MPage.Resources.Add(StyleSheet.FromAssemblyResource(typeof(MasterPage).Assembly,”Test.Styles.Menu.css“)); //AlianceOrderTrackMobile.Styles. //this.Resources.Add(new StyleSheet() var LoginPageSheet = StyleSheet.FromAssemblyResource(typeof(LoginPage).Assembly, "AlianceOrderTrackMobile.Styles.LoginPage.css"); this.Resources.Add(LoginPageSheet); }
public MainPage() { InitializeComponent(); this.Resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(MainPage)).Assembly, "XCamera.Resources.styles.css")); curProjectSql = new ProjectSql(XCamera.Util.Config.current.szCurProject); btnTakePhoto.Clicked += btnTakePhoto_Clicked; btnPickPhoto.Clicked += btnPickPhoto_Clicked; }
// This code is called from the App Constructor so just initialize the main page of the application here void InitializeMainPage() { this.Resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(App)).Assembly, "Xamarin.Forms.Sandbox.Styles.css")); //MainPage = CreateStackLayoutPage(new[] { new Button() { Text = "text" } }); //MainPage.Visual = VisualMarker.Material; MainPage = new ShellPage(); // MainPage = new NavigationPage(new MainPage()); }
private void Switch_Toggled(object sender, ToggledEventArgs e) { if (e.Value == true) { this.Resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(BlogPage)).Assembly, "XF_CSSandBindableL.Styles.CustomThemeStyle.css")); } else { this.Resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(BlogPage)).Assembly, "XF_CSSandBindableL.Styles.ClassicThemeStyle.css")); } }
public SchemaDetailPage(Schema schema) { viewModel = new SchemaDetailViewModel(schema); try { this.Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(SchemaDetailPage)).Assembly, "VaccineCalendar.Vaccine.css")); } catch (Exception ex) { throw; } //Content = ContentBuilder(); }
public CSSsample() { InitializeComponent(); //using (var reader = // new StringReader // ("^contentpage { background-color: lightgray; } stacklayout { margin: 20; }")) //{ // // "this" represents a page // // StyleSheet requires a using Xamarin.Forms.StyleSheets directive // this.Resources.Add(StyleSheet.FromReader(reader)); //} var styleSheet = StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(CSSsample)).Assembly, "Project1.Assets.mystyle.css"); this.Resources.Add(styleSheet); }
public void loadTheme() { string DarkTheme = "ProductChecker.Style.DarkTheme.css"; string LightTheme = "ProductChecker.Style.LightTheme.css"; string themeAdd = LightTheme; Setting st = Setting.GetSetting(); if (st.IsDarkTheme) { themeAdd = DarkTheme; } StyleSheet s = StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(App)).Assembly, themeAdd); Resources.Add(s); }
public MainPage() { InitializeComponent(); Resources.Add(StyleSheet.FromAssemblyResource( typeof(MainPage).GetTypeInfo().Assembly, "MixoLogy.Assets.styles.css")); _cocktails = Cocktail.LoadCocktailsCollection(); CreateGrid(_cocktails); var button = new Button { Text = "Load More", BackgroundColor = Color.HotPink, HorizontalOptions = LayoutOptions.CenterAndExpand, Margin = new Thickness(5, 5, 5, 40) }; button.Clicked += LoadMore; stackLayout.Children.Add(button); }
public ProjectPage () { InitializeComponent(); this.Resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(MainPage)).Assembly, "XCamera.Resources.styles.css")); string szTemp = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); Logging.szLogFile = System.IO.Path.Combine(szTemp, "XCamera.log"); XCamera.Util.Config.szConfigFile = System.IO.Path.Combine(szTemp, "XCamera.xml"); ProjectUtil.szBasePath = szTemp; ProjectUtil.szServer = "http://" + Config.current.szIP + ":" + Config.current.szPort + "/xcamera"; lstProjects.StyleId = bIsRemote.ToString(); projects = ProjectUtil.GetProjectList(); lstProjects.ItemsSource = projects; lstProjects.SelectedItem = projects.Find(proj => { return proj.Equals(XCamera.Util.Config.current.szCurProject); }); // this.BindingContext = this; }
public MainPage() { this.Resources.Add(StyleSheet.FromAssemblyResource (IntrospectionExtensions.GetTypeInfo(typeof(MainPage)).Assembly, "ChernivtsiGuide.mystyles.css")); confirmButton.Clicked += delegate { OnConfirmButtonClicked(selectedPlaces); }; NavigationPage.SetTitleView(this, new Image() { Source = "smart_che.png", HorizontalOptions = LayoutOptions.FillAndExpand }); Question generalQuestion = App.questionRepository.GetQuestion(1); Label generalQuestionLebel = new Label() { Text = generalQuestion.Question_content, HorizontalTextAlignment = TextAlignment.Center, FontSize = 20, FontFamily = "TimesNewRoman" }; IEnumerable <General_type> general_Types = App.generalTypeRepository.GetItems(); StackLayout generalTypesStack = new StackLayout(); foreach (General_type general_Type in general_Types) { Button generalButton = new Button() { Text = general_Type.General_name, WidthRequest = 200, HeightRequest = 50 }; generalButton.Clicked += delegate { OnGeneralButtonClicked(general_Type.General_id, general_Type.General_question); }; Image generalImage = new Image { Source = general_Type.General_type_logo }; StackLayout generalImageButton = new StackLayout(); generalImageButton.Children.Add(generalButton); generalImageButton.Children.Add(generalImage); generalTypesStack.Children.Add(generalImageButton); } generalTypesStack.Orientation = StackOrientation.Horizontal; ScrollView generalTypeScrollView = new ScrollView() { Content = generalTypesStack, Orientation = ScrollOrientation.Horizontal, }; StackLayout confirmStackLayout = new StackLayout() { Children = { confirmButton } }; //Content StackLayout ContentStackLayout = new StackLayout() { Children = { generalQuestionLebel, generalTypeScrollView, placeTypeLabel, placeTypeScrollView, placeAttribute1Label, placeAttribute1ScrollView, placeAttribute2Label, placeAttribute2ScrollView, confirmStackLayout } }; ScrollView contentScrollView = new ScrollView() { HorizontalOptions = LayoutOptions.Fill, VerticalOptions = LayoutOptions.FillAndExpand, Orientation = ScrollOrientation.Vertical, Content = ContentStackLayout, BackgroundColor = Color.FromRgb(185, 221, 210) }; this.Content = contentScrollView; }
public Appointment() { InitializeComponent(); this.Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(InstanceDetails)).Assembly, "FBCross.Styles.global.css")); }
private void SetStyle() { this.Resources.Add(StyleSheet.FromAssemblyResource (IntrospectionExtensions.GetTypeInfo(typeof(ListVersionDroid)).Assembly, "VersionAndroid.Style.ListDroidversion.css")); }
public SelectAppointmentCustomer() { InitializeComponent(); this.Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(SelectAppointmentCustomer)).Assembly, "FBCross.Styles.global.css")); }
public Activity() { InitializeComponent(); this.Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(Activity)).Assembly, "FBCross.Styles.global.css")); }
public static void SetPageStyle(ResourceDictionary resources, string styleName) { styleName = $"OmniReader.GUI.Assets.Style.Page.{styleName}.css"; resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(OmniReader.GUI.App)).Assembly, styleName)); }
}//loadFile //load embedded CSS private void SetupStyling() { this.Resources.Add(StyleSheet.FromAssemblyResource( IntrospectionExtensions.GetTypeInfo(typeof(MainPage)).Assembly, "Solstice.Assets.style.css")); }//setupStyling
public ConfirmPage(TestDrive td) { TestDrive = td; Title = "Подтверждение записи на тест-драйв"; Button button = new Button { VerticalOptions = LayoutOptions.EndAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, Text = "Подтвердить", AutomationId = "ButtonConfirmSubmit" }; button.Clicked += Button_Clicked; List <string> containerStyle = new List <string> { "container" }; List <string> labelBigStyle = new List <string> { "label-big" }; Content = new StackLayout { AutomationId = "ConfirmPageContainer", Children = { new StackLayout { StyleClass = containerStyle, Orientation = StackOrientation.Horizontal, IsVisible = !string.IsNullOrEmpty(TestDrive.FullName), Children = { new Label { StyleClass = labelBigStyle, Text = "ФИО:", VerticalTextAlignment = TextAlignment.Center }, new Label { Text = TestDrive.FullName, VerticalTextAlignment = TextAlignment.Center }, } }, new BoxView { StyleClass = new List <string>{ "hr" }, HorizontalOptions = LayoutOptions.FillAndExpand, IsVisible = !string.IsNullOrEmpty(TestDrive.FullName) }, new StackLayout { StyleClass = containerStyle, Orientation = StackOrientation.Horizontal, IsVisible = !string.IsNullOrEmpty(TestDrive.PhoneNumber), Children = { new Label { StyleClass = labelBigStyle, Text = "Телефонный номер:", VerticalTextAlignment = TextAlignment.Center }, new Label { Text = TestDrive.PhoneNumber, VerticalTextAlignment = TextAlignment.Center }, } }, new BoxView { StyleClass = new List <string>{ "hr" }, HorizontalOptions = LayoutOptions.FillAndExpand, IsVisible = !string.IsNullOrEmpty(TestDrive.PhoneNumber) }, new StackLayout { StyleClass = containerStyle, Orientation = StackOrientation.Horizontal, IsVisible = !string.IsNullOrEmpty(TestDrive.Email), Children = { new Label { StyleClass = labelBigStyle, Text = "Электронный адрес:", VerticalTextAlignment = TextAlignment.Center }, new Label { Text = TestDrive.Email, VerticalTextAlignment = TextAlignment.Center }, } }, new BoxView { StyleClass = new List <string>{ "hr" }, HorizontalOptions = LayoutOptions.FillAndExpand, IsVisible = !string.IsNullOrEmpty(TestDrive.Email) }, new StackLayout { StyleClass = containerStyle, IsVisible = !string.IsNullOrEmpty(TestDrive.Showroom), Children = { new Label { StyleClass = labelBigStyle, Text = "Адрес салона" }, new Label { Text = TestDrive.Showroom }, } }, new BoxView { StyleClass = new List <string>{ "hr" }, HorizontalOptions = LayoutOptions.FillAndExpand, IsVisible = !string.IsNullOrEmpty(TestDrive.Showroom) }, new StackLayout { StyleClass = containerStyle, Orientation = StackOrientation.Horizontal, IsVisible = TestDrive.Car != null, Children = { new Label { StyleClass = labelBigStyle, Text = "Автомобиль:", VerticalTextAlignment = TextAlignment.Center }, new Label { Text = TestDrive.Car?.MainInfo ?? string.Empty, VerticalTextAlignment = TextAlignment.Center }, } }, new BoxView { StyleClass = new List <string>{ "hr" }, HorizontalOptions = LayoutOptions.FillAndExpand, IsVisible = TestDrive.Car != null }, new StackLayout { StyleClass = containerStyle, Orientation = StackOrientation.Horizontal, Children = { new Label { StyleClass = labelBigStyle, Text = "Дата:", VerticalTextAlignment = TextAlignment.Center }, new Label { Text = TestDrive.DateTime.ToString("dd.MM.yyyy HH:mm"), VerticalTextAlignment = TextAlignment.Center }, } }, new BoxView { StyleClass = new List <string>{ "hr" }, HorizontalOptions = LayoutOptions.FillAndExpand }, button, } }; Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(MainPage)).Assembly, "CarShowroom.styles.css")); }