<Style x:Key="Chart_GridLine" TargetType="{x:Type Line}"> |
<Setter Property="Stroke" Value="White"/> |
</Style> |
<Style x:Key="Chart_TickLine" TargetType="{x:Type Line}"> |
<Setter Property="Stroke" Value="White"/> |
<Setter Property="StrokeThickness" Value="1"/> |
</Style> |
<Style x:Key="Chart_AxisLine" TargetType="{x:Type Line}"> |
<Setter Property="Stroke" Value="White"/> |
<Setter Property="StrokeThickness" Value="2"/> |
</Style> |
<telerik:ChartDefaultView.ChartArea> |
<telerik:ChartArea> |
<telerik:ChartArea.AxisX> |
<telerik:AxisX StripLinesVisibility="Visible" MajorGridLinesVisibility="Visible"> |
<telerik:AxisX.AxisStyles> |
<telerik:AxisStyles |
AxisLineStyle="{StaticResource Chart_AxisLine}" |
GridLineStyle="{StaticResource Chart_GridLine}" |
TickLineStyle="{StaticResource Chart_TickLine}"/> |
</telerik:AxisX.AxisStyles> |
</telerik:AxisX> |
</telerik:ChartArea.AxisX> |
<telerik:ChartArea.AxisY> |
<telerik:AxisY MinorTicksVisibility="Collapsed"> |
<telerik:AxisY.AxisStyles> |
<telerik:AxisStyles |
AxisLineStyle="{StaticResource Chart_AxisLine}" |
TickLineStyle="{StaticResource Chart_TickLine}"/> |
</telerik:AxisY.AxisStyles> |
</telerik:AxisY> |
</telerik:ChartArea.AxisY> |
</telerik:ChartArea> |
</telerik:ChartDefaultView.ChartArea> |
<telerik:RadTreeView MinWidth="150" |
IsLineEnabled="True" |
ItemsOptionListType="CheckList" |
x:Name="leftTree" |
IsTriStateMode="True" |
IsOptionElementsEnabled="True" |
ItemTemplate="{StaticResource dataTemplate}"/> |
Hi,
I'm trying to use this control, but I'm finding many problems and lose much time because I do not understand what is working and what is not.
I'm trying to run these events need to manage running some limitation that I want to impose on any of these items dynamically but it seems that events need not work.
It 'possible that these events are not implemented?
PreviewDragEnter
PreviewDragLeave
DragEnter
DragLeave
Thanks Marcello
<DataTemplate x:Key="MiaSubCategoria">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Nome}"/>
</StackPanel>
</DataTemplate>
<HierarchicalDataTemplate x:Key="MiaCategoria"
ItemTemplate="{StaticResource MiaSubCategoria}"
ItemsSource="{Binding SubCategorie}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Nome}"/>
</StackPanel>
</HierarchicalDataTemplate>
SET TREEVIEW:
<telerikNavigation:RadTreeView Canvas.Left="62" Canvas.Top="25" Height="137" Name="RadTreeView1" Width="486" IsSingleExpandPath="True" TextDropAfter="Dopo" TextDropBefore="Prima" TextDropIn="In mezzo a" AllowDrop="True" IsDragDropEnabled="True" HorizontalContentAlignment="Stretch" IsExpandOnDblClickEnabled="False" IsExpandOnSingleClickEnabled="True" ItemTemplate="{StaticResource MiaCategoria}"/>
VB CODE FOR POPULATING TREE
Dim miacollez As ObservableCollection(Of Categorie)
miacollez =
New ObservableCollection(Of Categorie)(MyEDM.Categorie.Include("SubCategorie"))
Me.RadTreeView1.ItemsSource = miacollez
Hi, I need clarification on how to handle correctly the label called DragTooltipText because I can not set the field name but I associate the name of dataobject (look image in attach). I tried with the styles but does not work .. I can only change colors but the content changes runtime clearly as I do?
Thanks for your cooperation
Marcello
PS: Sorry for my english