Click here to Skip to main content
15,895,256 members

Comments by jobyjames (Top 6 by date)

jobyjames 2-Feb-13 1:30am View    
I am solve this problem with Creating a Custom Control Inherit from Page. Now Page will work in Silverlight and WPF Application. I don't now this way is proper or not, please give Suggestions for me. i replace this code (navigation:Page from Silverlight and using my Custom Control) Now page is working in both Application with code Sharing.
jobyjames 21-Feb-12 4:37am View    
in the window
<grid>
<Label Content="Slider Value" Margin="77,35,132,250" />
<textbox height="23" margin="79,62,99,0" name="textBox1" verticalalignment="Top" text="{Binding ElementName=slider1, Path=Value}">
<slider height="22" margin="79,10,99,0" name="slider1" verticalalignment="Top">
<Frame Margin="0,101,1,7" x:Name="frameMain" JournalOwnership="OwnsJournal" NavigationUIVisibility="Hidden">
</Frame>
jobyjames 21-Feb-12 4:35am View    
Deleted
<window x:class="WpfApplication76.MainWindow"
="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="MainWindow" height="350" width="525">

<grid>
<Label Content="Slider Value" Margin="77,35,132,250" />
<textbox height="23" margin="79,62,99,0" name="textBox1" verticalalignment="Top" text="{Binding ElementName=slider1, Path=Value}">
<slider height="22" margin="79,10,99,0" name="slider1" verticalalignment="Top">
<Frame Margin="0,101,1,7" x:Name="frameMain" JournalOwnership="OwnsJournal" NavigationUIVisibility="Hidden">
</Frame>


jobyjames 21-Feb-12 4:34am View    
Deleted
my full Code

<window
="" <grid="">

<textbox height="23" margin="79,62,99,0" name="textBox1" verticalalignment="Top" text="{Binding ElementName=slider1, Path=Value}">
<slider height="22" margin="79,10,99,0" name="slider1" verticalalignment="Top">
<Frame Margin="0,101,1,7" x:Name="frameMain" JournalOwnership="OwnsJournal" NavigationUIVisibility="Hidden">
</Frame>



//In code Side
public MainWindow()
{
InitializeComponent();

frameMain.Content = new Page1();
}

//Inside the page

<Page

<grid height="281" width="297">
<Label Content="Slider Value" Margin="97,0,91,213" Height="24" VerticalAlignment="Bottom" />
<textbox height="23" margin="0,71,81,0" name="textBox1" verticalalignment="Top" text="{Binding ElementName=slider1, StringFormat=0, Path=Value, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" horizontalalignment="Right" width="122">

</Page>
jobyjames 2-Aug-11 4:57am View    
yes i need code example