Exemplo n.º 1
0
        protected override void OnResized(ResizedEventArgs e)
        {
            base.OnResized(e);

            /* ContentRegion defaults to match our control size until one is manually set,
             * so we do squeeze in OnPropertyChanged for it if the control hasn't had a
             * ContentRegion specified and then resizes */
            if (!_contentRegion.HasValue)
            {
                OnPropertyChanged(nameof(this.ContentRegion));
            }
        }
Exemplo n.º 2
0
 private void ChildOnResized(object sender, ResizedEventArgs e)
 {
     this.Invalidate();
 }