HI,
I created a base page with a window control decribed below
I created a base page with a window control decribed below
<telerik:RadWindow x:Class="SilverlightApplication4.Views.Base.BasePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640" d:DesignHeight="480">
<Grid x:Name="LayoutRoot" Background="Gray"><telerik:RadButton Command="{Binding InsertCommand}" Content="Novo" Height="22" HorizontalAlignment="Left" Margin="85,12,0,0" Name="btnNovo" UseLayoutRounding="False" VerticalAlignment="Top" Width="67" Click="btnNovo_Click" />
<telerik:RadButton Command="{Binding EditCommand, Mode=TwoWay}" Content="Editar" Height="22" HorizontalAlignment="Left" Margin="158,12,0,0" Name="btnEditar" UseLayoutRounding="False" VerticalAlignment="Top" Width="67" />
<telerik:RadButton Command="{Binding DeleteCommand}" CommandParameter="{Binding ItemSelecionado}" Content="Excluir" Height="22" HorizontalAlignment="Left" Margin="229,12,0,0" Name="btnExcluir" UseLayoutRounding="False" VerticalAlignment="Top" Width="67" />
<telerik:RadButton Command="{Binding CancelCommand}" IsEnabled="{Binding EmEdicao}" Content="Cancelar" Height="22" HorizontalAlignment="Left" Margin="302,12,0,0" Name="btnCancelar" UseLayoutRounding="False" VerticalAlignment="Top" Width="67" />
<telerik:RadButton Command="{Binding SaveCommand}" Content="Salvar" Height="22" HorizontalAlignment="Left" Margin="375,12,0,0" Name="btnSalvar" UseLayoutRounding="False" VerticalAlignment="Top" Width="67" />
</Grid>
</telerik:RadWindow>
and want to create another page that inherit this base class. So all my pages would have search buttons and editing as can be seen in the base class.
I tried as shown in the code below, but the application gives error.
How can I implement this proper functionality?
<BasePage x:Class="SilverlightApplication4.Views.Page1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640" d:DesignHeight="480"
Title="Page1 Page">
<Grid x:Name="LayoutRoot">
</Grid>
</BasePage>