or
public partial class Window1 |
{ |
public Window1() |
{ |
InitializeComponent(); |
this.Foos = new ObservableCollection<Foo>(new[] |
{ |
new Foo { Name = "1" }, |
new Foo { Name = "2" }, |
}); |
} |
private void Window_Loaded(object sender, RoutedEventArgs e) |
{ |
this.DataContext = this; |
} |
public ObservableCollection<Foo> Foos{ get; set;} |
} |
public class Foo : IDataErrorInfo |
{ |
public string this[string columnName] |
{ |
get |
{ |
return "Error"; |
} |
} |
public string Error |
{ |
get |
{ |
return "Error!"; |
} |
} |
public string Name { get; set; } |
} |
<Window x:Class="WpfApplication6.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" |
Title="Window1" Height="300" Width="300" |
Loaded="Window_Loaded"> |
<telerik:RadGridView ItemsSource="{Binding Path=Foos}" |
AutoGenerateColumns="False"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="Name 1" |
DataMemberBinding="{Binding Path=Name, ValidatesOnDataErrors=True}" /> |
<telerik:GridViewColumn Header="Name 2"> |
<telerik:GridViewColumn.CellTemplate> |
<DataTemplate> |
<TextBox Text="{Binding Path=Name, ValidatesOnDataErrors=True}" /> |
</DataTemplate> |
</telerik:GridViewColumn.CellTemplate> |
</telerik:GridViewColumn> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</Window> |
<UserControl x:Class="UserControl1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:charts="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"> |
<Grid> |
<charts:RadChart x:Name="MyChart"/> |
</Grid> |
</UserControl> |
Public Sub New() |
' This call is required by the Windows Form Designer. |
InitializeComponent() |
' Add any initialization after the InitializeComponent() call. |
MyChart.DefaultSeriesDefinition = New BarSeriesDefinition |
Dim itemSource As Double() = {5, 9, 17, 10, 11, 3, 12} |
MyChart.ItemsSource = itemSource |
End Sub |
Public Sub New() |
' This call is required by the Windows Form Designer. |
InitializeComponent() |
' Add any initialization after the InitializeComponent() call. |
MyChart.DefaultSeriesDefinition = New Bar3DSeriesDefinition |
Dim itemSource As Double() = {5, 9, 17, 10, 11, 3, 12} |
MyChart.ItemsSource = itemSource |
AddHandler MyChart.DefaultView.ChartArea.Loaded, AddressOf Me.RadChart_Loaded |
End Sub |
Private Sub RadChart_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) |
Dim camera As New CameraExtension |
camera.SpinAxis = SpinAxis.XY |
camera.ZoomEnabled = True |
MyChart.DefaultView.ChartArea.Extensions.Add(camera) |
End Sub |
Telerik.Windows.QuickStart.dll extensively and I cannot track what is being done. It hides many aspects, such as page transfers and returns. Is there a place where I can see what is going on?
Take Care,
Dave