///

        private double GetHeight(int count)
        {
            var    minHeight = count * GroupedListView.GroupedListViewCellHeight + GroupedListView.GroupedListViewPadding;
            double maxHeight = SplitView.Instace().Height * 0.8;

            return(maxHeight < minHeight ? maxHeight : minHeight);
        }
Пример #2
0
        ///-------------------------------------------------------------------------------------------------

        ///
        #region Private Functions
        ///-------------------------------------------------------------------------------------------------
        ///
        /// ------------------------------------------------------------------------------------------------
        /// Name		Btn_Done
        ///
        /// <summary>	handles a click on the done button, it navigates to its previous page.
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// ------------------------------------------------------------------------------------------------
        ///
        private void Btn_Done(object sender, EventArgs e)
        {
            try
            {
                SplitView.Instace().Navigation.PopModalAsync();
            }
            catch (Exception ex)
            {
                LogTracking.LogTrace(ex.ToString());
            }
        }
Пример #3
0
 void ShowHelpScreen()
 {
     SplitView.Instace().Navigation.PushModalAsync(AppContext.AppContext.HelpPageInstance);
 }
Пример #4
0
 public new async Task <string> DisplayActionSheet(string title, string cancel, string destruction, string[] button)
 {
     return(await LockScreen.ToDisplayActionSheet(SplitView.Instace(), title, cancel, destruction, button));
 }
Пример #5
0
 public new static async Task <bool> DisplayAlert(string title, string message, string accept, string cancel)
 {
     return(await LockScreen.ToDisplayAlert(SplitView.Instace(), title, message, accept, cancel));
 }