or
1.
private
void
grdProducts_MouseDoubleClick(
object
sender, MouseButtonEventArgs e)
2.
{
3.
Product product = (sender
as
"not-sure-what-to-use-here-as-sender"
)
as
Product;
4.
ShowProductWindow(product);
5.
}
01.
private
void
ShowProductWindow(Product product)
02.
{
03.
if
(product !=
null
)
04.
{
05.
ProductWindow productWindow =
new
ProductWindow(product, amazonContext);
06.
productWindow.Closed += ProductWindowClosed;
07.
productWindow.ShowDialog();
08.
}
09.
}
1.
<
Style
x:Key
=
"RadWindowStyleABC"
TargetType
=
"{x:Type telerik:RadWindow}"
>
2.
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource WindowForeground}"
/>
3.
<
Setter
Property
=
"Background"
Value
=
"{StaticResource WindowBackground}"
/>
1.
<
Style
TargetType
=
"{x:Type dialogs:FindReplaceDialog}"
BasedOn
=
"{StaticResource RadWindowStyleABC}"
>
2.
<
Setter
Property
=
"Header"
Value
=
"find/replace"
/>
3.
</
Style
>
4.
5.
<
Style
TargetType
=
"{x:Type telerik:RadWindow}"
BasedOn
=
"{StaticResource RadWindowStyleABC}"
/>