Click here to Skip to main content
15,898,987 members
Home / Discussions / WPF
   

WPF

 
QuestionBrain hits wall - WPF Help Please Pin
Rei Roldan19-Jun-08 7:54
Rei Roldan19-Jun-08 7:54 
AnswerRe: Brain hits wall - WPF Help Please Pin
Gideon Engelberth19-Jun-08 10:12
Gideon Engelberth19-Jun-08 10:12 
GeneralRe: Brain hits wall - WPF Help Please Pin
Rei Roldan19-Jun-08 10:21
Rei Roldan19-Jun-08 10:21 
GeneralRe: Brain hits wall - WPF Help Please Pin
Paul Conrad21-Jun-08 4:05
professionalPaul Conrad21-Jun-08 4:05 
QuestionWPF Navigation Pin
BlitzPackage18-Jun-08 8:44
BlitzPackage18-Jun-08 8:44 
AnswerRe: WPF Navigation Pin
Pete O'Hanlon18-Jun-08 8:52
mvePete O'Hanlon18-Jun-08 8:52 
GeneralRe: WPF Navigation Pin
BlitzPackage18-Jun-08 9:00
BlitzPackage18-Jun-08 9:00 
GeneralRe: WPF Navigation Pin
Pete O'Hanlon18-Jun-08 9:11
mvePete O'Hanlon18-Jun-08 9:11 
Off the top of my head (so I apologise now if it's not 100% accurate as I haven't got Visual Studio open right now):
using (StreamReader reader = new StreamReader("myControl.xaml"))
{
  DependencyObject root = XamlReader.Load(reader.BaseStream) as DependencyObject;
  if (root != null)
  {
    ContentControl cont = FindName("display") as ContentControl;
    cont.Content = root;
  }
}
If you create the display page as a Frame, then you can load into this without any trouble. For instance:
<Window... usual Xaml declarations ..>
  <Grid x:Name="myGrid">
    <Grid.RowDefinitions>
      <RowDefinition />
    </Grid.RowDefinitions>
    <Grid.ColDefinitions>
      <ColDefinition />
      <ColDefinition />
    </Grid.ColDefinitions>
    <Frame Grid.Row="0" Grid.Column="1" x:Name="display" />
  </Grid>
</Window>


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: WPF Navigation Pin
BlitzPackage19-Jun-08 11:59
BlitzPackage19-Jun-08 11:59 
QuestionHow to link silverlight application created using Blend in asp.net using vs2008? Pin
katelva17-Jun-08 8:04
katelva17-Jun-08 8:04 
AnswerRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
Michael Sync17-Jun-08 17:10
Michael Sync17-Jun-08 17:10 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
katelva18-Jun-08 18:22
katelva18-Jun-08 18:22 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
Michael Sync20-Jun-08 2:03
Michael Sync20-Jun-08 2:03 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
katelva24-Jun-08 8:34
katelva24-Jun-08 8:34 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
Michael Sync24-Jun-08 14:52
Michael Sync24-Jun-08 14:52 
QuestionMultiple ItemTemplates in a ListBox Pin
dlarkin7716-Jun-08 1:35
dlarkin7716-Jun-08 1:35 
AnswerRe: Multiple ItemTemplates in a ListBox Pin
Christian Graus16-Jun-08 2:18
protectorChristian Graus16-Jun-08 2:18 
AnswerRe: Multiple ItemTemplates in a ListBox Pin
Gideon Engelberth16-Jun-08 7:37
Gideon Engelberth16-Jun-08 7:37 
AnswerRe: Multiple ItemTemplates in a ListBox Pin
dlarkin7717-Jun-08 0:25
dlarkin7717-Jun-08 0:25 
AnswerRe: Multiple ItemTemplates in a ListBox Pin
dlarkin7717-Jun-08 2:46
dlarkin7717-Jun-08 2:46 
Question[WPF]why Image not support Animation ? Pin
KornZhang15-Jun-08 23:23
KornZhang15-Jun-08 23:23 
AnswerRe: [WPF]why Image not support Animation ? Pin
Christian Graus16-Jun-08 2:18
protectorChristian Graus16-Jun-08 2:18 
QuestionDynamically set properties Pin
Christian Graus15-Jun-08 9:57
protectorChristian Graus15-Jun-08 9:57 
AnswerRe: Dynamically set properties Pin
Pete O'Hanlon15-Jun-08 10:50
mvePete O'Hanlon15-Jun-08 10:50 
GeneralRe: Dynamically set properties Pin
Christian Graus15-Jun-08 11:16
protectorChristian Graus15-Jun-08 11:16 

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.