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); } }
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(); } } }