Last active
October 29, 2017 18:09
-
-
Save tomwis/ebd9822f166e4759437400e9aa7bdfb8 to your computer and use it in GitHub Desktop.
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