Click here to Skip to main content
14,662,172 members
Home » Discussions » Silverlight / WPF
   

Silverlight / WPF

 
GeneralRe: Listbox or Gridview Pin
Mycroft Holmes5-Jul-11 12:11
professionalMycroft Holmes5-Jul-11 12:11 
GeneralRe: Listbox or Gridview Pin
Mark Salsbery5-Jul-11 12:35
MemberMark Salsbery5-Jul-11 12:35 
GeneralRe: Listbox or Gridview Pin
Mycroft Holmes5-Jul-11 14:11
professionalMycroft Holmes5-Jul-11 14:11 
GeneralRe: Listbox or Gridview Pin
Pete O'Hanlon5-Jul-11 22:57
subeditorPete O'Hanlon5-Jul-11 22:57 
GeneralRe: Listbox or Gridview Pin
Mycroft Holmes5-Jul-11 23:08
professionalMycroft Holmes5-Jul-11 23:08 
GeneralRe: Listbox or Gridview Pin
Pete O'Hanlon5-Jul-11 23:17
subeditorPete O'Hanlon5-Jul-11 23:17 
AnswerRe: Listbox or Gridview Pin
SledgeHammer015-Jul-11 9:26
MemberSledgeHammer015-Jul-11 9:26 
QuestionHelp me I want to get the value of selectedValue in ListBox [modified] Pin
Honeyboy_204-Jul-11 13:30
MemberHoneyboy_204-Jul-11 13:30 
How I can access to textblock in DataATemplate

