.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> WPF >> Post New QuestionBookmark and Share Subscribe to Forum

Designing a wpf page based on screen resolution

Posted By: rajesh     Posted Date: May 23, 2012    Points:5   Category :WPF
Hi fnds

I need to design my wpf page with with controls like grid, rectange, path, buttons etc... based on screen resolution. Even if the screen resolution changes my wpf page desgin should't have any effect and change. It should remain intact. Expecting a solution fnds.

Regards,
Rajesh MV

Responses
Author: Mohanraj             
Posted Date: July 17, 2012     Points: 20   

hi,

Try this

<Window x:Class="YourApplication.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="YourApplication"
Height="{Binding SystemParameters.PrimaryScreenHeight}"
Width="{Binding SystemParameters.PrimaryScreenWidth}">


Regards,
Mohanraj



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend