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

  • How to reference a file in file system?

    Actually, in my application I am retrieving files with a "File Browse..." item and save then in DB. Or, users would like to open these files from APEX application, add their modifications and save in the same location. Once in the file's application

  • Disk Utility "Backup Failure"

    Hi all - I have a 500GB iMac running 10.6.8.  I am trying to save a bootable backup on my new WD MyBook Desktop 1TB hard drive using Disk Utility (11.5.2).  I have formatted the WD with 2 volumes, one of which (named "Boot2") is to be my bootable bac

  • Lightroom is shown as installed in creative cloud desktop app but it is not

    Hi, I am new to the creative cloud and signed up for the photographic bundle. I went to the lightroom download first in the creative cloud download center and downloaded the cc desktop app as described. After installation the cc desktop app shows lig

  • Possible to initialize a String as empty?

    So, in the following code i initialize result with null because i want it to be empty. However when i run the driver for the method, i get the first proper character followed by null for output. For instance "snull" is my output. Any ideas why this i

  • QT 7 and Surround Sound Creation?

    I've searched around but been unable to find any documentation on how to create Multichannel AAC in QT. I did find a complicated method mentioned on the Handbreak forum, but nothing at Apple. And it seems to be completely ignored on this board. I did