|
<Window x:Class="GridAnimationDemo.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:proj="clr-namespace:GridAnimationDemo"
Title="Click on an image maximize it. Click again for previous view." Height="700" Width="700"
>
<Grid Background="Silver" x:Name="mainGrid">
<Grid.Resources>
<Style TargetType="{x:Type Image}">
<Setter Property="Stretch" Value="Fill" />
<Setter Property="Margin" Value="2" />
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" Name="col0" />
<ColumnDefinition Width="*" Name="col1" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" Name="row0" />
<RowDefinition Height="*" Name="row1" />
<RowDefinition Height="*" Name="row2" />
</Grid.RowDefinitions>
<Image MouseDown="image_MouseDown" Source="Images/208323-medium.jpg" Grid.Row="0" Grid.Column="0" />
<Image MouseDown="image_MouseDown" Source="Images/211625-medium.jpg" Grid.Row="0" Grid.Column="1" />
<Image MouseDown="image_MouseDown" Source="Images/212164-medium.jpg" Grid.Row="1" Grid.Column="0" />
<Image MouseDown="image_MouseDown" Source="Images/217644-medium.jpg" Grid.Row="1" Grid.Column="1" />
<Image MouseDown="image_MouseDown" Source="Images/218860-medium.jpg" Grid.Row="2" Grid.Column="0" />
<Image MouseDown="image_MouseDown" Source="Images/219508-medium.jpg" Grid.Row="2" Grid.Column="1" />
</Grid>
</Window>
|
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.
Programming computers ( self taught ) since about 1984 when I bought my first Apple ][. Was working on a GUI library to interface Win32 to Python, and writing graphics filters in my spare time, and then building n-tiered apps using asp, atl and asp.net in my job at Dytech. After 4 years there, I've started working from home, at first for Code Project and now for a vet telemedicine company. I owned part of a company that sells client education software in the vet market, but we sold that and I worked for the owners for five years before leaving to get away from the travel, and spend more time with my family. I now work for a company here in Hobart, doing all sorts of Microsoft based stuff in C++ and C#, with a lot of T-SQL in the mix.
Nish Nishant is a technology enthusiast from Columbus, Ohio. He has over 20 years of software industry experience in various roles including Chief Technology Officer, Senior Solution Architect, Lead Software Architect, Principal Software Engineer, and Engineering/Architecture Team Leader. Nish is a 14-time recipient of the Microsoft Visual C++ MVP Award.
Nish authored C++/CLI in Action for Manning Publications in 2005, and co-authored Extending MFC Applications with the .NET Framework for Addison Wesley in 2003. In addition, he has over 140 published technology articles on CodeProject.com and another 250+ blog articles on his WordPress blog. Nish is experienced in technology leadership, solution architecture, software architecture, cloud development (AWS and Azure), REST services, software engineering best practices, CI/CD, mentoring, and directing all stages of software development.
Nish's Technology Blog :
voidnish.wordpress.com