您好我需要帮助使我的按钮和标签在我改变显示分辨率时保持固定。我有一个关于我的意思的视频链接。
link:https://youtu.be/GJ3f88ebDqc?t=29s
如果有人能让我成为代码的例子或解释并告诉我这将是伟大的。谢谢!
答案 0 :(得分:1)
在您正在使用的布局中阅读有关Prototype.MyProject.Controls\AutoForm\AutoFormPickerItem.cs (3, 18)
Prototype.MyProject.Controls\AutoForm\AutoFormPickerItem.cs(3,18): Warning CS0659: 'AutoFormPickerItem' overrides Object.Equals(object o) but does not override Object.GetHashCode()
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets (2052, 5)
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2052,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "CommonServiceLocator". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets (2052, 5)
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2052,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "GalaSoft.MvvmLight". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets (2052, 5)
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2052,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "GalaSoft.MvvmLight.Extras". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets (2052, 5)
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2052,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "GalaSoft.MvvmLight.Platform". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Prototype.MyProject\Prototype.MyProject\App.xaml.cs (6, 7)
Prototype.MyProject\Prototype.MyProject\App.xaml.cs(6,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\App.xaml.cs (7, 7)
Prototype.MyProject\Prototype.MyProject\App.xaml.cs(7,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Authentications\LoginViewModel.cs (3, 7)
Prototype.MyProject\Prototype.MyProject\Features\Authentications\LoginViewModel.cs(3,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Configurations\UserPerferenceViewModel.cs (2, 7)
Prototype.MyProject\Prototype.MyProject\Features\Configurations\UserPerferenceViewModel.cs(2,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainDetailViewModel.cs (4, 7)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainDetailViewModel.cs(4,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainMasterViewModel.cs (6, 7)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainMasterViewModel.cs(6,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainMasterViewModel.cs (7, 7)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainMasterViewModel.cs(7,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainView.xaml.cs (3, 7)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainView.xaml.cs(3,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainViewModel.cs (3, 7)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainViewModel.cs(3,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainViewModel.cs (4, 7)
Prototype.MyProject\Prototype.MyProject\Features\Main\MainViewModel.cs(4,7): Error CS0246: The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)
和size_hint
的kivy文档,并阅读有关布局的文档。
https://kivy.org/docs/gettingstarted/layouts.html https://kivy.org/docs/api-kivy.uix.layout.html
如果您仍然被阻止,请发布一个简短的代码,以简单的方式显示您所拥有的内容,并解释您的预期表现如何。