→ jlovet:想到了...給每個TextBox一個tag... 11/10 11:50
我要在WPF Grid裡面放5*5個TextBox
TextBox的內容希望同步到 某個變數 String value[5][5]裡面
請問
1.
<TextBox Name="textBox00" Grid.Column="0" Grid.Row="0" Width="50" Text="0"/>
我要怎麼讓TextBox的名字是有[][]?
或有其他辦法?
2.
<x:Array x:Key="tFilter" Type="TextBox">
<TextBox Grid.Column="0" Grid.Row="0" Width="50" Text="0"/>
<TextBox Grid.Column="0" Grid.Row="1" Width="50" Text="0"/>
</x:Array>
或是我先在App.xmal的Resource部份建立好25個TextBox
我要怎麼在.cs code跟其他xaml裡面呼叫到這個array的object?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.216.204