зеркало из https://github.com/DeGsoft/maui-linux.git
Fix the build error
This commit is contained in:
Родитель
43d2d820c0
Коммит
6acd195ec5
|
@ -777,6 +777,7 @@ namespace Microsoft.Maui.Controls.Compatibility.Platform.UWP
|
|||
UpdateRotation(view, frameworkElement);
|
||||
}
|
||||
|
||||
[PortHandler]
|
||||
static void UpdateVisibility(VisualElement view, FrameworkElement frameworkElement)
|
||||
{
|
||||
frameworkElement.Visibility = view.IsVisible ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
|
|
@ -8,6 +8,11 @@ namespace Microsoft.Maui
|
|||
{
|
||||
public static void UpdateIsEnabled(this FrameworkElement nativeView, IView view) =>
|
||||
(nativeView as Control)?.UpdateIsEnabled(view.IsEnabled);
|
||||
|
||||
public static void UpdateIsVisible(this FrameworkElement nativeView, IView view)
|
||||
{
|
||||
nativeView.Visibility = view.IsVisible ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
|
||||
public static void UpdateBackgroundColor(this FrameworkElement nativeView, IView view)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче