HI,
In silverlight main page i am having button.If i click button it will open a radwindow. It is opening properly.In that radwindow i am having an image. If user single clicks or double clicks a image it has open a another radwindow.
In imageMouseLeftButton_Down event i have written code like this
Private
Sub moPART_AnswerImage_MouseLeftButtonDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles moPART_AnswerImage.MouseLeftButtonDown
Dim oImageViewer As New Radwindow2
oImageViewer.ShowDialog()
End Sub
Find below is the xaml for Radwindow2
<tkNavigation:RadWindow
x:Class="RAMWare.Controls.dlg_PhotoViewer"
xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
xmlns:msControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
xmlns:tkNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:tkControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
Height="Auto"
Width="Auto"
WindowStartupLocation="CenterScreen"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Grid x:Name="LayoutRoot" Margin="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical">
<Image x:Name="imgPhoto" Height="Auto" Width="Auto" Stretch="Uniform" />
<StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
<StackPanel Width="Auto" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">
<Button
x:Name="cmdRotateCounterClockwise"
Content="RotateCounterClockwise"
Width="Auto"
Height="23"
HorizontalAlignment="Left" />
<Button
x:Name="cmdOK"
Content="OK"
Width="75"
Height="23"
HorizontalAlignment="Center" />
<Button
x:Name="cmdRotateClockwise"
Content="RotateClockwise"
Width="Auto"
Height="23"
HorizontalAlignment="Right" />
</StackPanel>
<TextBlock
x:Name="tblError"></TextBlock>
</StackPanel>
</StackPanel>
</Grid> </tkNavigation:RadWindow>
If user single click a image present in Radwindow1 it has to open Radwindow2.If user double cliks of a image present in Radwindow1 also opens a Radwindow2.But user double clicks a image, radwindow2 is opening behind Radwindow1 that is parent window.
How to solve the problem?