Example #1
0
        private static void OnDataPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            DashBoardView binding = bindable as DashBoardView;

            EbDataSet ds = (EbDataSet)newValue;

            if (ds != null)
            {
                binding.BindValues(ds);
            }
        }
Example #2
0
        private static void OnDashBoardPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            DashBoardView binding = bindable as DashBoardView;

            EbMobileDashBoard dash = (EbMobileDashBoard)newValue;

            if (dash != null)
            {
                binding.Container.Spacing = dash.Spacing;

                if (binding.DashBoard.ChildControls != null)
                {
                    binding.controls = dash.ChildControls;
                    binding.DrawTemplate();
                }
            }
        }