public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { PageEntryType expectedType = (PageEntryType)parameter; PageEntryType actualType = ((PageEntry)value).Type; return(expectedType == actualType ? Visibility.Visible : Visibility.Collapsed); }
public PageEntry(int num, PageEntryType type) { PageNumber = num; Type = type; }