Telerik Forums
UI for WPF Forum
5 answers
402 views
Hi!

I would like to change the with of the space between panes in a RadSplitContainer, the resizer. There is a styling sample which changes the color of the right sizer, but I want to change the widht / height. How do I do this?

Regards,
Lennart
Pana
Telerik team
 answered on 26 Mar 2010
1 answer
141 views
The gridview can't visible the gridviewcell correctly when I scorll the scorllViewer in gridview . 
 GridViewRow s = ((GridViewRow)RadGridView1.ItemContainerGenerator.ContainerFromIndex(0));  
            if (s != null)  
            {  
                 GridViewCellBase       j =  
                       (from c in s.Cells where c.Column.Name == "email" select c).FirstOrDefault();  
                 if (j != null)  
                 {  
                     j.Visibility = Visibility.Hidden;  
                 }  
            } 
the first pictrue is before scrolling,and the second one is after scrolling 
Vlad
Telerik team
 answered on 26 Mar 2010
3 answers
301 views
Hi,

I have a grid defined like this:

<Controls:RadGridView ItemsSource="{Binding Path=DishTypes}" ShowGroupPanel="False" CanUserDeleteRows="False" CanUserInsertRows="False" CanUserFreezeColumns="False" 
                                      AutoGenerateColumns="False" RowDetailsVisibilityMode="Visible" IsReadOnly="True" ShowColumnHeaders="False"  
                                      RowIndicatorVisibility="Collapsed" GridLinesVisibility="Horizontal"
                    <Controls:RadGridView.ChildTableDefinitions> 
                        <Controls:GridViewTableDefinition /> 
                    </Controls:RadGridView.ChildTableDefinitions> 
                    <Controls:RadGridView.Columns> 
                        <Controls:GridViewComboBoxColumn DataMemberBinding="{Binding Path=Id}"  
                                                         DisplayMemberPath="Name"  
                                                         SelectedValueMemberPath="Id"  
                                                         ItemsSource="{Binding Source={StaticResource dishTypeData}}" />  
                    </Controls:RadGridView.Columns> 
                    <Controls:RadGridView.HierarchyChildTemplate> 
                        <DataTemplate> 
                            <Controls:RadGridView ItemsSource="{Binding Path=MenuItems}" ShowGroupPanel="False" CanUserDeleteRows="False" CanUserInsertRows="False" CanUserFreezeColumns="False" 
                                                  AutoGenerateColumns="False" RowDetailsVisibilityMode="Visible" IsReadOnly="False" ShowColumnHeaders="False"  
                                                  RowIndicatorVisibility="Collapsed" GridLinesVisibility="Horizontal"
                                <Controls:RadGridView.Columns> 
                                    <Controls:GridViewComboBoxColumn DataMemberBinding="{Binding Path=FoodId}"  
                                                                     ItemsSource="{Binding Source={StaticResource foodData}}" 
                                                                     DisplayMemberPath="Name" 
                                                                     SelectedValueMemberPath="Id" /> 
                                    <Controls:GridViewDataColumn DataMemberBinding="{Binding Path=PortionSize}" /> 
                                </Controls:RadGridView.Columns> 
                            </Controls:RadGridView> 
                        </DataTemplate> 
                    </Controls:RadGridView.HierarchyChildTemplate> 
                </Controls:RadGridView> 


What  is the property to make all the tree children expanded (similar to clicking the + sign on all) ?

Thank you,
Calin
Vlad
Telerik team
 answered on 25 Mar 2010
1 answer
206 views
Hello,
I would like to know how to set 2 groups in a radgridview adding 3 sum functions in the second group.
I must admit I cannot do it....
Thanks a lot....

Nick

For better details what I try to do is in the following code

<telerik:RadGridView x:Name="radGridInvoiceDetails" ShowGroupPanel="False" AutoGenerateColumns="False" Height="245" Width="920" ItemsSource="{Binding}" HorizontalAlignment="Center" DataLoadMode="Asynchronous">  
    <telerik:RadGridView.Columns> 
        <telerik:GridViewDataColumn Header="ProductFamily" DataMemberBinding="{Binding ProductFamilyDescription}" IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="Auto" IsVisible="False"/>  
        <telerik:GridViewDataColumn Header="Prodotto"      DataMemberBinding="{Binding ProductDescription}"       IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="Auto" IsVisible="False"/>  
        <telerik:GridViewDataColumn Header="Numero"        DataMemberBinding="{Binding BillNumberString}"         IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="50" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Data"          DataMemberBinding="{Binding BillDate}"                 IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="50" DataFormatString="{}{0:dd/MM/yyyy}"/>  
        <telerik:GridViewDataColumn Header="Qta"           DataMemberBinding="{Binding ProductQuantity}"          IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="50" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Prz.Uni"       DataMemberBinding="{Binding ProductFee}"               IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="50" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Tot.Prod"      DataMemberBinding="{Binding ProductTotal}"             IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="75" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Scontato"      DataMemberBinding="{Binding ProductDiscountedTotal}"   IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="75" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Trasporto"     DataMemberBinding="{Binding TransportTotal}"           IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="75" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Scontato"      DataMemberBinding="{Binding TransportDiscountedTotal}" IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="75" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Sconto totale" DataMemberBinding="{Binding TotalDiscountAmount}"      IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="75" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Imponibile"    DataMemberBinding="{Binding TotalBill}"                IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="75" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="IVA"           DataMemberBinding="{Binding VATString}"                IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="50"                             TextAlignment="Right"/>  
        <telerik:GridViewDataColumn Header="Totale"        DataMemberBinding="{Binding TotalVAT}"                 IsReadOnly="True" IsFilterable="False" HeaderTextAlignment="Center" Width="100" DataFormatString="{}{0:N2}" TextAlignment="Right"/>  
        <telerik:GridViewDataColumn x:Name="columnView" IsFilterable="False" IsSortable="False" Width="40" IsReadOnly="True">  
            <telerik:GridViewColumn.CellTemplate> 
                <DataTemplate> 
                    <telerik:RadButton x:Name="buttonView" Click="buttonView_Click" Background="White" BorderBrush="White" Loaded="buttonView_Loaded">  
                        <Image Height="20" Width="20" Source="/Raise.FarinaEzio.SIB.Client.Management.GUI.BusinessManagement.Controls;component/Images/Edit.png"/>  
                        <Button.ToolTip> 
                            <StackPanel Orientation="Horizontal">  
                                <Image Source="/Raise.FarinaEzio.SIB.Client.Management.GUI.BusinessManagement.Controls;component/Images/Edit.png"/>  
                                <Label Content="Visualizza la bolla"/>  
                            </StackPanel> 
                        </Button.ToolTip> 
                    </telerik:RadButton> 
                </DataTemplate> 
            </telerik:GridViewColumn.CellTemplate> 
        </telerik:GridViewDataColumn> 
    </telerik:RadGridView.Columns> 
    <!--<telerik:RadGridView.GroupDescriptors> 
        <telerik:GroupDescriptor Member="ProductFamilyDescription" SortDirection="Ascending"/>  
        <telerik:GroupDescriptor Member="ProductDescription" SortDirection="Ascending" /> 
    </telerik:RadGridView.GroupDescriptors>--> 
</telerik:RadGridView> 
 

in the radgridview of this XAML code I have to programmatically add two groups,the second of which must also make 3 sum funtions.
Following examples I have found in this site I have written this code

private void InitInvoiceDetails()  
{  
    try 
    {  
        radGridInvoiceDetails.SelectedItem = null;  
        radGridInvoiceDetails.ItemsSource = null;  
        radGridInvoiceDetails.GroupDescriptors.Clear();  
 
        if (CurrentMaster != null)  
        {  
            var collection = from d in dc.InvoiceDetails  
                             where d.IdInvoiceMaster == CurrentMaster.Id  
                             orderby d.IdProductType, d.ProductDescription, d.BillNumber  
                             select d;  
            radGridInvoiceDetails.ItemsSource = collection.ToList();  
        }  
 
        GroupDescriptor descriptor = new Telerik.Windows.Data.GroupDescriptor();  
        descriptor.Member = "ProductFamilyDescription";  
        descriptor.DisplayContent = "Famiglia";  
        descriptor.SortDirection = ListSortDirection.Ascending;  
        radGridInvoiceDetails.GroupDescriptors.Add(descriptor);  
 
        descriptor = new Telerik.Windows.Data.GroupDescriptor();  
        var sumFunction = new Telerik.Windows.Data.SumFunction();  
        sumFunction.ResultFormatString = "{0:N2}";  
        sumFunction.SourceField = "ProductQuantity";  
        sumFunction.Caption = "Totale Quantità";  
        descriptor.AggregateFunctions.Add(sumFunction);  
 
        sumFunction = new Telerik.Windows.Data.SumFunction();  
        sumFunction.ResultFormatString = "{0:N2}";  
        sumFunction.SourceField = "TotalBill";  
        sumFunction.Caption = "Totale Imponibile";  
        descriptor.AggregateFunctions.Add(sumFunction);  
 
        sumFunction = new Telerik.Windows.Data.SumFunction();  
        sumFunction.ResultFormatString = "{0:N2}";  
        sumFunction.SourceField = "TotalVAT";  
        sumFunction.Caption = "Totale Con IVA";  
        descriptor.AggregateFunctions.Add(sumFunction);  
 
        descriptor.Member = "ProductDescription";  
        descriptor.DisplayContent = "Prodotto";  
        descriptor.SortDirection = ListSortDirection.Ascending;  
        radGridInvoiceDetails.GroupDescriptors.Add(descriptor);  
    }  
    catch (Exception ex)  
    {  
        throw ex;  
    }  
}  
 

It happens that the first time I bind data in the radgrid view the groups are duplicated.
The first does not contains the sum values, the second yes.

The second time an exception is thrown.
System.ArgumentException was unhandled by user code  
  Message="The value \"[Group: Key=RCK 25.0 S3 F.FULLER NO; ItemCount=1; HasSubgroups=False; ParentGroup=null];\" is not of type \"Raise.FarinaEzio.SIB.Client.Management.DataContext.InvoiceDetail\" and cannot be used in this generic collection.\r\nParameter name: value" 
  Source="mscorlib" 
  ParamName="value" 
  StackTrace:  
       at System.ThrowHelper.ThrowWrongValueTypeArgumentException(Object value, Type targetType)  
       at System.Collections.Generic.List`1.VerifyValueType(Object value)  
       at System.Collections.Generic.List`1.System.Collections.IList.Add(Object item)  
       at Telerik.Windows.Data.QueryableCollectionView.PopulateInternalList(IQueryable view) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 482  
       at Telerik.Windows.Data.QueryableCollectionView.<>c__DisplayClassa.<CreateInternalList>b__6(Object s, DoWorkEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 458  
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)  
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)  
  InnerException:   
 

Hope this details help you to help me...

Bye

Stefan Dobrev
Telerik team
 answered on 25 Mar 2010
1 answer
153 views
When you change the theme in for instance msWord, the whole WindowBackground changes to the choosen theme.
How should this be done with Telerik...
I know you can use:

public Window1()
{
      AppllicationTheme = new VistaTheme();
      InitializeComponent();
 }

But this only effects the RadControls.
How to change the WindowBackground?

Marinus
Dimitrina
Telerik team
 answered on 25 Mar 2010
6 answers
275 views
I would like to show a RadDocumentPane without the Tab Item.

What I have is single a Document and a right pane sliding to show additional information, so I do not want the tab Item in the main Document.

Is it possible ???

Thanks in advance
Konstantina
Telerik team
 answered on 25 Mar 2010
1 answer
134 views
Hi,

I was using Previous version of WPF GridView, I was using the Theme "

Office_Silver

 

"
Recently i migrated to 2010 Q1. Now all of a sudden all grid styles got changed. It looking more blackish.
How can i revert back to the old styles. Do u have a different name for that old styles.

Regards

Sujith

Kalin Milanov
Telerik team
 answered on 25 Mar 2010
4 answers
193 views
Hello everyone,

I would like to know how their support to put a control on the usercontrol RadCarousel, check the forum and no one to touch this topic. I hope they can give me some suggestion.

Right now I have this:

My main window called Window1.xaml, Radcarosel'm in control here.
My usercontrol called UserControl1.xaml.

What I need is to put the usercontrol in Radcasucel
Milan
Telerik team
 answered on 25 Mar 2010
2 answers
253 views
Hi,

I am trying to use the GeoCodeAsync to find the Location of a given address.
I get a response == Success but NO result results ( e.Response.Results == 0 )
Doing the same from the Bing webpage works fine (finds the address and shows the map).

   private void Button_Click(object sender, RoutedEventArgs e) 
        { 
 
            var bing = new BingGeocodeProvider { MapControl = RadMap1 };            
            bing.ApplicationId = BingMapHelper.VEKey ; 
            bing.GeocodeCompleted += bing_GeocodeCompleted; 
 
            var address = new Address { AddressLine = addressLine.Text }; 
            var request = new GeocodeRequest { Address = address }; 
            bing.GeocodeAsync(request); 
        } 
 
        void bing_GeocodeCompleted(object sender, GeocodeCompletedEventArgs e) 
        { 
            var summary = e.Response.ResponseSummary; 
            if ( summary.StatusCode == ResponseStatusCode.Success) 
            { 
                var results = e.Response.Results; 
                 
            } 
 
        } 




Sebastian Talamoni
Top achievements
Rank 1
 answered on 24 Mar 2010
1 answer
178 views
Hi everybody.

I need a suggestion on this issue: I got an object list that I use as itemssource for Carousel. Those objects inside list includes some strings and the image, which comes from a query that, unfortunately, takes very long time due to dimension of images.
The only way to make it faster is to remove image field from the output of the query and set it to null: in this way, obviously, my carouselitems will be without photo.

Now, how can I manage an event (e.g. Click) inside the elements  of my ControlTemplate of my corouselItem? I would like to have something like a "deferred image loading", so the user will see many carouselItem without photo, but when he clicks on the item inside the eventhandler a single specific query will be done for only the image selected (so faster).

