private void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e) { var point = sfGrid.RowColumnIndexToPoint(new RowColumnIndex(sfGrid.FrozenRowsCount, 0)); frozenView.SetX(point.X); frozenView.SetY(point.Y + (int)sfGrid.RowHeight); }
private void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e) { var per = (dataGrid.Width) / (Resources.DisplayMetrics.Density * 100); dataGrid.Columns[0].Width = per * 30; dataGrid.Columns[1].Width = per * 70; }
private void PreviewGrid_GridLoaded(object sender, GridLoadedEventArgs e) { //SfDataGrid grid = sender as SfDataGrid; //grid.SetBinding(SfDataGrid.ItemsSourceProperty, new Binding() { Source = _vmPreviewEquation.EqPreviewVariables }); int iDbg = 0; }
private void DataGrid_OnGridLoaded(object sender, GridLoadedEventArgs e) { if (IsDeviceConnected()) { LoadDataToGrid(); } }
private void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e) { var point = sfGrid.RowColumnIndexToPoint(new RowColumnIndex(sfGrid.FrozenRowsCount, 0)); frozenView.Frame = new CGRect(0, point.Y + sfGrid.RowHeight, this.Frame.Width, 1); frozenView.BackgroundColor = UIColor.FromRGB(117, 117, 117); this.AddSubview(frozenView); }
private void SfGrid_GridLoaded(object sender, GridLoadedEventArgs e) { // Fix for popup is not shown in OnBoardHelps sample opening. // Popup is not shown initially, Since we have set PopupView Hidden property to false from WillMoveToWindow override for collapsing the view visibility when goes to other window. canCollapseVisibilty = true; sfPopUp.PopupView.Frame = new CGRect(this.Frame.Width - 25, this.Frame.Y, 150, 100); sfPopUp.Show(); }
/// <summary> /// Fired when DataGrid is loaded /// </summary> /// <param name="sender">DataGrid_GridLoaded event sender</param> /// <param name="e">GridLoadedEventArgs of e</param> private void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e) { var point = this.dataGrid.RowColumnIndexToPoint(new RowColumnIndex(this.dataGrid.FrozenRowsCount, 0)); BoxView boxView = new BoxView(); boxView.HeightRequest = 1.0; boxView.BackgroundColor = Color.FromHex("#757575"); boxView.Opacity = 100; this.relativeLayout.Children.Add(boxView, Constraint.Constant(point.X), Constraint.Constant(point.Y + this.dataGrid.RowHeight), widthConstraint: Constraint.RelativeToParent((parent) => { return(parent.Width); })); }
private void SfGrid_GridLoaded(object sender, GridLoadedEventArgs e) { if (MainActivity.isTablet) { sfPopUp.Show((int)(cont.Resources.DisplayMetrics.WidthPixels - (50 * density)), 0); } else { sfPopUp.Show((int)(cont.Resources.DisplayMetrics.WidthPixels - (25 * density)), 0); } }
private void OnGridLoaded(object sender, GridLoadedEventArgs e) { if (Command == null) { return; } var parameter = sender; if (Command.CanExecute(parameter)) { Command.Execute(parameter); } }
private async void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e) { busyIndicator.IsBusy = true; busyIndicator.AnimationType = SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeDoubleCircle; busyIndicator.ViewBoxHeight = 100; busyIndicator.ViewBoxWidth = 100; busyIndicator.Title = (NSString)"Loading..."; View.AddSubview(busyIndicator); await Task.Delay(5000); busyIndicator.IsBusy = false; busyIndicator.Hidden = true; busyIndicator.UserInteractionEnabled = false; }
/// <summary> /// Fired when DataGrid comes in to the View /// </summary> /// <param name="sender">DataGrid_GridLoaded event sender</param> /// <param name="e">DataGrid_GridLoaded events args e</param> private void Datagrid_GridLoaded(object sender, GridLoadedEventArgs e) { this.popupLayout.PopupView.HeightRequest = this.datagrid.Height; this.popupLayout.PopupView.WidthRequest = this.datagrid.Width; if (Device.RuntimePlatform == Device.UWP || Device.RuntimePlatform == Device.Android) { this.popupLayout.Show((double)0, 90); } else if (Device.RuntimePlatform == Device.iOS) { this.popupLayout.Show((double)0, 50); } else { this.popupLayout.Show((double)0, 40); } }
private void Datagrid_GridLoaded(object sender, GridLoadedEventArgs e) { popupLayout.PopupView.HeightRequest = 140; popupLayout.PopupView.WidthRequest = 200; popupLayout.PopupView.AnimationMode = AnimationMode.None; if (Device.RuntimePlatform == Device.UWP) { popupLayout.ShowRelativeToView(datagrid, RelativePosition.AlignTopRight, -275, 80); } else if (Device.RuntimePlatform == Device.iOS) { popupLayout.ShowRelativeToView(datagrid, RelativePosition.AlignTopRight, -225, 120); } else { popupLayout.ShowRelativeToView(datagrid, RelativePosition.AlignTopRight, -225, 80); } AnimateinfoNotificationImage(); }
private void UnitsGrid_GridLoaded(object sender, GridLoadedEventArgs e) { // Expand special items foreach (Group item in unitsGrid.View.Groups) { string gKey = item.Key.ToString(); if ((gKey.IndexOf("recent", StringComparison.OrdinalIgnoreCase) >= 0) || (gKey.IndexOf("Unspecified", StringComparison.OrdinalIgnoreCase) >= 0)) { unitsGrid.ExpandGroup(item); } } //Expand the last group if there is only one Param if (_vmChooseUom.ParamTypes != null && _vmChooseUom.ParamTypes.Count == 1) { Group group = (unitsGrid.View.Groups[unitsGrid.View.Groups.Count - 1] as Group); unitsGrid.ExpandGroup(group); } }
/// <summary> /// Fired when DataGrid comes in to the View /// </summary> /// <param name="sender">DataGrid_GridLoaded event sender</param> /// <param name="e">DataGrid_GridLoaded events args e</param> private void Datagrid_GridLoaded(object sender, GridLoadedEventArgs e) { this.popupLayout.PopupView.ContentTemplate = new DataTemplate(() => { return(this.resizingIllustration); }); if (Device.RuntimePlatform == Device.UWP) { this.popupLayout.Show( this.datagrid.Columns[0].ActualWidth + this.datagrid.Columns[1].ActualWidth - 200, 0); } else if (Device.RuntimePlatform == Device.iOS) { this.popupLayout.Show(this.datagrid.Columns[0].ActualWidth, 80); } else { this.popupLayout.Show(this.datagrid.Columns[0].ActualWidth + this.datagrid.Columns[1].ActualWidth, 40); } this.AnimateResizingIllustrationImage(); this.tappingCount++; }
private void StringsGrid_GridLoaded(object sender, GridLoadedEventArgs e) { bool oldIgnoreEvent = _ignoreEvent; try { _ignoreEvent = true; // Define grid selections stringsGrid.SelectedItems.Clear(); foreach (var item in GroupedStrings) { if (item.IsSelected) { stringsGrid.SelectedItems.Add(item); } } // Expand groups if required foreach (Group group in stringsGrid.View.Groups) { if ((group.Source.Count > 0) && (group.Source[0] is GroupedString row)) { if (_groupExpansions.ContainsKey(row.Group) && _groupExpansions[row.Group]) { stringsGrid.ExpandGroup(group); } } } } catch (Exception ex) { Logging.LogException(ex); throw; } finally { _ignoreEvent = oldIgnoreEvent; } }
private void UnitsGrid_GridLoaded(object sender, GridLoadedEventArgs e) { bool oldIgnoreEvent = _ignoreEvent; try { _ignoreEvent = true; unitsGrid.SelectedItems.Clear(); IList <string> groupsToExpand = new List <string>(); foreach (var item in _vmChooseMultiUom.GetSelectedItems()) { unitsGrid.SelectedItems.Add(item); groupsToExpand.Add(item.Group); } foreach (Group group in unitsGrid.View.Groups) { if ((group.Source.Count > 0) && (group.Source[0] is ChooseMultiUomRowInfo row)) { if (groupsToExpand.Contains(row.Group)) { unitsGrid.ExpandGroup(group); } } } } catch (Exception ex) { Logging.LogException(ex); throw; } finally { _ignoreEvent = oldIgnoreEvent; } }
private void Datagrid_GridLoaded(object sender, GridLoadedEventArgs e) { popupLayout.PopupView.AnimationMode = AnimationMode.None; popupLayout.PopupView.HeightRequest = 200; popupLayout.PopupView.WidthRequest = 400; viewModel.PopupContentTemplate = new DataTemplate(() => { return(resizingIllustration); }); if (Device.RuntimePlatform == Device.UWP) { popupLayout.Show(datagrid.Columns[0].ActualWidth + datagrid.Columns[1].ActualWidth - 200, 0); } else if (Device.RuntimePlatform == Device.iOS) { popupLayout.Show(datagrid.Columns[0].ActualWidth, 80); } else { popupLayout.Show(datagrid.Columns[0].ActualWidth + datagrid.Columns[1].ActualWidth, 40); } AnimateResizingIllustrationImage(); tappingCount++; }
private void datagrid_GridLoaded(object sender, GridLoadedEventArgs e) { DisplayInitialPopup(); }
private void SfGrid_GridLoaded(object sender, GridLoadedEventArgs e) { sfPopUp.PopupView.Frame = new CGRect(this.Frame.Width - 25, this.Frame.Y, 150, 100); sfPopUp.Show(); }
private void CalcGrid_GridLoaded(object sender, GridLoadedEventArgs e) { int iDbg = 0; }