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);
        }
Example #2
0
 public PageEntry(int num, PageEntryType type)
 {
     PageNumber = num; Type = type;
 }