ふらっとC#,C♯,C#(初心者用) Part35
■ このスレッドは過去ログ倉庫に格納されています
0338デフォルトの名無しさん
2008/12/26(金) 22:47:20thanks!
ひとつめのWPFウィンドウ
private void button1_Click(object sender, RoutedEventArgs e)
{
WpfApplication1.Page1 Page2 = new WpfApplication1.Page1();
Page2.Show();
}
ふたつめのWPFウィンドウ
<Page x:Class="WpfApplication1.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Page1" Height="300" Width="450" Name="Window2" Background="Transparent">
<Grid>
<Image Margin="0,0,0,0" Name="Image1" Stretch="None" Source="Image1.png" Opacity="100" SnapsToDevicePixels="True" Panel.ZIndex="1" />
<Image HorizontalAlignment="Right" Margin="0,12,38,112" Name="image2" Source="Image2.png" Stretch="Fill" Width="104" Panel.ZIndex="7"/>
<TextBox Background="Transparent" Height="23" Margin="113,95,195,0" Name="TextBox1" VerticalAlignment="Top" Panel.ZIndex="8" />
<TextBox Background="Transparent" Height="15" HorizontalAlignment="Right" Margin="0,103,65,0" Name="TextBox2" VerticalAlignment="Top" Width="51" Panel.ZIndex="10"/>
</Grid>
</Page>
としてます。
ところが、Page2.ShowでShowの定義がないといわれるうえに、ボタンを押しても、ふたつのめのウィンドウが空白になる、というのが現在の困っているところです。
どうぞ助言をお願いします。
■ このスレッドは過去ログ倉庫に格納されています