wpf - How to search a documentpanel from the itemssource of docklayoutmanager -


i have current code @ moment:

shell:

<dxd:docklayoutmanager x:name="docklayoutmanager" activedockitem="{binding activeselectedview, mode=twoway}" itemssource="{binding dockitemssource, mode=onewaytosource}" >  

this itemssource binded property dockitemssource:

public ienumerable dockitemssource { get; set; } 

and have property activeselectedview should return documentpanel:

private documentpanel _activeselectedview;     public documentpanel activeselectedview     {         { return _activeselectedview; }         set         {             _activeselectedview = value;              raisepropertychangedevent(this, x => x.activeselectedview);          }      } 

my question u guys is, how search documentpanel using itemssource docklayoutmanager? im using mvvm pattern.

greets

to activate dock panel in mvvm manner should bind documentpanel.isactive property corresponding boolean property of viewmodel. , should not bind docklayoutmanager.activedockitem property @ all.

<style targettype="dxd:documentpanel">     ...     <setter property="isactive" value="{binding isactive, mode=twoway}" />     ... </style> 

please refer following example more details: how activate panel via vewmodel


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -