有没有办法将Django表单中的外键字段显示为只读文本框? forms.py
class NewModelForm(forms.ModelForm):
class Meta:
model = Model
fields = ['fk_field', 'other_field']
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['fk_field']
我是UWP的新手,我想隐藏在屏幕键盘上弹出的焦点在文本框上。我已经有数字键盘来接受用户的输入。如何避免键盘的自动功能。
尝试使用PreventKeyboardDisplayOnProgrammaticFocus="True"和InputPane.GetForCurrentView().Showing += (s, e) => (s as InputPane).TryHide();
但是没有用。
我关注了Unity Blog Post tutorial。在Unity IDE中一切正常,但当我构建它时,UWP应用程序抛出了一个异常: InvalidOperationException: Enable VR Streaming to allow connection to remote holographic device 我的Unity版本: 2018.03 有没有人知道解决办法?