|
<UserControl x:Name="userControl" x:Class="Silverlight4.Interop.Excel.Demo.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
Height="377" Width="577">
<Grid x:Name="LayoutRoot" Background="Transparent">
<TextBlock TextWrapping="Wrap" Text="Loading Application... Please wait..." Margin="161,149,161,171" TextAlignment="Center" FontSize="18.667" FontWeight="Bold" Foreground="#FFED1A1A"/>
<Rectangle Height="51"
HorizontalAlignment="Left"
Margin="1,325,0,0"
x:Name="rectangle2"
Stroke="Black"
StrokeThickness="1"
VerticalAlignment="Top"
Width="576">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="Black"
Offset="1" />
<GradientStop Color="#6FFFFFFF"
Offset="0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<sdk:DataGrid AutoGenerateColumns="True"
Height="295"
IsReadOnly="True"
HorizontalAlignment="Left"
VerticalScrollBarVisibility="Auto"
Margin="0,30,0,0"
x:Name="customerDataGrid"
VerticalAlignment="Top"
Width="576" ItemsSource="{Binding CustomerCollection, ElementName=userControl, Mode=TwoWay}" />
<Border BorderBrush="Black"
BorderThickness="1"
Height="31"
HorizontalAlignment="Left"
Margin="0,0,0,0"
x:Name="border1"
VerticalAlignment="Top"
Width="576"
CornerRadius="5,5,0,0"
MouseLeftButtonDown="border1_MouseLeftButtonDown">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="Black"
Offset="0" />
<GradientStop Color="Black"
Offset="0" />
</LinearGradientBrush>
</Border.Background>
<Border BorderBrush="{x:Null}"
BorderThickness="0"
CornerRadius="5,5,0,0"
Height="28"
x:Name="border2"
Width="570"
Margin="0,2,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Top">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="White"
Offset="0" />
<GradientStop Color="#00000000"
Offset="0.616" />
</LinearGradientBrush>
</Border.Background>
<TextBlock Height="19"
IsHitTestVisible="False"
x:Name="textBlock1"
Text="Silverlight 4 Excel Interoperability Demo"
Foreground="White"
FontSize="14"
Width="558" />
</Border>
</Border>
<Button Height="28"
HorizontalAlignment="Left" Click="exportToExcelButton_Click"
Margin="244,333,0,0"
x:Name="exportToExcelButton"
Content="Export To Excel"
VerticalAlignment="Top"
Width="109" />
<Button Height="28"
HorizontalAlignment="Left" Click="installButton_Click"
Margin="244,333,0,0"
x:Name="installButton"
Content="Install"
VerticalAlignment="Top"
Width="109" />
<Rectangle Height="18"
Cursor="Hand"
HorizontalAlignment="Left"
Margin="549,6,0,0"
x:Name="rectangle1"
Stroke="Black"
StrokeThickness="1"
VerticalAlignment="Top"
Width="19"
Fill="#FF990000"
MouseLeftButtonDown="rectangle1_MouseLeftButtonDown"/>
<TextBlock Height="12"
IsHitTestVisible="False"
HorizontalAlignment="Left"
Margin="555,7,0,0"
x:Name="textBlock2"
Text="X"
Foreground="White"
VerticalAlignment="Top" />
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Kunal Chowdhury is a former Microsoft "Windows Platform Development" MVP (Most Valuable Professional, 2010 - 2018), a Codeproject Mentor, Speaker in various Microsoft events, Author, passionate Blogger and a Senior Technical Lead by profession.
He is currently working in an MNC located in India. He has a very good skill over XAML, C#, Silverlight, Windows Phone, WPF and Windows app development. He posts his findings, articles, tutorials in his technical blog (www.kunal-chowdhury.com) and CodeProject.
Books authored:
Connect with Kunal on: