Part 1
We will continue to design our Business application . Lets continue with the
Payroll view .
Creating remaining Views and adding Transition effects .
Lets add another user control in the Views folder as Payroll.
I follow the same steps as I did for the Author.xaml .
The Final xaml code for Payroll.xaml would look like :
<Grid
x:Name="LayoutRoot"
Background="White">
<riaControls:DomainDataSource
AutoLoad="True"
d:DesignData="{d:DesignInstance
my:Payroll,
CreateList=true}"
Height="0"
LoadedData="payrollDomainDataSource_LoadedData"
Name="payrollDomainDataSource"
QueryName="GetPayrollsQuery"
Width="0">
<riaControls:DomainDataSource.DomainContext>
<my:DataDomainContext
/>
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
<sdk:DataGrid
AutoGenerateColumns="False"
Height="200"
HorizontalAlignment="Left"
ItemsSource="{Binding
ElementName=payrollDomainDataSource,
Path=Data}"
Margin="0,50,0,0"
Name="payrollDataGrid"
RowDetailsVisibilityMode="VisibleWhenSelected"
VerticalAlignment="Top"
Width="400"
>
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn
Binding="{Binding
Path=AuthorID}"></sdk:DataGridTextColumn>
<sdk:DataGridTextColumn
Binding="{Binding
Path=PayrollID}"></sdk:DataGridTextColumn>
<sdk:DataGridTextColumn
Binding="{Binding
Path=Salary}"></sdk:DataGridTextColumn>
</sdk:DataGrid.Columns>
</sdk:DataGrid>
</Grid>
Comment the Author View placed in the Mainpage.xaml.cs and drag and drop payroll
view now.
Build and Run.

Lets also add the Article View .
I would be using Slide In Transition effects in our example to add the effects .
For reference
http://www.c-sharpcorner.com/UploadFile/Mahadesh/8886/
Add references to the Blend Dlls as shown in the Diagram below :

Added the following code to MainPage.xaml.cs .
Do add the namespaces as well .
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.






Gowtham RajamanickamPosted Apr 11, 2016, 3:05 AM
good one...