public void Update(BookmarkHeaderTag tag) { AdornmentBorder.BorderBrush = new SolidColorBrush(tag.Classification.Style.Foreground); AdornmentHeader.Text = tag.Classification.Name; AdornmentHeader.FontSize = tag.Classification.Style.Size; AdornmentHeader.FontFamily = new FontFamily(tag.Classification.Style.Font); AdornmentHeader.Foreground = new SolidColorBrush(tag.Classification.Style.Foreground); }
/// <returns>True if the adornment was updated and should be kept. False to have the adornment removed from the view.</returns> private bool UpdateAdornment(BookmarkHeaderAdornment adornment, BookmarkHeaderTag dataTag) { adornment.Update(dataTag); return(true); }
/// <returns>Adornment corresponding to given data. May be null.</returns> private BookmarkHeaderAdornment CreateAdornment(BookmarkHeaderTag dataTag) { return(new BookmarkHeaderAdornment(dataTag)); }
public BookmarkHeaderAdornment(BookmarkHeaderTag tag) { InitializeComponent(); Update(tag); }