In the following code, the items master is displayed the user can select as many as needed to add to the budget grid. Now the need is to remove a line that was added if so desired or if by mistake they added the wrong line.
here you have a screen shot of the project : http://img685.imageshack.us/img685/7299/budget2.png
<
controls:ChildWindow xmlns:nav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" x:Class="Budget_SL.ItemSelector"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
Title="Search for Item">
<Grid x:Name="LayoutRoot" Margin="2">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical" >
<TextBlock >Search string:</TextBlock>
<StackPanel Orientation="Horizontal" Margin="0, 0, 0, 10">
<TextBox x:Name="Txt_Search" Width="580" />
<Button x:Name="Btn_Search" Click="Btn_Search_Click" Content="..." Width="20" />
</StackPanel>
<nav:RadTreeView x:Name="Tv_Items" SelectionMode="Single" MinWidth="600" MaxWidth="600" MinHeight="300" MaxHeight="300" Background="White" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" SelectionChanged="Tv_Items_SelectionChanged" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,12,0,0" Grid.Row="1" HorizontalAlignment="Right" >
<Button x:Name="AddButton" Content="Add Item to Grid" Height="23" />
<Button x:Name="CloseButton" Content="Close" Margin="12, 0, 0, 0" Height="23" />
</StackPanel>
</Grid>
</
controls:ChildWindow>
here you have a screen shot of the project : http://img685.imageshack.us/img685/7299/budget2.png
<
controls:ChildWindow xmlns:nav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" x:Class="Budget_SL.ItemSelector"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
Title="Search for Item">
<Grid x:Name="LayoutRoot" Margin="2">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical" >
<TextBlock >Search string:</TextBlock>
<StackPanel Orientation="Horizontal" Margin="0, 0, 0, 10">
<TextBox x:Name="Txt_Search" Width="580" />
<Button x:Name="Btn_Search" Click="Btn_Search_Click" Content="..." Width="20" />
</StackPanel>
<nav:RadTreeView x:Name="Tv_Items" SelectionMode="Single" MinWidth="600" MaxWidth="600" MinHeight="300" MaxHeight="300" Background="White" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" SelectionChanged="Tv_Items_SelectionChanged" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,12,0,0" Grid.Row="1" HorizontalAlignment="Right" >
<Button x:Name="AddButton" Content="Add Item to Grid" Height="23" />
<Button x:Name="CloseButton" Content="Close" Margin="12, 0, 0, 0" Height="23" />
</StackPanel>
</Grid>
</
controls:ChildWindow>