public PostOverlayPage()
        {
            InitializeComponent();
            DataContext = new PostOverlayViewModel();

            _writeCommentMinHeight = PostGrid.RowDefinitions[1].MinHeight;
            _writeCommentMaxHeight = ActualHeight * 0.3;

            SettingsManager.PersistentSettings.CurrentUserChanged += OnCurrentUserChanged;
            ProfileUtils.AvatarChanged += OnAvatarChanged;
        }
        public PostOverlayPage()
        {
            InitializeComponent();
            DataContext = new PostOverlayViewModel();

            _writeCommentMinHeight = PostGrid.RowDefinitions[1].MinHeight;

            _writeCommentMaxHeight  = (int)(ActualHeight * 0.3);
            _writeCommentMaxHeight += 16 - (((int)_writeCommentMaxHeight - _writeCommentMinHeight) % 16);

            WriteComment.MaxHeight = _writeCommentMaxHeight;

            SettingsManager.PersistentSettings.CurrentUserChanged += OnCurrentUserChanged;
        }