Wpf Button Location
hi everyone.
i am building an application. i have a button on a window. When i click the button, i want
a new window popsup. but new window must open behind button. As another way, when window popsup,button must been shown in front of the window. How can i success that? is that possible? Thanks in advance.
My codes as follows,
private void Topics_Click(object sender, RoutedEventArgs e)
{
TreeView tree = new TreeView();
tree.Top = 250;
tree.Left = 30;
tree.Show();
}
http://www.freeimagehosting.net/image.php?de9869e063.jpg i want it looks like that thanks in advance
Kirtan PatelPosted Oct 16, 2009, 8:03 AM
Window Inside Window -:)
Friend, Dont forget to check "Do you like answer" if my answer helps you :)
Download Sample
jingePosted Oct 16, 2009, 8:00 AM
Also have a look at this one.
busra acarPosted Oct 16, 2009, 6:29 AM
jingePosted Oct 16, 2009, 5:48 AM
Kirtan PatelPosted Oct 16, 2009, 5:35 AM
if you want out put as above Image then make propertie opacity = 0.5 in window1 and set back ground color to blue
other thigs will be as it is as above posts :)
jingePosted Oct 16, 2009, 5:21 AM
http://chronoswpf.codeplex.com/
busra acarPosted Oct 16, 2009, 5:15 AM
Kirtan PatelPosted Oct 16, 2009, 5:11 AM
Check My Above post I have updated it :) and download my Project Files
Download Project Files if you want to take a reference
and
Friend ,Dont forget to mark "do you like this answer" please if my answer helped you :)
busra acarPosted Oct 16, 2009, 5:01 AM
Kirtan PatelPosted Oct 16, 2009, 4:45 AM
Here is What you want ...
dont forget to mark "do you like this answer" please it will give me some credits :)
Make Back ground and All Transparent in Window 1 So it can have only One Button as you shown in Image
Below is My Result
First of All Set Following Properties in Window1 so that only button will appear in Window 1
Now Write Code in Button 1 in Window1 like below
private void button1_Click(object sender, RoutedEventArgs e)
{
Window2 w2 = new Window2();
w2.Show();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
this.Topmost = true;
}
Window1 XAML Code
-----------------