Click here to Skip to main content
15,904,934 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How save from FlowDocument to Xps Pin
Pete O'Hanlon15-Jan-09 22:56
mvePete O'Hanlon15-Jan-09 22:56 
GeneralRe: How save from FlowDocument to Xps Pin
VisualLive18-Jan-09 20:52
VisualLive18-Jan-09 20:52 
QuestionTextboxes Pin
boiDev15-Jan-09 4:25
boiDev15-Jan-09 4:25 
QuestionRe: Textboxes Pin
Mark Salsbery15-Jan-09 9:18
Mark Salsbery15-Jan-09 9:18 
AnswerRe: Textboxes Pin
boiDev15-Jan-09 23:09
boiDev15-Jan-09 23:09 
GeneralRe: Textboxes Pin
Mark Salsbery16-Jan-09 5:44
Mark Salsbery16-Jan-09 5:44 
GeneralRe: Textboxes Pin
boiDev16-Jan-09 5:57
boiDev16-Jan-09 5:57 
GeneralRe: Textboxes Pin
Mark Salsbery16-Jan-09 6:49
Mark Salsbery16-Jan-09 6:49 
Here's an example of the two windows (XAML and code-behind), where the first window has the button.
<Window x:Class="WPFTester.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="150" Width="300" Background="SteelBlue" Loaded="Window_Loaded"  >
    <StackPanel>
        <TextBox Name="TextBox1" Margin="8" />
        <TextBox Name="TextBox2" Margin="8" />
        <Button Content="Test" Width="80"  Margin="8" Click="TestButton_Click"  />
    </StackPanel>
</Window>

namespace WPFTester
{
    public partial class Window1 : Window
    {
        Window2 window2;

        public Window1()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            window2 = new Window2();
            window2.Show();
        }

        private void TestButton_Click(object sender, RoutedEventArgs e)
        {
            window2.TextBox1.Text = this.TextBox1.Text;
            window2.TextBox2.Text = this.TextBox2.Text;
        }
    }
}


<Window x:Class="WPFTester.Window2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window2" Height="116" Width="300" Background="SteelBlue" >
    <StackPanel>
        <TextBox Name="TextBox1" Margin="8" />
        <TextBox Name="TextBox2" Margin="8" />
    </StackPanel>
</Window>

namespace WPFTester
{
    public partial class Window2 : Window
    {
        public Window2()
        {
            InitializeComponent();
        }
    }
}


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Textboxes Pin
boiDev18-Jan-09 23:01
boiDev18-Jan-09 23:01 
AnswerRe: Textboxes Pin
Mohammad Dayyan19-Jan-09 19:29
Mohammad Dayyan19-Jan-09 19:29 
QuestionBinding two comboboxes in WPF Pin
boiDev14-Jan-09 22:08
boiDev14-Jan-09 22:08 
AnswerRe: Binding two comboboxes in WPF Pin
sdixit11014-Jan-09 23:14
sdixit11014-Jan-09 23:14 
GeneralRe: Binding two comboboxes in WPF Pin
boiDev14-Jan-09 23:22
boiDev14-Jan-09 23:22 
GeneralRe: Binding two comboboxes in WPF Pin
Moim Hossain16-Jan-09 10:31
Moim Hossain16-Jan-09 10:31 
GeneralRe: Binding two comboboxes in WPF Pin
Pete O'Hanlon16-Jan-09 11:22
mvePete O'Hanlon16-Jan-09 11:22 
AnswerRe: Binding two comboboxes in WPF Pin
Pete O'Hanlon14-Jan-09 23:25
mvePete O'Hanlon14-Jan-09 23:25 
QuestionGetting Error on Grid Tag Pin
mr_muskurahat14-Jan-09 19:14
mr_muskurahat14-Jan-09 19:14 
AnswerRe: Getting Error on Grid Tag Pin
Mark Salsbery16-Jan-09 7:22
Mark Salsbery16-Jan-09 7:22 
AnswerRe: Getting Error on Grid Tag Pin
Mohammad Dayyan19-Jan-09 17:50
Mohammad Dayyan19-Jan-09 17:50 
QuestionUsing application settings on a DataTemplate markup [modified] Pin
LeonardoHSM14-Jan-09 4:53
LeonardoHSM14-Jan-09 4:53 
AnswerRe: Using application settings on a DataTemplate markup Pin
ColinM12314-Jan-09 11:36
ColinM12314-Jan-09 11:36 
GeneralRe: Using application settings on a DataTemplate markup Pin
LeonardoHSM14-Jan-09 22:11
LeonardoHSM14-Jan-09 22:11 
QuestionWCF max data transfer Pin
Member 236391614-Jan-09 4:36
Member 236391614-Jan-09 4:36 
AnswerRe: WCF max data transfer Pin
Pete O'Hanlon14-Jan-09 5:18
mvePete O'Hanlon14-Jan-09 5:18 
QuestionResource not found Pin
RugbyLeague14-Jan-09 4:25
RugbyLeague14-Jan-09 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.