I want to get the value of selectedValue
Here's the code
<Window x:Class="ElementsCloudTestVodafoneSeaWindow.VodafoneSeaWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:data="clr-namespace:ElementsCloudTestVodafoneUpper"
        xmlns:cloud="clr-namespace:ElementsCloud;assembly=ElementsCloud"
        
        Title="Data Visualization" Width="640" Height="480" WindowState="Maximized">
    <Window.Resources>


        <ObjectDataProvider x:Key="objDs"
                             ObjectType="{x:Type data:CDataAccess}"
                             MethodName="GetCites">
        </ObjectDataProvider>
        <DataTemplate x:Key="BookTemplate">
            <DataTemplate.Resources>
                <Storyboard x:Key="Storyboard1">
                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(FrameworkElement.Margin)">
                        <SplineThicknessKeyFrame KeyTime="00:00:00.5000000" Value="5,0,0,0"/>
                        <SplineThicknessKeyFrame KeyTime="00:00:01" Value="20,0,20,0"/>
                    </ThicknessAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="7"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="-33"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="-43"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.Margin)">
                        <SplineThicknessKeyFrame KeyTime="00:00:00.5000000" Value="0,0,-100,0"/>
                        <SplineThicknessKeyFrame KeyTime="00:00:01" Value="0,0,-50,0"/>
                    </ThicknessAnimationUsingKeyFrames>
                </Storyboard>
                <Storyboard x:Key="Storyboard2">
                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(FrameworkElement.Margin)">
                        <SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="20,0,20,0"/>
                        <SplineThicknessKeyFrame KeyTime="00:00:01" Value="5,0,0,0"/>
                    </ThicknessAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="7"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="-33"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="-43"/>
                    </DoubleAnimationUsingKeyFrames>
                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.Margin)">
                        <SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="0,0,-50,0"/>
                        <SplineThicknessKeyFrame KeyTime="00:00:01" Value="0,0,-100,0"/>
                    </ThicknessAnimationUsingKeyFrames>
                </Storyboard>
            </DataTemplate.Resources>
            <Grid Width="150" Height="50" Margin="0,0,-100,0" x:Name="grid">
                <StackPanel RenderTransformOrigin="0.55,0.5" Margin="-10,0,0,0" Orientation="Vertical" Background="#FF4C4141" x:Name="stackPanel">
                    <StackPanel.LayoutTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1" ScaleY="1"/>
                            <SkewTransform AngleX="0" AngleY="0"/>
                            <RotateTransform Angle="0"/>
                            <TranslateTransform X="0" Y="0"/>
                        </TransformGroup>
                    </StackPanel.LayoutTransform>
                    <StackPanel.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1" ScaleY="1"/>
                            <SkewTransform AngleX="-43" AngleY="0"/>
                            <RotateTransform Angle="-33"/>
                            <TranslateTransform X="7" Y="0"/>
                        </TransformGroup>
                    </StackPanel.RenderTransform>
                    <TextBlock FontWeight="Bold" Text="{Binding Mode=OneWay, XPath=Name}" HorizontalAlignment="Center" Foreground="#FFFFFFFF"/>
                    <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Foreground="#FF9B9B9B" Text="{Binding Mode=OneWay, XPath=Amount}"/>
                    <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Foreground="#FFFFFFFF" Text="{Binding Mode=OneWay, XPath=Pages}"/>
                </StackPanel>
            </Grid>
            <DataTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Trigger.ExitActions>
                        <BeginStoryboard Storyboard="{StaticResource Storyboard2}" x:Name="Storyboard2_BeginStoryboard"/>
                    </Trigger.ExitActions>
                    <Trigger.EnterActions>
                        <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
                    </Trigger.EnterActions>
                </Trigger>
            </DataTemplate.Triggers>
        </DataTemplate>
        <SolidColorBrush x:Key="ListBorder" Color="#828790"/>

        <Style x:Key="ItemContainerStyle1" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <Border x:Name="outsideBorder" 
                    		CornerRadius="4" Padding="1">
                            <ContentPresenter Margin="1" RecognizesAccessKey="True" HorizontalAlignment="Left"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>



        <Style x:Key="BooksListBoxStyle" TargetType="{x:Type ListBox}">
            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
            <Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBox}">
                        <Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
                            <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
                                <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            </ScrollViewer>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                            </Trigger>
                            <Trigger Property="IsGrouping" Value="true">
                                <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ItemsPanelTemplate x:Key="BooksItemsPanelTemplate">
            <VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
        </ItemsPanelTemplate>
        <Style x:Key="BooksListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="Padding" Value="2,0,0,0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <StackPanel Height="51">
                            <TextBlock Text="TextBlock" TextWrapping="Wrap"/>
                            <TextBlock Text="TextBlock" TextWrapping="Wrap"/>
                            <TextBlock Text="TextBlock" TextWrapping="Wrap"/>
                        </StackPanel>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsSelected" Value="true">
                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
                            </Trigger>
                            <MultiTrigger>
                                <MultiTrigger.Conditions>
                                    <Condition Property="IsSelected" Value="true"/>
                                    <Condition Property="Selector.IsSelectionActive" Value="false"/>
                                </MultiTrigger.Conditions>
                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                            </MultiTrigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <DataTemplate x:Key="DataTemplate1"/>
        <Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="Padding" Value="2,0,0,0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <StackPanel Height="51">
                            <TextBlock Text="TextBlock" TextWrapping="Wrap"/>
                            <TextBlock Text="TextBlock" TextWrapping="Wrap"/>
                            <TextBlock Text="TextBlock" TextWrapping="Wrap"/>
                        </StackPanel>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsSelected" Value="true">
                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
                            </Trigger>
                            <MultiTrigger>
                                <MultiTrigger.Conditions>
                                    <Condition Property="IsSelected" Value="true"/>
                                    <Condition Property="Selector.IsSelectionActive" Value="false"/>
                                </MultiTrigger.Conditions>
                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                            </MultiTrigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <DataTemplate x:Key="BookTemplate1">
            <StackPanel>
                <TextBlock Text="{Binding Mode=OneWay, XPath=Name}"/>
                <TextBlock Text="{Binding Mode=OneWay, XPath=Amount}"/>
                <TextBlock Text="{Binding Telephone}" TextAlignment="Center"/>
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="BookTemplate2">
            <StackPanel>
                <TextBlock Text="{Binding Mode=OneWay, XPath=Name}"/>
                <TextBlock Text="{Binding Mode=OneWay, XPath=Amount}"/>
                <TextBlock Text="{Binding Mode=OneWay, XPath=Pages}"/>
            </StackPanel>
        </DataTemplate>
        <ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
            <VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
        </ItemsPanelTemplate>
        <DataTemplate x:Key="BookTemplate3">
            <DataTemplate.Resources>
                <Storyboard x:Key="Storyboard1">
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="-40"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="-50"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(FrameworkElement.Margin)">
                        <SplineThicknessKeyFrame KeyTime="00:00:00.5000000" Value="0,0,-100,0"/>
                        <SplineThicknessKeyFrame KeyTime="00:00:01" Value="0,0,-10,0"/>
                    </ThicknessAnimationUsingKeyFrames>
                </Storyboard>
                <Storyboard x:Key="Storyboard2">
                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(FrameworkElement.Margin)">
                        <SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="0,0,-10,0"/>
                        <SplineThicknessKeyFrame KeyTime="00:00:01" Value="0,0,-100,0"/>
                    </ThicknessAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="-40"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="-50"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
            </DataTemplate.Resources>
            <StackPanel Margin="0,0,-100,0" RenderTransformOrigin="0.5,0.5" Width="150" x:Name="stackPanel" Height="70">
                <StackPanel.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="-50" AngleY="0"/>
                        <RotateTransform Angle="-40"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </StackPanel.RenderTransform>
                <StackPanel.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFD10B0B" Offset="0"/>
                        <GradientStop Color="#FFFFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </StackPanel.Background>
                <TextBlock  Text="{Binding CityName}" TextAlignment="Center"/>
            </StackPanel>
            <DataTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Trigger.ExitActions>
                        <BeginStoryboard Storyboard="{StaticResource Storyboard2}" x:Name="Storyboard2_BeginStoryboard"/>
                    </Trigger.ExitActions>
                    <Trigger.EnterActions>
                        <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
                    </Trigger.EnterActions>
                </Trigger>
            </DataTemplate.Triggers>
        </DataTemplate>
        <ItemsPanelTemplate x:Key="ItemsPanelTemplate2">
            <VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
        </ItemsPanelTemplate>
        <Style x:Key="ListBoxStyle1" TargetType="{x:Type ListBox}">
            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
            <Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBox}">
                        <Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Width="604" Height="196"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                            </Trigger>
                            <Trigger Property="IsGrouping" Value="true">
                                <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <DataTemplate x:Key="BookTemplate4">
            <StackPanel RenderTransformOrigin="0.5,0.5" Margin="0,0,-40,0" Width="150" Height="60">
                <StackPanel.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="-50" AngleY="0"/>
                        <RotateTransform Angle="-50"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </StackPanel.RenderTransform>
                <StackPanel.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF20707" Offset="0"/>
                        <GradientStop Color="#FFFAFAFA" Offset="1"/>
                    </LinearGradientBrush>
                </StackPanel.Background>
                <TextBlock Text="{Binding CityName}" TextAlignment="Center"/>
                
            </StackPanel>
        </DataTemplate>
    </Window.Resources>

    <Grid DataContext="{Binding Source={StaticResource objDs}}" >
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="AliceBlue" Offset="1"/>
                <GradientStop Color="Black" Offset="0"/>
            </LinearGradientBrush>
        </Grid.Background>
        <ListBox Name="listBox1" ItemTemplate="{DynamicResource BookTemplate3}" ItemsPanel="{DynamicResource ItemsPanelTemplate2}" 
		Margin="8,71,8,36" ItemsSource="{Binding}"
		Style="{DynamicResource ListBoxStyle1}" 
		Background="{x:Null}" BorderBrush="{x:Null}"
		ItemContainerStyle="{StaticResource ItemContainerStyle1}" SelectionChanged="listBox1_SelectionChanged" />
    </Grid>
