Skip to content
Discussion options

You must be logged in to vote

Can you explain what the purpose of the lines:

              this.Resources.Remove("^label { font-size: 15; }  ^entry { font-size: 15; } ^sfcombobox { font-size: 15");
              this.Resources.Add(StyleSheet.FromReader(FontSize14)); **// On second time when i tab the button it hits & value  **NOT** udpated to 14**

Are? I don't use "StyleSheets" so I am not sure how these work. But what is the point? If you just want to set the label.FontSize why not create an event in your app wherever it needs to happen like:

public event Action<int> newFontSizeEvent = null;

Then on your TapGestureRecognizer or however you're recognizing the user input to change the font size have it run:

newFontSi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GnanaPriyaNamasivayam
Comment options

Answer selected by GnanaPriyaNamasivayam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants