cab


SCSF: display view from another view against button click


i am facing one problem in SCSF.
I have two workspaces
MdiWorkspace
DeckWorkspace
i have two views in a module
Viewer (display in mdiworkspace)
Property Viewer (in deckworkspace)
in Viewer i have a button in toolbar whose purpose is to display PropertyViewer (another View).
how can i display this PropertyViewer in deckworkspace agaist button click event.
NOTE: i am not using Command[CommandName].AddInvoker(control, "click:) and CommandHandler
I'm going to assume your toolbar sits in a SmartPart that implements the MVP pattern. Have the button click event handler in the SmartPart fire an event that its presenter will handle. Your presenter code would look like this:
// Presenter code
protected override void OnViewSet()
{
this.View.ToolbarButtonClick += View_ToolbarButtonClick;
}
public void View_ToolbarButtonClick(object sender, EventArgs e)
{
// remove the handler so the property viewer
// will only be added the first time
this.View.OnToolbarButtonClick -= View_ToolbarButtonClick;
var propertyView = new PropertyViewer();
this.WorkItem.Workspaces[WorkspaceNames.MyDeckWorkspace].Show(propertyView);
}

Related Links

How to add more then one files in the cab using makecab
SCSF: display view from another view against button click
Switching Modules in Composite Application Block
Is it possible to display a modal window in SCSF application at the center of the screen

Categories

HOME
oop
gcc
twitter-bootstrap
jquery-plugins
opc-ua
css-selectors
android-webview
webpack-dev-server
activejdbc
gcloud
digital
core-data
tracking
repeater
swift3.1
jinja2
pylint
amazon-data-pipeline
web-parts
beacon
summernote
polybase
angular2-pipe
pushbullet
rancher
android-cursorloader
ballerinalang
adobe-captivate
formtastic
cqlsh
2checkout
edsdk
loopback
kubectl
qt-designer
visual-prolog
node-soap
traitsui
maven-2
multi-user
azure-storage-files
outlook-2010
redhat-brms
ngrok
mediastream
java-5
intervention
bootstrap-carousel
serverless-architecture
easyquery
django-tables2
openidm
audio-fingerprinting
fluent-nhibernate-mapping
universe
virtualenvwrapper
altova
sprockets
supervised-learning
mod
dynamics-nav
recode
transbase
cyberduck
polarion
system.diagnostics
attiny
sony-xperia
method-overloading
sync
tigase
parsefloat
xts
parallel-port
triplestore
flask-mongoengine
google-oauth-java-client
caroufredsel
playing-cards
record-locking
dd4t
servicemanager
biztalk-deployment
mail-gem
stl-algorithm
isgl3d
xpolog
symfony-1.2
s60
conditional-operator
browser-state
uccapi
mdd
qlibrary
disk-based
unauthorized

Resources

Encrypt Message