04-02-2012, 22:50
|
|
|
חבר מתאריך: 07.11.11
הודעות: 23
|
|
כפתורים לא עובדים בפרויקט WPF
הכפתורים שהכנסתי מופיעים על החלון אבל לא מגיבים:
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Wireless Network Connection" Height="200" Width="525" Background="WhiteSmoke">
<Grid>
<StackPanel>
<Canvas>
<Button Content="connect"
Width="75"
Height="20"
Click="Button_Click"
Canvas.Left="310"
Canvas.Top="130"/>
<Button Content="Cancel"
Width="75"
Height="20"
Click="Button_Click2"
Canvas.Left="400"
Canvas.Top="130"/>
</Canvas>
</StackPanel>
<Label Content="
The network 'defult' requires a network key, type the key and click connect." />
<StackPanel>
<Canvas>
<CheckBox Content="remember"
IsChecked="True" Checked="CheckBox_Checked"
Canvas.Left="60"
Canvas.Top="130" />
</Canvas>
<Canvas>
<TextBlock Text="Enter the network key:"
Canvas.Top="55"
Canvas.Left="80"/>
<PasswordBox
Width="200"
Height="20"
Canvas.Left="80"
Canvas.Top="75" />
</Canvas>
</StackPanel>
</Grid>
</Window>
|