2018-05-03 19:58:56 +03:00
|
|
|
|
using Windows.UI.Xaml;
|
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
|
|
|
|
namespace Xamarin.Forms.Platform.UWP
|
|
|
|
|
{
|
|
|
|
|
public class AlertDialog : ContentDialog
|
|
|
|
|
{
|
2018-05-04 19:18:31 +03:00
|
|
|
|
public Windows.UI.Xaml.Controls.ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
|
2018-05-03 19:58:56 +03:00
|
|
|
|
|
|
|
|
|
protected override void OnApplyTemplate()
|
|
|
|
|
{
|
|
|
|
|
base.OnApplyTemplate();
|
|
|
|
|
|
|
|
|
|
// The child template name is derived from the default style
|
|
|
|
|
// https://msdn.microsoft.com/en-us/library/windows/apps/mt299120.aspx
|
|
|
|
|
var scrollName = "ContentScrollViewer";
|
|
|
|
|
if (GetTemplateChild(scrollName) is ScrollViewer contentScrollViewer)
|
|
|
|
|
contentScrollViewer.VerticalScrollBarVisibility = VerticalScrollBarVisibility;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|