i have a border in View and i need to get it height in ViewModel
i have create view object and try with controller name but its return 0
and i have try this way also object.FindName
OPS_Citation_Pro.View.Common.CheckView obj_chview = new OPS_Citation_Pro.View.Common.CheckView(); //System.Windows.Controls.Border ControlHostElement = obj_chview.ControlHostElement; System.Windows.Controls.Border ControlHostElement = (System.Windows.Controls.Border)obj_chview.FindName("ControlHostElement"); _pnlSched.Width = (int)(ControlHostElement.RenderSize.Width / 2);
any one can help me ?