Declined
Last Updated: 15 Feb 2017 12:29 by ADMIN
Benjamin
Created on: 26 Jul 2016 10:25
Category: ScheduleView
Type: Bug Report
2
ScheduleView: ShowWeekGroupHeaders rendering issue when using GroupHeaderContentTemplateSelector
In WeekView, when ShowWeekGroupHeaders is set, templating the GroupHeaders with GroupHeaderContentTemplateSelector lead to a rendering issue (see attached files).

In case I forgot something, here is my GroupHeaderContentTemplateSelector definition : 

    <svcore:GroupHeaderContentTemplateSelector x:Key="_GroupHeaderContentTemplateSelectorKey">
      <svcore:GroupHeaderContentTemplateSelector.HorizontalTemplate>
        <DataTemplate>
          <ContentPresenter MinHeight="16" Margin="4" Content="{Binding FormattedName, Converter={StaticResource UpperCaseStringConverter}}"/>
        </DataTemplate>
      </svcore:GroupHeaderContentTemplateSelector.HorizontalTemplate>
      <svcore:GroupHeaderContentTemplateSelector.VerticalTemplate>
        <DataTemplate>
          <ContentPresenter Margin="4" MinHeight="16" VerticalAlignment="Top" Content="{Binding FormattedName, Converter={StaticResource UpperCaseStringConverter}}">
            <ContentPresenter.LayoutTransform>
              <RotateTransform Angle="-90"/>
            </ContentPresenter.LayoutTransform>
          </ContentPresenter>
        </DataTemplate>
      </svcore:GroupHeaderContentTemplateSelector.VerticalTemplate>
      <svcore:GroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
        <DataTemplate>
          <Border Background="{Binding Name.DBResource.Color, Converter={StaticResource _SharedStringColorToSolidColorBrushConverterKey}}" Height="60" Margin="2">
            <StackPanel Orientation="Vertical" Margin="8">
              <TextBlock Foreground="{Binding Name.DBResource.Color, Converter={StaticResource _SharedBackgroundStringColorToForegroundConverterKey}}" FontSize="16" Margin="0" Text="{Binding Name.DisplayName}" />
              <TextBlock Foreground="{Binding Name.DBResource.Color, Converter={StaticResource _SharedBackgroundStringColorToForegroundConverterKey}}" FontSize="12" Text="{Binding Name.DBResource.Code}" />
            </StackPanel>
          </Border>
        </DataTemplate>
      </svcore:GroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
      <svcore:GroupHeaderContentTemplateSelector.VerticalResourceTemplate>
        <DataTemplate>
          <Border Background="{Binding Name.DBResource.Color, Converter={StaticResource _SharedStringColorToSolidColorBrushConverterKey}}" Width="140" Margin="2">
            <StackPanel Margin="8">
              <TextBlock Foreground="{Binding Name.DBResource.Color, Converter={StaticResource _SharedBackgroundStringColorToForegroundConverterKey}}" FontSize="16" Margin="-2 3 0 5"  Text="{Binding Name.DisplayName}" />
              <TextBlock Foreground="{Binding Name.DBResource.Color, Converter={StaticResource _SharedBackgroundStringColorToForegroundConverterKey}}" FontSize="12" Text="{Binding Name.DBResource.Code}" />
            </StackPanel>
          </Border>
        </DataTemplate>
      </svcore:GroupHeaderContentTemplateSelector.VerticalResourceTemplate>
    </svcore:GroupHeaderContentTemplateSelector>
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
ADMIN
Yana
Posted on: 15 Feb 2017 12:28
Since we didn't manage to reproduce the reported behavior, I change the status to this issue to declined. 
ADMIN
Yana
Posted on: 01 Aug 2016 13:56
Hi Benjamin,

I have tried to reproduce this issue using the GroupHeaderContentTemplateSelector class provided in the following topic:
http://docs.telerik.com/devtools/wpf/controls/radscheduleview/styles-and-templates/templating-groupheaders.html.
but without much success - the WeekHeaders are displayed without a problem.
I've attached my test project for a reference, could you download it and try it?
If you still experience the issue, I'd ask you to open a support ticket and attach a simple demo showing the issue there.