This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// na stronie z ammy ui | |
using AmmyUIExmaple.Converters | |
Frame { | |
// ... inne właściwości | |
BackgroundColor: bind Category convert (EntryCategory category) => EntryCategoryToColorConverter.Convert(category) | |
} | |
// gdzieś w innym pliku .cs | |
public static class EntryCategoryToColorConverter | |
{ | |
public static Color Convert(EntryCategory value) | |
{ | |
return (Color)App.Current.Resources["EntryCategoryColor" + value]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment