Telerik Forums
UI for WPF Forum
0 answers
72 views
Hello everyone,

I am using telerik:RadCarousel control and I want to apply style for selected item should be highlighted some different color so I am using some triggers but it will give me error.I am using telerik triggers
like this
<ControlTemplate.Triggers>
    <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>

and I have some Xaml like this.
<telerikNavigation:RadCarousel Height="{Binding MainMenuHeight}" 
                           Width="{Binding MainMenuWidth}"
                           ItemsSource="{Binding Path=Menu.Options}"
                           SelectedItem="{Binding SelectedMainMenuOption, Mode=TwoWay}"
                           AutoGenerateDataPresenters="True" 
                           Background="Transparent"
                           HorizontalScrollBarVisibility="Disabled"
                           VerticalScrollBarVisibility="Disabled"
                           VerticalContentAlignment="Stretch"
                           IsSynchronizedWithCurrentItem="True"
                           CurrentItem="{Binding SelectedMainMenuOption, Mode=TwoWay}"
                           Focusable="False"
                           IsTabStop="False"
                           Grid.Row="2">
 
    <telerikNavigation:RadCarousel.ItemTemplate>
        <DataTemplate>
            <Border Focusable="True">
                <StackPanel Orientation="Horizontal" Focusable="True">
                    <Image Source="{Binding IconPath}" Focusable="True"/>
                    <TextBlock Text="{Binding Title}" Focusable="True" VerticalAlignment="Center"/>
                </StackPanel>
            </Border>
        </DataTemplate>
    </telerikNavigation:RadCarousel.ItemTemplate>
 
    <telerikNavigation:RadCarousel.ItemsPanel>
        <ItemsPanelTemplate>
            <telerikNavigation:RadCarouselPanel x:Name="radCarouselPanel"
                                            PathPadding="0"
                                            IsScalingEnabled="True"
                                            IsOpacityEnabled="False"
                                            ItemsPerPage="{Binding ItemsPerPage}"
                                            Path="{StaticResource menuPath}"
                                            CanVerticallyScroll="True"
                                            CanHorizontallyScroll="False"
                                            VerticalAlignment="Stretch"
                                            IsSelectedTopItem="True"
                                            Focusable="False">
            </telerikNavigation:RadCarouselPanel>
        </ItemsPanelTemplate>
    </telerikNavigation:RadCarousel.ItemsPanel>
     
</telerikNavigation:RadCarousel>
so how I can apply this kind of formate.

Thank you.
jitendra jadav
Top achievements
Rank 1
 asked on 10 Nov 2011
1 answer
83 views
Hi -
When will the 2011 Q3 controls be officially released? We're aware that the 2011 Q3 controls are currently in Beta. We'd like to know the date they will be officially released. We want to include them in a new project release, but need to know the exact release date in our to schedule our development and deployment dates.
Thanks,
Sandy

Hristo
Telerik team
 answered on 10 Nov 2011
4 answers
286 views
I have a line chart set to display datetime for X-Axis to display DefaultLabelFormat="#VAL{hh:mm:ss}" If the radchart is directly set in the xaml it works fine. However if it is in a datatemplate and rendered through a contentpresenter, it won;t work. even the title and legend won't show up neither. It always display the full date string which getting overlap. See the upper chart. ( In my case I have to put it into a template as that is part of the content in an itemscontrol, I had a hard time to find out that the template gets into the way.) Anybody run into similar issue? what is the solution?


Window x:Class="WpfApplication3.MainWindow"  

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 Title="MainWindow" Height="521" Width="525"

 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<Window.Resources >

     <DataTemplate x:Key="GraphTemplate" >   

<Grid >

   <telerik:RadChart Height="264" ItemsSource="{Binding DataList}" Margin="34,21,0,0" x:Name="radChart1" VerticalAlignment="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">

     <telerik:RadChart.SeriesMappings >

         <telerik:SeriesMapping LegendLabel="T" >

             <telerik:SeriesMapping.SeriesDefinition >

                 <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False" />

             </telerik:SeriesMapping.SeriesDefinition>

             <telerik:SeriesMapping.ItemMappings >

                 <telerik:ItemMapping DataPointMember="XValue" FieldName="Dt" />

                 <telerik:ItemMapping DataPointMember="YValue" FieldName="Data" />

             </telerik:SeriesMapping.ItemMappings>

         </telerik:SeriesMapping>

     </telerik:RadChart.SeriesMappings>

     
    <telerik:RadChart.DefaultView >

         <telerik:ChartDefaultView >

             <telerik:ChartDefaultView.ChartArea >

                 <telerik:ChartArea >

                     <telerik:ChartArea.AxisX >

                         <telerik:AxisX DefaultLabelFormat="#VAL{hh:mm:ss}" LabelRotationAngle="70" LabelStep="2" Title="Time1" />

                     </telerik:ChartArea.AxisX>

                 </telerik:ChartArea>

             </telerik:ChartDefaultView.ChartArea>

         </telerik:ChartDefaultView>

     </telerik:RadChart.DefaultView>

 </telerik:RadChart>

 </Grid>

 </DataTemplate>

</Window.Resources>

 
<Grid x:Name="maingrid" Loaded="Grid_Loaded">

    <Grid.RowDefinitions>

        <RowDefinition />

         <RowDefinition />

     </Grid.RowDefinitions>

 
<!--going through the template will not get x_axis in correct format-->

<ContentPresenter Grid.Row="0" ContentTemplate="{StaticResource GraphTemplate}" Content="{Binding }" />

 <!--this will get the x-axis correct. the code is the same as what in the template-->

 <telerik:RadChart Grid.Row="1" Height="264" ItemsSource="{Binding DataList}" Margin="34,21,0,0" x:Name="radChart1" VerticalAlignment="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">

     <telerik:RadChart.SeriesMappings >

        <telerik:SeriesMapping LegendLabel="T" >

        <telerik:SeriesMapping.SeriesDefinition >

            <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False" />

             </telerik:SeriesMapping.SeriesDefinition>

         <telerik:SeriesMapping.ItemMappings >

             <telerik:ItemMapping DataPointMember="XValue" FieldName="Dt" />

             <telerik:ItemMapping DataPointMember="YValue" FieldName="Data" />

         </telerik:SeriesMapping.ItemMappings>

     </telerik:SeriesMapping>

 </telerik:RadChart.SeriesMappings>

 

<telerik:RadChart.DefaultView >

     <telerik:ChartDefaultView >

         <telerik:ChartDefaultView.ChartArea >

                <telerik:ChartArea >

                     <telerik:ChartArea.AxisX >

                         <telerik:AxisX DefaultLabelFormat="#VAL{hh:mm:ss}" LabelRotationAngle="70" LabelStep="2" Title="Time1" />

                     </telerik:ChartArea.AxisX>

             </telerik:ChartArea>

         </telerik:ChartDefaultView.ChartArea>

 </telerik:ChartDefaultView>

 </telerik:RadChart.DefaultView>

 </telerik:RadChart>

 </Grid>

</

Window>

 

Sunny
Top achievements
Rank 1
 answered on 09 Nov 2011
3 answers
217 views
Telerik,

I want to replace the default maximize toggle button of radtileview item with the "more details" text  and minimize toggle button with the  "Back" text. Please provide the demo to implement this.

Regards,
Kanwal.
Zarko
Telerik team
 answered on 09 Nov 2011
15 answers
436 views
Hi,

I am currently evaluating the Q2 Release for WPF and Silverlight.

The Silverlight Version contains the "RadEditor" Controls. I like the use the RadEdit in a WPF Application.

I referenced the Telerik.Windows.Controls.Editor assembly and here the problems start, the assembly seem to be reference an old version of Telerik.Window.Controls (Version 2009.1.424.1020). The Current Version is 2009.2.701.35.

Is there a way of using the RadEditor within an WPF Application, or is this currently not supported?
Iva Toteva
Telerik team
 answered on 09 Nov 2011
2 answers
198 views
I want to assign a keyboard shortcut for direct and easy navigation to a specific tab item (just like in old days, MS provided a mechanism to Captionized the UI item with &) and I do know the WPF has an alternative to that (ampersand) form Windows Forms world.. but for some reason, renaming Header elements of my tabitem with _ (underscore) does not yield anything!

 

 

 

<telerik:RadTabItem Header="_Main" />

 

<telerik:RadTabItem Header="_Customer" />

 

<telerik:RadTabItem Header="_Employee" />

What's the secret behind this? :-) Please reply ASAP. We are looking into how flexible the tool is to support quick keyboard navigations..

Cheers

 

Kam
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
71 views

Good day
im using Rad 2010 Q2

 

<telerik:RadTabItem.Header>
                                  <StackPanel FlowDirection="LeftToRight" Orientation="Horizontal">
                                      <Image Source="/Images/b-blue.png"
                           Height="16" Width="16" />
                                      <TextBlock Text="Case" Margin="5,0,0,0" />
                                  </StackPanel>
                              </telerik:RadTabItem.Header>

 

this code is working fine showing Icon + header
> But without save/loadlayout !
 first case :        when loading layout and it has been saved before code implemented it shows no Image
second case :   when save the new layout and trying to load it , it shows System.Windows....  instead of both (header name & image)
(raddocking flow direction is left to right and saving/loading layout is working fine before the use of header image)

help ! :) 

Thanks in advance ,sam

 

 

 

Boyan
Telerik team
 answered on 09 Nov 2011
12 answers
292 views
Probably a really simple one this, but I've changed the orientation of the day view to horizontal. I would now like to do the same with the resource (grouping) text. Each row is rather high, I'd like the text to read horizontally instead.

Thanks,

Dan
Daniel
Top achievements
Rank 1
 answered on 09 Nov 2011
2 answers
126 views
Hello,

I need to change the opacity of a single appointment control on the fly, but have no idea how to access the controls. I tried to get an IEnumataion by calling

MainScheduleView.ChildrenOfType<Telerik.Windows.Controls.AppointmentsControl>();


but there is no AppointmentsControl class in Telerik.Windows.Controls - only AppointmenItem but when I calling, the list is empty.
Any idea?
John
Top achievements
Rank 1
 answered on 09 Nov 2011
3 answers
188 views
there is any way to define different size for each item in the radTileView?
thanks
Zarko
Telerik team
 answered on 09 Nov 2011
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?