This repository has been archived by the owner on May 1, 2024. It is now read-only.
BoolToEnumConverter #1907
Unanswered
NebulaSleuth
asked this question in
Q&A
Replies: 1 comment
-
@NebulaSleuth I believe this is because <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:LastQueenStanding.ViewModels"
xmlns:local="clr-namespace:LastQueenStanding"
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
x:Class="LastQueenStanding.Views.CheckInPage"
Title="{Binding Title}">
<ContentPage.Resources>
<ResourceDictionary>
<xct:EnumToBoolConverter x:Key="CheckInAvailable">
<xct:EnumToBoolConverter.TrueValues>
<vm:CheckInStatus>Available</vm:CheckInStatus>
<vm:CheckInStatus>Available</vm:CheckInStatus>
</xct:EnumToBoolConverter.TrueValues>
</xct:EnumToBoolConverter>
</ResourceDictionary>
</ContentPage.Resources>
<Grid></Grid>
</ContentPage> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use the BoolToEnumConverter, but I keep getting a compile error in my xaml and can't figure out what I am doing wrong. I keep getting
"XamlC error XFC0009: No property, BindableProperty, or event found for "TrueValues", or mismatching type between value and property."
My Enum:
public enum CheckInStatus { Unknown, BeforeCheckInTime, Available, AfterCheckInTime, CheckedIn }
My Xaml:
`
Beta Was this translation helpful? Give feedback.
All reactions