Click here to Skip to main content
15,918,742 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII17-Jul-09 16:56
fjparisIII17-Jul-09 16:56 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (SOLVED) Pin
fjparisIII18-Jul-09 10:49
fjparisIII18-Jul-09 10:49 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (NOT SOLVED after all, sigh...) Pin
fjparisIII18-Jul-09 12:26
fjparisIII18-Jul-09 12:26 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (SOLVED) Pin
samip shrestha29-Nov-09 18:59
samip shrestha29-Nov-09 18:59 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (SOLVED) Pin
fjparisIII30-Nov-09 12:49
fjparisIII30-Nov-09 12:49 
AnswerRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
Mark Salsbery19-Jul-09 8:31
Mark Salsbery19-Jul-09 8:31 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII19-Jul-09 13:25
fjparisIII19-Jul-09 13:25 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII19-Jul-09 13:29
fjparisIII19-Jul-09 13:29 
QuestionTwo-way binding problem Pin
Ravadre17-Jul-09 9:42
Ravadre17-Jul-09 9:42 
AnswerRe: Two-way binding problem Pin
User 27100918-Jul-09 5:21
User 27100918-Jul-09 5:21 
GeneralRe: Two-way binding problem Pin
Ravadre18-Jul-09 5:56
Ravadre18-Jul-09 5:56 
GeneralRe: Two-way binding problem Pin
User 27100918-Jul-09 6:04
User 27100918-Jul-09 6:04 
GeneralRe: Two-way binding problem Pin
Ravadre18-Jul-09 6:10
Ravadre18-Jul-09 6:10 
GeneralRe: Two-way binding problem Pin
User 27100918-Jul-09 6:14
User 27100918-Jul-09 6:14 
GeneralRe: Two-way binding problem Pin
Ravadre18-Jul-09 6:27
Ravadre18-Jul-09 6:27 
I think we need a 'reset', cause I'm a bit lost in our discussion as well Smile | :) .

So:
1. Not, I do not have any problems with code not working, I'm just referring to your statement, that I could throw out XManager from resources.
2. Let's consider such code (pseudo-xaml):

<Window>
  <Window.Resources>
    &lt;local:XManager x:Key="xManager"/&gt;
  </Window.Resources>
  <Grid DataContext="{Binding Source={StaticResource xManager}}">
    ...
    <TextBox Text="{Binding Mode=TwoWay, Path=ActiveSession.InputText}" />
  </Grid>
</Window>


This is a simplified situation of what I have right now in my code. Referring to your post, I could throw out xManager from resources -> this implies that I create instance of the XManager in the code, fe. in the Window ctor; my question is then, how I could refer to such an instance in XAML in DataContext, and if it's not easy / possible, what's the advantage of throwing out xManager from resources.

Also, inside a code I did something like this:
XManager xMgr;
public MainWindow()
{
  InitializeComponent();
  xMgr = (XManager)FindResource("xManager");


So basically, I do have a straightforward access to this instance from a code.
GeneralRe: Two-way binding problem Pin
User 27100918-Jul-09 6:34
User 27100918-Jul-09 6:34 
GeneralRe: Two-way binding problem Pin
Ravadre18-Jul-09 7:15
Ravadre18-Jul-09 7:15 
QuestionMessage Removed Pin
16-Jul-09 9:27
professionalN_tro_P16-Jul-09 9:27 
AnswerRe: Visibiltiy Collapse issues Pin
User 27100918-Jul-09 5:29
User 27100918-Jul-09 5:29 
GeneralMessage Removed Pin
20-Jul-09 6:15
professionalN_tro_P20-Jul-09 6:15 
GeneralRe: Visibiltiy Collapse issues Pin
User 27100920-Jul-09 16:51
User 27100920-Jul-09 16:51 
QuestionWhat causes an Expander to expand in the designer Pin
Luke Edwards16-Jul-09 2:33
Luke Edwards16-Jul-09 2:33 
AnswerRe: What causes an Expander to expand in the designer Pin
Christian Graus16-Jul-09 7:17
protectorChristian Graus16-Jul-09 7:17 
AnswerRe: What causes an Expander to expand in the designer Pin
Mark Salsbery16-Jul-09 7:50
Mark Salsbery16-Jul-09 7:50 
GeneralRe: What causes an Expander to expand in the designer Pin
Luke Edwards21-Jul-09 5:42
Luke Edwards21-Jul-09 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.