C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Application windows, menus & toolbars »

Background Image of Window or Page in WPF


Posted Date: 16 Aug 2009    Resource Type: Code Snippets    Category: Application windows, menus & toolbars
Author: K'ranMember Level: Gold    
Rating: 1 out of 5Points: 10



Background Image of Window or Page in WPF



This Code Snippet produce Background Image of Window or Page



For Window


< Window x:Class="MyXbap.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300" >
< !-- define Background Property -- >
< Window.Background >
< !-- Define Image Bruch and Set Image Source to Image Path-- >
< ImageBrush ImageSource="Beach.jpg" >< /ImageBrush >
< /Window.Background >
< /Window >



For Page



< Page x:Class="MyXbap.Page2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:triple="http://thriple.codeplex.com/"
Title="Page2" Width="1000" Height="1000" >
< !-- define Backgroudn Property of Page- >
< Page.Background >
< !-- define Image Brush and Set ImageSource Property -- >
< ImageBrush ImageSource="Beach.jpg" >< /ImageBrush >
< /Page.Background >
< /Page >



Note:- Make Sure Image Property Copy to Image Directory to Copy always

Attachments






Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Background Image of Window or Page in WPF .  .  Background Image of Window or Page in WPF  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: SkewTransform of Image in WPF
Previous Resource: Fill Image in Ellipse (WPF)
Return to Discussion Resource Index
Post New Resource
Category: Application windows, menus & toolbars


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use