Class ConsoleHighlightConverter
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
A line plus what is being searched for, as text with the matches marked inside it.
public class ConsoleHighlightConverter : IMultiValueConverter
- Inheritance
-
ConsoleHighlightConverter
- Implements
-
IMultiValueConverter
- Inherited Members
Remarks
Filtering answers "which lines", and on a line four hundred characters long that is only half the question. A stack frame buried in the middle of one is found by the filter and still has to be hunted for by eye; marking it where it is turns finding into seeing.
Returns an Avalonia.Controls.Documents.InlineCollection bound to TextBlock.Inlines. That property is a
direct property in Avalonia 11.2.3 — checked against the assembly rather than assumed, because
the whole design rests on it — so it takes a binding like any other.
Fields
Instance
public static readonly ConsoleHighlightConverter Instance
Field Value
Methods
Convert(IList<object?>, Type, object?, CultureInfo)
Converts multi-binding inputs to a final value.
public object Convert(IList<object?> values, Type targetType, object? parameter, CultureInfo culture)
Parameters
valuesIList<object>The values to convert.
targetTypeTypeThe type of the target.
parameterobjectA user-defined parameter.
cultureCultureInfoThe culture to use.
Returns
- object
The converted value.
Remarks
This method should not throw exceptions. If the value is not convertible, return Avalonia.AvaloniaProperty.UnsetValue. Any exception thrown will be treated as an application exception.