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>
속성을 편집하려면 어떻게해야합니까?
예를 들어, Lable의 내용을 변경하고 싶습니다.
문제는 무엇입니까? 소스 코드를 편집하는 방법? 키보드로 :) 또는 어떻게 표시하는 대신 사용자가 일부 텍스트를 편집하게 할 수 있습니까? 아니면 다른가? – dvvrd