예제 #1
0
        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);
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <returns>Adornment corresponding to given data. May be null.</returns>
 private BookmarkHeaderAdornment CreateAdornment(BookmarkHeaderTag dataTag)
 {
     return(new BookmarkHeaderAdornment(dataTag));
 }
예제 #4
0
 public BookmarkHeaderAdornment(BookmarkHeaderTag tag)
 {
     InitializeComponent();
     Update(tag);
 }