<Border Grid.Row="1" Background="Gray" Padding="7">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,30,0">
<optimumScheduler:LookUpOKButton Grid.Row="1" Content="OK" HorizontalAlignment="Center" Padding="20,0,20,0" Margin="0,0,20,0"/>
<optimumScheduler:LookUpCancelButton Grid.Row="1" Content="Cancel" HorizontalAlignment="Center" Padding="20,0,20,0"/>
我需要調整條目。我需要調整OK按鈕。如果用戶未輸入以下內容之一:患者,醫生/治療師,部門,則我們希望禁用「確定」按鈕或不允許輸入。如何編碼此字段中的強制條目
這裏他們被定義。其中之一。我如何編碼,它必須有一個條目主題
public static string FormatAppointmentFormCaption(bool allDay, string subject, bool readOnly)
{
string format = allDay ? "Event - {0}" : "Appt Editor - {0}";
string text = subject;
if (string.IsNullOrEmpty(text))
text = "Untitled";
text = String.Format(CultureInfo.InvariantCulture, format, text);
if (readOnly)
text += " [Read only]";
return text;
}
只需綁定'Button'到'ICommand'並控制它是否使用'CanExecute'方法啓用。 –
我明白了。你能指出我的第一步嗎? –
我覺得@Bob。已經做了。 – JDB