ChatterBox.Client.Presentation.Shared.Services.LayoutService.UpdateLayout C# (CSharp) Method

UpdateLayout() public method

public UpdateLayout ( double height, double width ) : void
height double
width double
return void
        public void UpdateLayout(double height, double width)
        {
            if (ApplicationView.GetForCurrentView().Orientation == ApplicationViewOrientation.Landscape)
            {
                LayoutType = width > 800 ? LayoutType.Parallel : LayoutType.Overlay;
            }
            else
            {
                LayoutType = LayoutType.Overlay;
            }
        }
    }