I made carouselItem following telerik sample code:



            <Style TargetType="{x:Type telerik:CarouselItem}">  
                <Setter Property="Height" Value="500" /> 
                <Setter Property="Width" Value="500" /> 
                <Setter Property="MaxHeight" Value="550" /> 
                <Setter Property="Template">  
                    <Setter.Value> 
                        <ControlTemplate TargetType="{x:Type telerik:CarouselItem}" > 
                            <Grid ClipToBounds="False" Height="350" Width="300">  
                                <Border RenderTransformOrigin="0.5, 1" ClipToBounds="False" 
                                        Width="{Binding ElementName=CarouselItemInnerGrid, Path=ActualWidth}" 
                                        Opacity="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.Opacity}" 
                                        Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.Visibility}" 
                                        BorderBrush="White" BorderThickness="0">  
                                    <Border.RenderTransform> 
                                        <TransformGroup> 
                                            <ScaleTransform ScaleX="{Binding RelativeSource={RelativeSource TemplatedParent},   
                                                        Path=ReflectionSettings.WidthOffset,   
                                                        Converter={StaticResource ArithmeticValueConverter},   
                                                        ConverterParameter=1}" ScaleY="{Binding RelativeSource={RelativeSource TemplatedParent},   
                                                        Path=ReflectionSettings.HeightOffset,   
                                                        Converter={StaticResource ArithmeticValueConverter},   
                                                        ConverterParameter=-1}"  
                                                    CenterY="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.OffsetY}" /> 
                                            <TranslateTransform  
                                                    X="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.OffsetX}" /> 
                                            <SkewTransform  
                                                    AngleX="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.Angle}" /> 
                                        </TransformGroup> 
 
                                    </Border.RenderTransform> 
                                    <Border.OpacityMask> 
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">  
                                            <LinearGradientBrush.GradientStops> 
                                                <GradientStop  
                                                        Offset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.HiddenPercentage}" 
                                                        Color="Transparent" /> 
                                                <GradientStop Offset="1" Color="Black" /> 
                                            </LinearGradientBrush.GradientStops> 
                                        </LinearGradientBrush> 
                                    </Border.OpacityMask> 
                                    <Border.Background> 
                                        <VisualBrush  
                                                Visual="{Binding ElementName=CarouselItemInnerGrid}">  
                                        </VisualBrush> 
                                    </Border.Background> 
 
                                </Border> 
 
                                <Grid x:Name="CarouselItemInnerGrid">  
                                    <Border x:Name="CarouselItemMainBorder" Opacity="0.5" 
                                            BorderBrush="#FF91B3FF" BorderThickness="1,1,1,1" 
                                            CornerRadius="5,5,5,5" SnapsToDevicePixels="True">  
                                        <Border.Background> 
                                            <LinearGradientBrush EndPoint="108,472" 
                                                    StartPoint="108,23" MappingMode="Absolute">  
                                                <GradientStop Color="#FF2C3A68" Offset="0" /> 
                                                <GradientStop Color="#FF000000" Offset="1" /> 
                                                <GradientStop Color="#FF0F224C" Offset="0.045" /> 
                                                <GradientStop Color="#FF000000" Offset="0.0451" /> 
                                            </LinearGradientBrush> 
                                        </Border.Background> 
                                    </Border> 
                                    <Border Opacity="1" BorderBrush="#3F000000" 
                                            BorderThickness="1,1,1,1" CornerRadius="5,5,5,5" 
                                            Margin="10,10,10,10" x:Name="CarouselItemInnerBorder" 
                                            SnapsToDevicePixels="True">  
                                        <Border.Background> 
                                            <LinearGradientBrush EndPoint="101,462" 
                                                    StartPoint="101,13" MappingMode="Absolute">  
                                                <GradientStop Color="#FF2C3A68" Offset="0" /> 
                                                <GradientStop Color="#FF000000" Offset="1" /> 
                                                <GradientStop Color="#FF0F224C" Offset="0.045" /> 
                                                <GradientStop Color="#FF000000" Offset="0.0451" /> 
                                            </LinearGradientBrush> 
                                        </Border.Background> 
                                        <ContentPresenter IsHitTestVisible="True" /> 
                                        <Border.Triggers> 
 
                                        </Border.Triggers> 
                                    </Border> 
                                </Grid> 
                            </Grid> 
 
                            <ControlTemplate.Triggers> 
                                <MultiTrigger> 
                                    <MultiTrigger.Conditions> 
                                        <Condition Property="IsSelected" Value="False" /> 
                                        <Condition Property="IsMouseOver" Value="True" /> 
                                    </MultiTrigger.Conditions> 
                                    <MultiTrigger.EnterActions> 
                                        <BeginStoryboard> 
                                            <Storyboard> 
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemMainBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[0].Color" 
                                                        To="#FF344B97" Duration="0:0:0.3" /> 
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemMainBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[2].Color" 
                                                        To="#FF233F7E" Duration="0:0:0.3" /> 
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemInnerBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[0].Color" 
                                                        To="#FF344B97" Duration="0:0:0.3" /> 
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemInnerBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[2].Color" 
                                                        To="#FF233F7E" Duration="0:0:0.3" /> 
                                            </Storyboard> 
                                        </BeginStoryboard> 
 
                                    </MultiTrigger.EnterActions> 
                                    <MultiTrigger.ExitActions> 
                                        <BeginStoryboard> 
                                            <Storyboard FillBehavior="Stop">  
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemMainBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[0].Color" 
                                                        To="#FF2C3A68" Duration="0:0:0.3" /> 
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemMainBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[2].Color" 
                                                        To="#FF0F224C" Duration="0:0:0.3" /> 
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemInnerBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[0].Color" 
                                                        To="#FF2C3A68" Duration="0:0:0.3" /> 
                                                <ColorAnimation  
                                                        Storyboard.TargetName="CarouselItemInnerBorder" 
                                                        Storyboard.TargetProperty="Background.GradientStops[2].Color" 
                                                        To="#FF0F224C" Duration="0:0:0.3" /> 
                                            </Storyboard> 
                                        </BeginStoryboard> 
                                    </MultiTrigger.ExitActions> 
                                </MultiTrigger> 
 
                                <Trigger Property="IsSelected" Value="True">  
                                    <Setter TargetName="CarouselItemMainBorder" 
                                            Property="Background">  
                                        <Setter.Value> 
                                            <LinearGradientBrush EndPoint="108,472" 
                                                    StartPoint="108,23" MappingMode="Absolute">  
                                                <GradientStop Color="#FF344B97" Offset="0" /> 
                                                <GradientStop Color="#FF000000" Offset="1" /> 
                                                <GradientStop Color="#FF233F7E" Offset="0.045" /> 
                                                <GradientStop Color="#FF000000" Offset="0.0451" /> 
                                            </LinearGradientBrush> 
                                        </Setter.Value> 
                                    </Setter> 
                                    <Setter TargetName="CarouselItemInnerBorder" 
                                            Property="Background">  
                                        <Setter.Value> 
                                            <LinearGradientBrush EndPoint="101,462" 
                                                    StartPoint="101,13" MappingMode="Absolute">  
                                                <GradientStop Color="#FF344B97" Offset="0" /> 
                                                <GradientStop Color="#FF000000" Offset="1" /> 
                                                <GradientStop Color="#FF233F7E" Offset="0.045" /> 
                                                <GradientStop Color="#FF000000" Offset="0.0451" /> 
                                            </LinearGradientBrush> 
                                        </Setter.Value> 
                                    </Setter> 
                                </Trigger> 
 
                            </ControlTemplate.Triggers> 
                        </ControlTemplate> 
                    </Setter.Value> 
                </Setter> 
            </Style> 
            <Style TargetType="{x:Type telerik:CarouselDataRecordPresenter}">  
                <Setter Property="Template">  
                    <Setter.Value> 
                        <ControlTemplate TargetType="{x:Type telerik:CarouselDataRecordPresenter}">  
                            <Grid IsHitTestVisible="False" HorizontalAlignment="Stretch" 
                                    VerticalAlignment="Stretch">  
                                <Grid.RowDefinitions> 
                                    <RowDefinition Height="35" /> 
                                    <RowDefinition Height="260" /> 
                                    <RowDefinition Height="Auto" /> 
                                </Grid.RowDefinitions> 
                                <StackPanel Grid.Row="0" Orientation="Horizontal" 
                                        VerticalAlignment="Center">  
                                    <Label Content="Data: " Foreground="#ff8FB3FF" FontSize="12" Margin="10,0,0,0" /> 
                                    <Label Content="{Binding Path=PlateDate, Converter={StaticResource DateConversion}}" 
                                            Foreground="#ff8FB3FF" FontSize="12" /> 
                                    <Label Content="Ora: " Foreground="#ff8FB3FF" FontSize="12" Margin="50,0,0,0"/>  
                                    <Label Content="{Binding Path=PlateTime, Converter={StaticResource TimeConversion}}" 
                                            Foreground="#ff8FB3FF" FontSize="12" /> 
                                </StackPanel> 
                                <Rectangle Grid.Row="1" RadiusX="3" RadiusY="3" Width="260" 
                                        Height="245">  
                                    <Rectangle.Fill> 
                                        <ImageBrush x:Name="brush" 
                                                ImageSource="{Binding Path=PlateImage}" /> 
                                    </Rectangle.Fill> 
                                </Rectangle> 
                                <StackPanel Grid.Row="2" Orientation="Horizontal" 
                                        VerticalAlignment="Center">  
                                    <Label Content="TARGA: " Foreground="#ff8FB3FF" FontSize="12" /> 
                                    <Label Content="{Binding Path=LicensePlate}" FontSize="12" 
                                            Foreground="#ff8FB3FF" /> 
                                </StackPanel> 
                            </Grid> 
                        </ControlTemplate> 
                    </Setter.Value> 
                </Setter> 
            </Style> 
Milan
Telerik team
 answered on 24 Mar 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?