<Grid RenderTransformOrigin="0.5,0.5">
<Grid Margin="0,0,0.286,0.429" Name="LogGrid">
<PasswordBox x:Name="Password" HorizontalAlignment="Left" Margin="130,130,0,0" VerticalAlignment="Top" Width="140"/>
<TextBox x:Name="Login" HorizontalAlignment="Left" Height="20" Margin="140,90,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/>
<Button x:Name="btnSignIn" Content="Sign In" HorizontalAlignment="Left" Margin="130,170,0,0" VerticalAlignment="Top" Width="65"/>
<Button x:Name="btnSignUp" Content="Sign Up" HorizontalAlignment="Left" Margin="205,170,0,0" VerticalAlignment="Top" Width="65"/>
</Grid>
<Grid Name="MainPart" Width="800" Height="600" Visibility="Hidden" HorizontalAlignment="Right">
<TextBox x:Name="Chat" HorizontalAlignment="Left" Height="540" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="800" AcceptsReturn="True" IsReadOnly="True"/>
<TextBox Name="SendString" Width="740" Height="60" Margin="0, 540, 0, 0" HorizontalAlignment="Left"/>
<Button x:Name="SendMsg" Margin="740, 540, 0, 0" Width="60" Height="60" HorizontalAlignment="Right" Content="Send" /> <-!!!!!!!!!!!!!!
</Grid>
的問題是:從第2個網格,命名爲 「SENDMSG」 不顯示 「內容」C#WPF按鈕 「內容」 不顯示
你想按鈕說「發送」,是你的意思? –
我想在按鈕上顯示「發送」字符串,但它不顯示:( – AL1ve1T
你在看什麼?一個沒有內容的空按鈕,或者根本沒有按鈕? –