lsirikh / ProperyExplorerTest

에로로님의 예제를 구현 및 응용해보자
0 stars 0 forks source link

OnPropertyChange 기능이 안되는 것 같습니다만... #10

Closed lsirikh closed 2 years ago

lsirikh commented 2 years ago

에로로님

MainContainerViewModel.cs에서

SelectedShape != null 이면,

IsPropertyShow라는 property를 이용해서, PropertyWindow를 Visible 하게 하거나 Collapse하게 바꾸는 역할을 만들어주려고 하는데요.

public BaseShapeViewModel SelectedShape
        {
            get => _selectedShape;
            set
            {
                this.SetProperty(ref this._selectedShape, value);

                if (_selectedShape == null)
                    _isPropertyShow = false;

               중략...
            }
        }

_isPropertyShow = false; 에 의해 OnPropertyChange와 같은 갱신이 일어나야되는 것 같은데 갱신이 발생하지 않습니다.

혹시 시간되시면 검토 부탁드립니다.

(참고로 제가 내일부터 출장이라 답변이 좀 늦어질 수 있습니다. ㅠㅠ)

감사합니다~!!

lsirikh commented 2 years ago

에로로님 OnPropertyChange 관련 내용은 해결했습니다.

감사합니다.