0
我試圖編輯在C#源代碼 形式與WPF寫,並在他們不直接宣佈 性能但參考下面 使用我把一些線路從WPF形式。編輯WPF代碼,是指資源
<Grid>
<StackPanel>
<Label>
<LocText ResourceIdentifierKey="CustomerName" Suffix=":"/>
</Label>
<TextBox HorizontalAlignment="Left" MinWidth="200" Text="{Binding Name}" />
<Label>
<LocText ResourceIdentifierKey="GroupCode" Suffix=":"/>
</Label>
<ComboBox HorizontalAlignment="Left" MinWidth="150" Text="{Binding GroupCode,Mode=TwoWay}"
ItemsSource="{Binding GroupCodes}" IsEditable="True"/>
<Label>
<LocText ResourceIdentifierKey="PhoneNumber" Suffix=":"/>
</Label>
<Common:MaskedTextBox HorizontalAlignment="Left" MinWidth="100" InputMask="{Binding PhoneNumberInputMask}"
PromptChar=" " UnmaskedText="{Binding PhoneNumber, Mode=TwoWay, UpdateSourceTrigger=LostFocus, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
<Label>
<LocText ResourceIdentifierKey="Address" Suffix=":"/>
</Label>
<TextBox HorizontalAlignment="Left" MinWidth="200" MinHeight="55" Text="{Binding Address}"
AcceptsReturn="True" />
<Label>
<LocText ResourceIdentifierKey="Note" Suffix=":"/>
</Label>
<TextBox HorizontalAlignment="Left" MinWidth="200" MinHeight="55" Text="{Binding Note}"
AcceptsReturn="True" />
<CheckBox Margin="0,5,0,0" IsChecked="{Binding InternalAccount}">
<LocText ResourceIdentifierKey="InternalAccount"/>
</CheckBox>
<Button HorizontalAlignment="Left" Margin="0,10" MinWidth="70" Content="{Binding SaveCommand.Caption}"
Command="{Binding SaveCommand}" />
<Label Content="{Binding Error}" Foreground="Red" />
</StackPanel>
</Grid>
如何編輯屬性?
例如,我想更改標籤的內容。
問題是什麼?如何編輯源代碼?與鍵盤:)或如何讓用戶編輯一些文字,而不是隻顯示它?還是別的? – dvvrd 2012-08-02 10:48:04