blob: 524463f64c46c4006de315553d5628d82484b469 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System.Threading.Tasks;
using Windows.UI.ViewManagement;
namespace Xamarin.Forms.Platform.WinRT
{
internal sealed class WindowsPhonePlatform
: Platform
{
public WindowsPhonePlatform (Windows.UI.Xaml.Controls.Page page)
: base (page)
{
_status = StatusBar.GetForCurrentView ();
_status.Showing += OnStatusBarShowing;
_status.Hiding += OnStatusBarHiding;
}
readonly StatusBar _status;
void OnStatusBarHiding (StatusBar sender, object args)
{
UpdatePageSizes ();
}
void OnStatusBarShowing (StatusBar sender, object args)
{
UpdatePageSizes ();
}
}
}
|