29 строки
644 B
C#
29 строки
644 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
using Xamarin.Forms.CustomAttributes;
|
|
using Xamarin.Forms.Internals;
|
|
|
|
namespace Xamarin.Forms.Controls
|
|
{
|
|
#if APP
|
|
[Preserve (AllMembers = true)]
|
|
[Issue (IssueTracker.Github, 1741, "Switch.IsEnabled = false does not disable a switch when switch is defined in XAML", PlatformAffected.WinPhone)]
|
|
public partial class Issue1741 : ContentPage
|
|
{
|
|
public Issue1741 ()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void Anonymous_Toggled (object sender, EventArgs e)
|
|
{
|
|
chkAnon.IsEnabled = !chkAnon.IsEnabled;
|
|
}
|
|
}
|
|
#endif
|
|
}
|