Click a Butoon in RowDetailsTemplate to show a Child Window

Hi All
I want to show a Child Window When Clicking a Button in DataGrid RowDetailsTemplate
my xaml is as below
<sdk:DataGrid.RowDetailsTemplate>
<DataTemplate>
<Button Content=" Show Child " x:Name="bPish" Click="bPish_Click"/>
</DataTemplate>
</sdk:DataGrid.RowDetailsTemplate>
and in cShrp Code
private void bPish_Click(object sender, RoutedEventArgs e)
Child150Pish ps = new Child150Pish();
ps.Show(); // this mehod no available
How can I Show my Child Window
Thanks

Hi,
Please try to use code below:
ChildWindow cw = new ChildWindow();
cw.Content = "Please Enter your name and password or click Cancel.";
cw.Show();
For more informaiton,please see:
http://msdn.microsoft.com/en-us/library/system.windows.controls.childwindow(VS.95).aspx
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

Maybe you are looking for

  • Patch scan process

    Hi, What is the process that scan a computer to know which patch need to be installed ? Is it the DAU process ? Since about a week, the JAVA 1.7.0 is released and for near 650 devices, only 85 need that update but that update is not installed anywher

  • Java Development Environment

    Hi, I have been developing and running into JAXP, JAXB and SOAPMessageFactory issues. I am pretty sure it my environment which I am unable to set up correctly. If i do a re-install and only install that which I require it might work. This problem I h

  • UTF8 Conversion error

    The thin driver sometimes gives this error: Fail to convert between UTF8 and UCS2 when accessing Oracle 8i set to UTF8 charset. Is this a known bug? Does anyone know a workaround?

  • Zen Vision M possible operator problem

    Hi, after getting a bit of a nasty computer virus I've had to reinstall windows (with all the joy that brings) and I'm now having difficulty getting my zen to talk to my computer. I reinstalled windows xp sp2 which came with media player 9. At this p

  • Totally confused about mixing videos with different field orders.

    I have PPcs5 on the pc. I edit for many different shooters. As such I get everything: Progressive, upper field , lower field . Not to mention from a zillion different cameras & different resolutions. I output 95% so far to dvd ntsc, 5% BR. I get dv t