or
<Style TargetType="telerik:RadTreeViewItem" x:Key="TreeViewItemStyle"> <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> <Setter Property="telerik:DragDropManager.AllowDrag" Value="True"/> <Setter Property="telerik:RadDragAndDropManager.AllowDrop" Value="True" /> </Style>.... <telerik:RadTreeListView x:Name="TestScriptTreeListView"SelectedItem="{Binding TestViewItem.SelectedScriptActionViewItem, Mode=TwoWay}" ItemContainerStyle="{StaticResource TreeViewItemStyle}"IsDragDropEnabled="True"AllowDrop="True"ItemsSource="{Binding Source={StaticResource scriptActionSorted}}"behavior:TestScriptDragDropBehavior.UseTestScriptDragDrop="True"">private static void StartUseDragDrop(RadTreeListView treeListView) { DragDropManager.AddDragInitializeHandler(treeListView, OnDragInitialize); DragDropManager.AddGiveFeedbackHandler(treeListView, OnGiveFeedback); DragDropManager.AddDropHandler(treeListView, OnDrop); DragDropManager.AddDragDropCompletedHandler(treeListView, OnDragDropCompleted); DragDropManager.AddDragOverHandler(treeListView, OnDragOver); //this is just to try and stop DragDropManager.AddPreviewDragEnterHandler(treeListView, DragEnter2); DragDropManager.AddPreviewDragOverHandler(treeListView, OnDragOver2); DragDropManager.AddPreviewDropHandler(treeListView, OnDrop2); DragDropManager.AddPreviewGiveFeedbackHandler(treeListView, OnGiveFeedback2);*/ }#region PresetQuarter2Commandprivate readonly ICommand _PresetQuarter2Command;/// <summary>/// Command binding./// </summary>public ICommand PresetQuarter2Command { get { return _PresetQuarter2Command; } }/// <summary>/// Action method./// </summary>public void PresetQuarter2(){ var zoomSize = new Size(3.79, 1); var pointOffset = new Point(-1138.65, 0); this.Zoom = zoomSize; this.PanOffset = pointOffset;}/// <summary>/// CanExecute method./// </summary>/// <returns>True if the command can be executed, otherwise false.</returns>public bool CanPresetQuarter2(){ return true; // Example of how to trigger the calling of this method //((DelegateCommand)PresetQuarter2Command).RaiseCanExecuteChanged();}#endregion<telerik:LineSeries.LegendSettings> <telerik:SeriesLegendSettings Title="Sold"/> </telerik:LineSeries.LegendSettings>LineSeries units = new LineSeries() { LegendSettings = ? };Tree.AddHandler(RadDragAndDropManager.DragQueryEvent, new EventHandler<DragDropQueryEventArgs>(Tree_DragQuery), true);private void Tree_DragQuery(object sender, DragDropQueryEventArgs e){ var targetTvi = e.Options.Destination as RadTreeViewItem; var sourceTvi = e.Options.Source as RadTreeViewItem; if (targetTvi == null || sourceTvi == null) { return; } if (sourceTvi.DataContext is LayerTviVM && targetTvi.DataContext is LayerTviVM) { e.QueryResult = true; } else if (sourceTvi.DataContext is ImageTviVM && targetTvi.DataContext is ImageTviVM) { // We only support drag & drop of images within the same layer e.QueryResult = (sourceTvi.ParentItem == targetTvi.ParentItem); } else { e.QueryResult = false; }}System.Nullable<double> property, I have a couple issues. One issue is that it allows the user to type anything in the field. Not just decimal numbers. I tried to solve this by using cell validating, but when I type a character and tab out of the field, before validating fires it tries to update the bound item (2 way binding is on) and throws a format exception because the character value cannot be put into the double? property.
The other issue is, since it is nullable, I would also like to allow the user to leave the field blank and it assign null to the bound property. Is this possible or am I going to have to unbind the column and manually update accordingly?
<telerik:RadCartesianChart x:Name="chart" Grid.Column="0"> <telerik:RadCartesianChart.Series> <telerik:BarSeries ItemsSource="{Binding DataItems}" ValueBinding="Value" CategoryBinding="DayPeriod" > <telerik:BarSeries.PointTemplate> <DataTemplate> <Rectangle Fill="{Binding Converter={StaticResource BrushConverter}, ConverterParameter={StaticResource brushes}}"/> </DataTemplate> </telerik:BarSeries.PointTemplate> </telerik:BarSeries> </telerik:RadCartesianChart.Series> <telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis Minimum="{Binding MinValue}" Maximum="{Binding MaxValue}" MajorStep="{Binding StepSize}" LabelStyle="{StaticResource axisLabelStyle}" /> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.HorizontalAxis> <telerik:CategoricalAxis LabelFitMode="Rotate" LabelInterval="2"/> </telerik:RadCartesianChart.HorizontalAxis></telerik:RadCartesianChart>