|
<UserControl x:Class="Silverlight_4_Windows_Explorer.ucDrive"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Height="63" Width="225">
<Grid x:Name="LayoutRoot" Cursor="Hand">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0.3*"/>
<RowDefinition Height="0.4*"/>
<RowDefinition Height="0.3*"/>
</Grid.RowDefinitions>
<!--<Border x:Name="brdBackground" BorderThickness="1" CornerRadius="5" Grid.RowSpan="3" BorderBrush="#FF80D4FA">
<Border.Effect>
<DropShadowEffect/>
</Border.Effect>
<Border.Background>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
<GradientStop Color="White" Offset="0.244"/>
<GradientStop Offset="0.738" Color="#19FFFFFF"/>
<GradientStop Color="Transparent" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<Border x:Name="brdHighlight" BorderBrush="#FFC5D8FF" BorderThickness="2" CornerRadius="5" Grid.RowSpan="3" Visibility="Collapsed">
<Border.Background>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
<GradientStop Color="White" Offset="0.244"/>
<GradientStop Color="#00CFF0FF" Offset="1"/>
<GradientStop Color="#19CFF0FF" Offset="0.738"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<Border x:Name="brdSelected" BorderBrush="#FFBCD1FE" BorderThickness="2" CornerRadius="5" Grid.RowSpan="3">
<Border.Background>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
<GradientStop Color="White" Offset="0.244"/>
<GradientStop Color="#33AFE6FF" Offset="1"/>
<GradientStop Color="#33AFE6FF" Offset="0.738"/>
</LinearGradientBrush>
</Border.Background>
</Border>-->
<TextBlock x:Name="txbLabel" Margin="5,0" Grid.Column="1" Text="{Binding DriveName}" TextWrapping="Wrap" FontWeight="Bold" VerticalAlignment="Center"/>
<!--<Image x:Name="imgDriveIcon" Margin="5" Grid.RowSpan="3" Source="images/driveIcon.png"/>-->
<ProgressBar x:Name="pbSpace" Margin="5" Grid.Column="1" Grid.Row="1" Foreground="Lime" Background="White" Value="50"/>
<TextBlock x:Name="txbSpace" Margin="5,0" Grid.Column="1" Grid.Row="2" TextWrapping="Wrap" VerticalAlignment="Center" Text="100.00 GB free of 200.00 GB"/>
</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: