How to add style in Xamarin forms Cross Platform RRS feed

  • Question

  • User304950 posted

    Dear All Any Help

    Saturday, March 4, 2017 5:11 AM

All replies

  • User304950 posted

    sir thanks for your question but i need a example with cross platform.

    Saturday, March 4, 2017 9:10 AM
  • User2148 posted

    it's under Xamarin Forms section. It's "cross platform"

    Saturday, March 4, 2017 9:10 AM
  • User304950 posted

    sir its ok but i have a question how to create separate style XML forms and use that main page button style. Like this C# asp.net Platform CSS Style you can use that css style just you page you call that css.

    Saturday, March 4, 2017 10:39 AM
  • User304950 posted

    thanks I will check then I will update .

    Saturday, March 4, 2017 11:25 AM
  • User355485 posted

    Here is full guide https://youtu.be/q8PvKsrYirY

    Tuesday, January 30, 2018 6:58 PM
  • User370290 posted

    Hi all,

    i need to add stylesheet in app.xaml.cs instead app.xaml...

    App.xaml :

        <StyleSheet Source="/Assets/styles.css" />

    App.xaml.cs: How i need to add above in in cs page

    but i dont have any idea about how to set source for Stylesheet. Do you guys have any idea please share...

    Thursday, March 28, 2019 9:11 AM
  • User370290 posted

    Added...like below. ``` public partial class App : Application { public App() { InitializeComponent();

    Xamarin.Forms.StyleSheets.StyleSheet styleSheet = Xamarin.Forms.StyleSheets.StyleSheet.FromAssemblyResource(this.GetType().Assembly, "GettingStarted.Assets.styles.css");
    if (styleSheet != null)
      this.Resources.Add(styleSheet) ;

    } } ```

    Thursday, March 28, 2019 9:49 AM
  • User389364 posted

    Hi I need help. I want add stylesheet for xaml file and I found the video in microsoft page for stylling and when i apply until the time 1:54 in video I don't find Stylesheet in xamarin to choose the extension of my file be like (.css) so and i serch in all parts so can anyone tell me what should i do i use (vs2019)

    Saturday, September 28, 2019 6:59 PM