Click here to Skip to main content
15,904,416 members

Comments by Garethb_83 (Top 5 by date)

Garethb_83 3-Feb-13 18:41pm View    
Thanks very much. Will do some googling now for setting the first/default content. I cant seem to grap it from your C#. Thanks again!
Garethb_83 3-Feb-13 18:36pm View    
I have and implemnted in my project. Working great. The only thing i'm struggling with is setting the default view onload.
Garethb_83 3-Feb-13 18:05pm View    
Thats super. I'm understanding whats going on (Sort of) but i have only been learning VB.. Can I set the default source of the content control within the XAML then adjust the view by the button... Is it fairly easy to convert to VB?
Garethb_83 3-Feb-13 16:46pm View    
Hi there, this is the first time i have used forums.. Tried to put code in the comment box which Idon't think it supports. I have reposted as a solution. Not sure If I have done the right thing but its displaying now below.
Garethb_83 3-Feb-13 16:43pm View    
Deleted
Thanks you for our help. I have read the first link earlier today. I think I was struggling with what i needed to search for mainly. I will certainly ready the other links..

Re the contect control, Do you have a guide which would be looking at 2 pages and navigating to these embeded in the main window?

I have the following Currently

<window x:class="MainScreen"
="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="MainWindow" height="768" width="1366">
<grid>
<dockpanel lastchildfill="True">
<textblock fontsize="50" textwrapping="Wrap">THIS IS WHERE I NEED TO POSITION THE MAIN CONTENT. tHIS WILL CHANGE DEPENDING ON WHAT MENU IS SELECTED FROM THE SIDE BAR


<dockpanel lastchildfill="False">
<border dockpanel.dock="Right" width="100" margin="0" opacity=".9">
<border.background>
<LinearGradientBrush EndPoint="0.504,1.5" StartPoint="0.504,0.20">
<gradientstop color="#FF4B4343" offset="0">
<gradientstop color="#FFACB0B0" offset="0.567">
</LinearGradientBrush>

<stackpanel margin="20">
<Button Margin="0,10,0,0" Width="50" Height="50">Menu 1</Button>
<Button Margin="0,10,0,0" Width="50" Height="50">Menu 2</Button>
<Button Margin="0,10,0,0" Width="50" Height="50">Menu 3</Button>
<Button Margin="0,10,0,0" Width="50" Height="50">Menu 4</Button>
<Button Margin="0,10,0,0" Width="50" Height="50">Menu 5</Button>


<border dockpanel.dock="Bottom" padding="20" margin="20" width="300" horizontalalignment="Left" cornerradius="10" removed="Black" opacity="0.7">
<textblock fontsize="50" foreground="White" textalignment="Center">10:50