Hi,
I've been trying to get the grid working, but every time I add the grid control to my Xaml, it breaks my application. When debugging, it goes in the application startup method, then right after that, it goes to the application_exit method. I can only assume it's because it doesn't like somthing with the grid.
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new Page();
}
private void Application_Exit(object sender, EventArgs e)
{
}
here's my xaml.
<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
x:Class="WTXNetSilver2.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:WTXNetSilver2="clr-namespace:WTXNetSilver2"
xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
Width="800" Height="600">
<UserControl.Resources>
<WTXNetSilver2:TreeArea x:Key="TreeAreaDS" />
<core:HierarchicalDataTemplate x:Key="battery" ItemsSource="{Binding well}" >
<TextBlock Text="{Binding Name}" Foreground="Green" FontStyle="Italic" />
</core:HierarchicalDataTemplate>
<core:HierarchicalDataTemplate x:Key="area" ItemsSource="{Binding battery}"
ItemTemplate="{StaticResource battery}">
<TextBlock Text="{Binding Name}" Foreground="Green" FontStyle="Italic" />
</core:HierarchicalDataTemplate>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"></ColumnDefinition>
<ColumnDefinition Width="200"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions>
<telerikInput:RadComboBox x:Name="comboBoxCompany" Grid.Row="1" Grid.Column="1"></telerikInput:RadComboBox>
<telerikNavigation:RadTreeViewItem x:Name="treeItem"></telerikNavigation:RadTreeViewItem>
<telerikNavigation:RadTreeView x:Name="treeWells" Width="555" Height="555" HorizontalAlignment="Left"
VerticalAlignment="Top"
IsTriStateMode="True" IsLineEnabled="True"
IsOptionElementsEnabled="True" ItemsOptionListType="CheckList"
ItemsSource="{Binding Source={StaticResource TreeAreaDS}}"
ItemTemplate="{StaticResource area}"
Grid.Row="2" Grid.Column="1"/>
</Grid>
</UserControl>
I'm completely lost, and I suppose it is forgivable due to the beta stage of the gird, however, I've had enough troubles getting other RadSilverLight controls to work, that I'm about the throw in the towel for your Silverlight product.... Not enough documentation is killing this product, I know you've heard it before, but it's rediculous that I have to surf Google for hours on end to find solutions to your tools.
Chad
I've been trying to get the grid working, but every time I add the grid control to my Xaml, it breaks my application. When debugging, it goes in the application startup method, then right after that, it goes to the application_exit method. I can only assume it's because it doesn't like somthing with the grid.
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new Page();
}
private void Application_Exit(object sender, EventArgs e)
{
}
here's my xaml.
<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
x:Class="WTXNetSilver2.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:WTXNetSilver2="clr-namespace:WTXNetSilver2"
xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
Width="800" Height="600">
<UserControl.Resources>
<WTXNetSilver2:TreeArea x:Key="TreeAreaDS" />
<core:HierarchicalDataTemplate x:Key="battery" ItemsSource="{Binding well}" >
<TextBlock Text="{Binding Name}" Foreground="Green" FontStyle="Italic" />
</core:HierarchicalDataTemplate>
<core:HierarchicalDataTemplate x:Key="area" ItemsSource="{Binding battery}"
ItemTemplate="{StaticResource battery}">
<TextBlock Text="{Binding Name}" Foreground="Green" FontStyle="Italic" />
</core:HierarchicalDataTemplate>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"></ColumnDefinition>
<ColumnDefinition Width="200"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions>
<telerikInput:RadComboBox x:Name="comboBoxCompany" Grid.Row="1" Grid.Column="1"></telerikInput:RadComboBox>
<telerikNavigation:RadTreeViewItem x:Name="treeItem"></telerikNavigation:RadTreeViewItem>
<telerikNavigation:RadTreeView x:Name="treeWells" Width="555" Height="555" HorizontalAlignment="Left"
VerticalAlignment="Top"
IsTriStateMode="True" IsLineEnabled="True"
IsOptionElementsEnabled="True" ItemsOptionListType="CheckList"
ItemsSource="{Binding Source={StaticResource TreeAreaDS}}"
ItemTemplate="{StaticResource area}"
Grid.Row="2" Grid.Column="1"/>
</Grid>
</UserControl>
I'm completely lost, and I suppose it is forgivable due to the beta stage of the gird, however, I've had enough troubles getting other RadSilverLight controls to work, that I'm about the throw in the towel for your Silverlight product.... Not enough documentation is killing this product, I know you've heard it before, but it's rediculous that I have to surf Google for hours on end to find solutions to your tools.
Chad