This question is locked. New answers and comments are not allowed.
Hello guys,
I've read the online (of course, the offline too) documentation for Windows Phone controls and still don't have any clue how to customize described properties (for example,the Background property of the LayoutRoot border inside the template of the visual items). I am interested in customizing properties that were described in the Styling LoopingListItem section. Could you please provide me with a step-by-step instruction for that?
When I edit the items style or template in Expression Blend I get the following markup:
I've read the online (of course, the offline too) documentation for Windows Phone controls and still don't have any clue how to customize described properties (for example,the Background property of the LayoutRoot border inside the template of the visual items). I am interested in customizing properties that were described in the Styling LoopingListItem section. Could you please provide me with a step-by-step instruction for that?
When I edit the items style or template in Expression Blend I get the following markup:
<telerikPrimitives:RadLoopingList HorizontalAlignment="Left" Margin="78,24,0,22" Width="156"> <telerikPrimitives:RadLoopingList.Resources> <Style x:Key="RadLoopingListStyle1" TargetType="telerikPrimitives:RadLoopingList"> <Setter Property="Background" Value="#00ffffff"/> <Setter Property="ItemTemplate"> <Setter.Value> <DataTemplate> <TextBlock Text="{Binding Text}"/> </DataTemplate> </Setter.Value> </Setter> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="telerikPrimitives:RadLoopingList"> <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" IsHitTestVisible="True" Margin="{TemplateBinding Padding}"> <LoopingList:LoopingPanel x:Name="itemsPanel" HorizontalAlignment="Center"/> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </telerikPrimitives:RadLoopingList.Resources> <telerikPrimitives:RadLoopingList.Style> <StaticResource ResourceKey="RadLoopingListStyle1"/> </telerikPrimitives:RadLoopingList.Style> </telerikPrimitives:RadLoopingList>
As you may see there is no LayoutRoot border inside the Item template. Am I right?
Regards from Belarus,
Eugene Astafiev