Click here to Skip to main content
15,903,012 members
Home / Discussions / WPF
   

WPF

 
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 
QuestionWhat's your [technical] opinion regarding a communications layer in a multi-tier environment? Pin
Stevie15-Jul-09 23:58
Stevie15-Jul-09 23:58 
QuestionHow to derive a DataTable form a WPF Datagrid Pin
Jacobus0115-Jul-09 23:27
Jacobus0115-Jul-09 23:27 
AnswerRe: How to derive a DataTable form a WPF Datagrid Pin
Pete O'Hanlon15-Jul-09 23:33
mvePete O'Hanlon15-Jul-09 23:33 
GeneralRe: How to derive a DataTable form a WPF Datagrid Pin
Jacobus0115-Jul-09 23:41
Jacobus0115-Jul-09 23:41 
GeneralRe: How to derive a DataTable form a WPF Datagrid Pin
Jacobus0116-Jul-09 0:13
Jacobus0116-Jul-09 0:13 
GeneralRe: How to derive a DataTable form a WPF Datagrid Pin
Pete O'Hanlon16-Jul-09 0:29
mvePete O'Hanlon16-Jul-09 0:29 
Questionhow to add children to canvas from viewmodel Pin
gomsvetri15-Jul-09 21:07
gomsvetri15-Jul-09 21:07 

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.