</Window>


modified on Monday, July 4, 2011 7:42 PM

AnswerRe: Help me I want to get the value of selectedValue in ListBox Pin
Mycroft Holmes4-Jul-11 14:32
professionalMycroft Holmes4-Jul-11 14:32 
QuestionError 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 2:15
Memberjadughar4-Jul-11 2:15 
AnswerRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Abhinav S4-Jul-11 3:21
MemberAbhinav S4-Jul-11 3:21 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 3:30
Memberjadughar4-Jul-11 3:30 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 3:34
Memberjadughar4-Jul-11 3:34 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery4-Jul-11 9:22
MemberMark Salsbery4-Jul-11 9:22 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 10:46
Memberjadughar4-Jul-11 10:46 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery4-Jul-11 10:53
MemberMark Salsbery4-Jul-11 10:53 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 20:48
Memberjadughar4-Jul-11 20:48 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery5-Jul-11 8:21
MemberMark Salsbery5-Jul-11 8:21 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar5-Jul-11 21:53
Memberjadughar5-Jul-11 21:53 
QuestionRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery5-Jul-11 22:04
MemberMark Salsbery5-Jul-11 22:04 
AnswerRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Oludayo Alli19-Aug-11 6:04
MemberOludayo Alli19-Aug-11 6:04 
QuestionMultiple calls to same wcf service method from Silverlight application Pin
Pankaj Chamria3-Jul-11 23:01
MemberPankaj Chamria3-Jul-11 23:01 
AnswerRe: Multiple calls to same wcf service method from Silverlight application Pin
Abhinav S4-Jul-11 3:22
MemberAbhinav S4-Jul-11 3:22 
AnswerRe: Multiple calls to same wcf service method from Silverlight application Pin
Mark Salsbery4-Jul-11 8:54
MemberMark Salsbery4-Jul-11 8:54 
AnswerRe: Multiple calls to same wcf service method from Silverlight application Pin
BobJanova5-Jul-11 0:59
MemberBobJanova5-Jul-11 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.