Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Controller properties in Viewmodel

$
0
0

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 ?



common:අගේ නැති, අන්‍යසාධාරණ, අවිරල, ග්‍රාම්‍ය, තුච්ඡ, නිතර සිදු වන, ප්‍රසිද්ධ, පොදු, පොදු දෙය, පොදු බිම, බැවහර, ව්‍යවහාරයෙහි පවත්නා, සාධාරණ, සාමාන්‍ය, සාමූහික, සාර්ව, සුලබ, සුලභ, හවුල්, හීන

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>