Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <Button Text="-" TextColor="White" Padding="0" CornerRadius="4" FontAttributes="Bold" FontSize="Small" IsEnabled="False" BackgroundColor="#3F3C42" Clicked="QntLabelLess" x:Name="QntLess" Grid.Column="1" Grid.Row="1"/>
  2.  
  3. private void QntLabelLess(object sender, EventArgs e)
  4. {
  5. if (Qnt == 2)
  6. {
  7. QntLess.IsEnabled = false;
  8. // QntLess.TextColor = Color.FromHex("#FFFFFF");
  9. QntLess.BackgroundColor = Color.FromHex("#3F3C42");
  10. }
  11. if (Qnt == 10)
  12. {
  13. QntPlus.IsEnabled = true;
  14. QntPlus.TextColor = Color.FromHex("#000000");
  15. QntPlus.BackgroundColor = Color.FromHex("#FF8A00");
  16. }
  17. Qnt--;
  18. QntLabel.Text = Qnt.ToString();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement