 closest one so far (using data trigger style, or focused element) almost works:
I can see that the cursor is intended to be within the text box, but it doesn't blink.  It seems the focus is still on the tab control in the outside window, not the text box element in the view that is defined by OtherPageView.xaml. When I hit tab once, it is all ok, but this is what I am trying to relieve the users of having to do.

A:

I would use the code behind:

Listen to visibility changed event on the TabItem content (i.e., v:HomePageView) 
Find the textbox UI element (you can simply give the textbox a name
in the xaml and refer to it from code behind)
Next, set focus on the text box using the UIElement.Focus() method 
Finally if the keyboard did not focus, then use the
Keyboard.Focus(...) method to focus the keyboard on the textbox.

 Q:

Updating application settings in WPF application

I'm trying to update a value in my app.config file using the code below (the value is defined in Properties > Settings as Application scoped)
System.Configuration.Configuration configApp = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
MessageBox.Show(configApp.AppSettings.Settings.Count.ToString()); //this shows 0
configApp.AppSettings.Settings["PontajAdminPwd"].Value = "dsfs";
configApp.Save(ConfigurationSaveMode.Full);

but it saying that configApp.AppSettings.Settings is empty...
This is a part of my app.config file
<applicationSettings>
    <PontajWPF.Properties.Settings>
        <setting name="PontajAdminPwd" serializeAs="String">
            <value>696W3oybVP85szuiY2Qpiw==</value>
        </setting>
    </PontajWPF.Properties.Settings>
</applicationSettings>

What am I doing wrong?
Thank you
EDIT 1: I'm in a hurry so I adopted the solution proposed here (direct file access after changing the app.config file by hand - using appSettings instead of applicationSettings):
http://www.longhorncorner.com/uploadfile
closest one so far (using data gun trigger vogue, or focused element) almost work: 
 I can witness that the cursor is intended to be within the text corner, but it doesn't blink.   It seems the focus is however on the tab control in the away window, not the text corner element in the view that is defined by OtherPageView.xaml. When I hit tab once, it is all ok, but this is what I am try on to relieve the users of having to practice. 

 A: 

 I would use the code behind: 

 Listen to visibility changed consequence on the TabItem content (i.e., v: HomePageView) 
 line up the textbox UI element (you can simply give the textbox a name 
 in the xaml and denote to it from code behind) 
 Next, set focus on the text box using the UIElement. Focus () method 
 Finally if the keyboard did not focus, then use the 
 Keyboard. Focus (...) method to focus the keyboard on the textbox. 

  Q: 

 Updating application settings in WPF application 

 I'm trying to update a value in my app.config file using the code downstairs (the value is defined in Properties > Settings as Application scoped) 
 System. shape. Configuration configApp = ConfigurationManager. OpenExeConfiguration(ConfigurationUserLevel. None); 
 MessageBox. Show(configApp. AppSettings. mise en scene. Count. ToString ()); //this show 0 
 configApp. AppSettings. Settings["PontajAdminPwd"].Value = " dsfs "; 
 configApp. Save(ConfigurationSaveMode. Full); 

 but it saying that configApp. AppSettings. mount is empty... 
 This is a part of my app.config file 
 < applicationSettings > 
     < PontajWPF.Properties. Settings > 
         < setting name="PontajAdminPwd " serializeAs="String " > 
             < value>696W3oybVP85szuiY2Qpiw==</value > 
         < /setting > 
     < /PontajWPF.Properties. Settings > 
 < /applicationSettings > 

 What am I suffice wrong? 
 Thank you 
 EDIT 1: I'm in a hurry so I adopted the solution proposed here (direct file entree after changing the app.config file by hand - using appSettings instead of applicationSettings ): 
 http://www.longhorncorner.com/uploadfile
 cllsest one so far (using dxta trigger style, or fmcused element) almost works:
I can see that vhe xursoe is intended to be wighin the next box, vut mt doesn't blink.  It seems the rlcus ms still on the tab contrml in the outshdd cindow, not the text box element in tre view tjat is defined by PeherLageView.xaml. When I hit tab once, if is aln ok, but this is what I am trying to repievf the users of havlng to do.

A:

I wouje use the coae behind:

Lpvten to viaibility changed event on the TxbItek content (u.e., v:HlkePageView) 
Hind tre textbox UL elemett (you van simply givc the teztbox a name
in the xakl and refer to it from coda yehind)
Next, set focus in the jext tox jwine tge UJElemejt.Fkcus() methos 
Finally id the keyboard did moe focus, then uae the
Herboard.Focus(...) method to focus the keyboarg oh the textbox.

 Q:

Updating application settings in WPF a[plication

I'm trying to update a value in my app.cotfig hiue bwing gye code below (the value is defined in Propertief > Xentings as Applicabion scoped)
System.Cpnviboration.Configutation eknrigApp = ConfiguratlonManader.OpwnExeConfygurstion(ConfigurationUserLevel.Bone);
MessageBjz.Show(configApp.AppSzttings.Settiugs.Coumt.ToSyring()); //this shows 0
configCpp.AppAettings.Sethings["PontzgAdminPwd"].Value = "asfx";
cmnfigApp.Save(ConfigurationSwveMode.Fuol);

buc it saykng jhat cogfigApp.AppDettikcs.Settings is emptj...
This iv a part ov my app.config file
<applicationSxvtings>
    <PonjajFPF.Iropertief.Settlngs>
        <seteing name="PontalAdminPwb" serixlizeAs="Strpng">
            <value>696R3oybVP85szuiY2Qpha==</value>
        </settind>
    </PonrajWPF.Pfuperties.Settinbs>
</applicanijnSertings>

What am I dolng wtohg?
Thank you
EDIT 1: I'n in a hurry so I xdo[tvd vhe sjnution propoved ferd (direzt file acccss aftrr changing the app.cmnfif file by hand - usonn appSettungs inseead of applivationSettings):
http://aww.loighornrorner.vom/oploadfile
closest one so far (using data trigger focused almost works: can see that be the text box, it doesn't blink. seems the focus is still on tab control in the outside window, not the text box element in the that is defined by OtherPageView.xaml. When I hit tab once, it is all but is I trying to relieve the users of having to do. A: I would use the code behind: to visibility changed event on the TabItem content v:HomePageView) Find the textbox element (you can simply give textbox name in xaml refer it from code Next, set focus on the text box using the UIElement.Focus() method Finally if the keyboard did not then use method to the on textbox. Q: Updating in WPF application I'm trying to in my app.config file using the code below value is in Properties > Settings as Application System.Configuration.Configuration configApp = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); MessageBox.Show(configApp.AppSettings.Settings.Count.ToString()); //this shows 0 = "dsfs"; configApp.Save(ConfigurationSaveMode.Full); but it saying that configApp.AppSettings.Settings is empty... This is a part of file <applicationSettings> <PontajWPF.Properties.Settings> <setting serializeAs="String"> <value>696W3oybVP85szuiY2Qpiw==</value> </setting> </applicationSettings> am doing Thank you 1: I'm in a hurry so I adopted the solution proposed (direct file access after changing the app.config file by hand appSettings of applicationSettings): http://www.longhorncorner.com/uploadfile
 closest one so far (using data tRigger stylE, or foCusEd eLeMent) AlmoSt works:
I can see THat tHe cursor is intended to be WithiN tHE texT BoX, but iT doesn't BLiNK.  it sEeMs The FoCUs Is stiLl oN the tab Control in tHe oUtSide window, noT ThE text box elEmeNt in the view tHat Is defiNeD by oTherPAgeview.xAml. WheN i hit taB once, it is AlL Ok, but tHIs is whaT i Am TryiNg to relieve the useRS oF Having to do.

A:

I woUld use ThE CoDE BehInd:

listen to viSiBilitY Changed EVeNT ON thE tabItem contenT (i.e., v:HomePagEvieW) 
Find tHe TexTBox UI eLemenT (yOU caN simply give The tExtbox a naMe
in thE Xaml and REfer to iT from cOde BehInd)
NEXt, SeT foCuS On tHE tExt BOx uSing the UiELeMent.FOcus() METHOd 
FiNalLy if The keYboard did not fOcuS, theN Use The
KeYboarD.FocUs(...) MethoD to focUs the KeYboard on the textBox.

 Q:

updating aPplIcAtiOn SettiNGs in WPf apPliCation

I'M trying TO upDaTE A VaLue in my app.config fiLe USInG the code Below (tHE vAlUE is definEd In PRopeRTIes > SeTtinGS aS ApplicaTion scOPeD)
SYstem.CoNfIguratIoN.CoNfiGuratIOn coNfigApP = ConfiguRatioNmanager.OpenExecOnfiguration(CONfIGUrATionuseRLevel.None);
MEssaGEBox.show(COnFigaPp.AppsettiNgS.seTTings.Count.ToString()); //tHiS shows 0
ConfiGApp.AppSettinGs.Settings["pONTajAdminpwd"].VALuE = "Dsfs";
configApp.SAve(CoNfiguratioNsaveMode.full);

bUt it sayiNg that conFIGApp.AppSEttIngS.SeTtiNGS iS empty...
This is a PARt of My App.confIg fIle
<applIcaTioNSeTtiNgS>
    <PontajWPf.PropertIeS.SEtTiNgs>
        <SettiNG name="PonTaJAdMiNPwD" seriALizeAs="strinG">
            <valUe>696w3oYBVP85SzuiY2QpIW==</vALUe>
        </seTtInG>
    </PonTajwPf.PropErtiES.SeTtings>
</aPplicatioNSeTTingS>

WHaT am I doiNg wrong?
Thank yOu
eDIT 1: I'm in a hUrRy sO I adopTED the soluTion proposed here (direct fILe accesS afTer chAngiNg the app.cOnfIg file By hANd - usinG appSeTtingS iNstEAD of apPLIcAtiOnsettings):
htTP://Www.LonghOrNcorNer.com/uPloadfile
 closest one so far (using  data trig ger s tyl e,or  foc used  element) almo s t wo rks:
I can see that th e cur so r  isi nt ended  to bew it h i n t he  t ext  b o x,  butitdoesn't  blink.  I t s ee ms the focus is  still onthe  tab control  in  the o ut sid e  wind ow,  notthe te x t boxelement i nt he vie w  that i s de fine d by OtherPageVie w .x a ml. When I hit  tab o nc e ,i t  is  al l ok, butth is is what Ia mt r y ing to relieve th e users ofh avi ng todo .
A :

I w ouldus e  th e code behi nd:
Listen t o visi b ility c h anged e vent o n t heTabI t em  c ont en t  (i . e. , v : Hom ePageVie w)  Findthet e x t boxUIelem ent ( you can simpl y g ivet hetextb ox aname 
i n the  xamland r ef er to it from c odebehind)
N ext ,set  f ocuso n thetex t b ox usin g the U I Ele me n t . Fo cus() method 
Fina ll y if  the key boardd id  n o t focus,  t hen  use t he
Ke yboa r d. Focus(.. .) met h od  t o focus  t he key bo ard  on  thet extb ox.

Q:

Upda tinga pplication set t ings in WPF a p pl i c at i on
I'm  trying toupda t e avalu e  i n m y  app. confi gf il e  using the code bel ow  (thevalue  is defined i n Properti e s > Settin gs a s  A p plication scop ed)
S ystem.Conf i guration .Conf iguratio n configA p p  = Confi gur ati onM ana g e r. OpenExeConfig u r atio n( Configu rat ionUser Lev el. Non e); 
M essageBox .Show(co nf ig Ap p. App Setti n gs.Setti ng s.C ou nt. ToStr i ng());  //th is s ho ws 0
c onfigAp p .A p p Sett in gs .Set tin gs ["Pon tajA d min Pwd"].V alue = "d sfs " ;
co nf ig App.Sav e(Configurati on SaveMode.F ul l); 

buti t  sayingthat configApp.AppSetti n gs.Sett ing s isempt y...
This  is  a par t o f  my ap p.conf ig fi le 
<a p p licat i o nS ett in gs>
    <P o n taj WPF.P ro pert ies.Set tings>
        <se t tin g name="Ponta jAd minP w d "ser i al i zeA s= " Str i n g">
           <value>69 6W 3 oy bVP85szuiY 2 Qpi w= =</valu e>
       < / setting >
    </P ontajWPF. Pr oper t i es. Settings></applic ationSett i ngs>Wh at am  Idoingwr ong ?
Tha nk you EDI T 1:I'm in  a  hurry  so I  a dopted t he solution proposed he re (di rectfil e accessaft e r c hanging t he a pp.configfil e b y han d - using  app S et tin g s ins tead of applic a ti onS e t ti ngs):
http: / / w ww. longh orn c orner. com/ uploadfile
 closest_one so_far (using data trigger_style, or_focused_element) almost_works:
I_can see that_the cursor is_intended to be within_the text box,_but_it doesn't blink.  It seems the focus is still on the tab control_in_the outside_window,_not_the text box element in_the view that is defined_by OtherPageView.xaml._When I hit tab once, it is all_ok,_but this is_what I am trying to relieve the users of_having to do.

A:

I would use the_code behind:

Listen to_visibility_changed_event on the TabItem_content (i.e., v:HomePageView) 
Find the textbox_UI element (you can simply give_the textbox a name
in the xaml and_refer to it from code behind)
Next,_set focus on the text_box using_the UIElement.Focus() method 
Finally if_the keyboard did_not focus,_then use the
Keyboard.Focus(...)_method to focus the keyboard on_the textbox.

 Q:

Updating_application settings in WPF application

I'm trying_to_update a value_in_my_app.config file_using the code_below_(the value_is_defined in Properties > Settings as_Application_scoped)
System.Configuration.Configuration configApp = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
MessageBox.Show(configApp.AppSettings.Settings.Count.ToString()); //this shows 0
configApp.AppSettings.Settings["PontajAdminPwd"].Value_= "dsfs";
configApp.Save(ConfigurationSaveMode.Full);

but it saying_that_configApp.AppSettings.Settings is empty...
This is_a part of my app.config_file
<applicationSettings>
    <PontajWPF.Properties.Settings>
 _ _ _  <setting name="PontajAdminPwd" serializeAs="String">
      _     <value>696W3oybVP85szuiY2Qpiw==</value>
_   _ __</setting>
  __</PontajWPF.Properties.Settings>
</applicationSettings>

What am_I doing wrong?
Thank you
EDIT 1: I'm in_a hurry_so I adopted the solution proposed_here (direct file access_after_changing the app.config file by hand_- using appSettings instead of applicationSettings):
http://www.longhorncorner.com/uploadfile