Click here to Skip to main content
15,895,746 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF - UIElement from binded property Pin
Pete O'Hanlon5-Mar-10 9:36
mvePete O'Hanlon5-Mar-10 9:36 
QuestionAgDataGrid Date column for Custom Date format [modified] Pin
Satish Pai4-Mar-10 17:23
Satish Pai4-Mar-10 17:23 
QuestionWindowsFormsHost invalid theme in WPF Application (.Net 3.5) Pin
Mehdi Ghiasi4-Mar-10 8:56
Mehdi Ghiasi4-Mar-10 8:56 
AnswerRe: WindowsFormsHost invalid theme in WPF Application (.Net 3.5) Pin
Pete O'Hanlon4-Mar-10 11:58
mvePete O'Hanlon4-Mar-10 11:58 
AnswerRe: WindowsFormsHost invalid theme in WPF Application (.Net 3.5) Pin
mattjfenner22-Mar-10 19:16
mattjfenner22-Mar-10 19:16 
GeneralRe: WindowsFormsHost invalid theme in WPF Application (.Net 3.5) Pin
Mehdi Ghiasi23-Mar-10 0:38
Mehdi Ghiasi23-Mar-10 0:38 
GeneralRe: WindowsFormsHost invalid theme in WPF Application (.Net 3.5) Pin
mattjfenner23-Mar-10 0:39
mattjfenner23-Mar-10 0:39 
QuestionHow do I center a Silverlight page on a browser at all times? Pin
Jun Du4-Mar-10 6:04
Jun Du4-Mar-10 6:04 
Hi,

I have created a Silverlight page and Default.html to host it. Here is the relevant HTML code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<!-- saved from url=(0014)about:internet --><head>
    <title>Intribute Dynamics</title>

    <style type="text/css">
    html, body {
	    height: 100%;
	    overflow: auto;
    }
    body {
	    padding: 0;
	    margin: 0;
    }
    #silverlightControlHost {
	    height: 100%;
    }
    </style>

..........

    <!-- Runtime errors from Silverlight will be displayed here.
	This will contain debugging information and should be removed or hidden when debugging is completed -->
	<div id='errorLocation' style="font-size: small;color: Gray;"></div>

    <div id="silverlightControlHost">
		<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="1024px" height="1024px">
			<param name="source" value="ClientBin/EntributeSilverlight.xap"/>
			<param name="onerror" value="onSilverlightError" />
			<param name="background" value="white" />
			<param name="minRuntimeVersion" value="3.0.40624.0" />
			<param name="autoUpgrade" value="true" />
			<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration: none;">
     			<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
			</a>
		</object><iframe id='_sl_historyFrame' style='visibility:hidden;height:0;width:0;border:0px'></iframe></div>
</body>
</html>


How can I place the Silverlight page at the center of the browser at all times, regardless of the size of my Silverlight page? I have tried some suggestions from my search on the web. Unfortunately none of them have worked.
Best,
Jun

AnswerRe: How do I center a Silverlight page on a browser at all times? Pin
Not Active4-Mar-10 6:26
mentorNot Active4-Mar-10 6:26 
GeneralRe: How do I center a Silverlight page on a browser at all times? Pin
Jun Du4-Mar-10 6:29
Jun Du4-Mar-10 6:29 
AnswerRe: How do I center a Silverlight page on a browser at all times? Pin
Abhinav S14-Mar-10 21:15
Abhinav S14-Mar-10 21:15 
QuestionText for geometryModel3d should not rotate in wpf Pin
Ramkumar19883-Mar-10 20:27
Ramkumar19883-Mar-10 20:27 
QuestionLoading Image at runtime foe control library. Pin
Anu_Bala3-Mar-10 18:38
Anu_Bala3-Mar-10 18:38 
QuestionWPF Nested Grid Sizing Question Pin
Kennebel3-Mar-10 4:23
Kennebel3-Mar-10 4:23 
AnswerRe: WPF Nested Grid Sizing Question Pin
AspDotNetDev3-Mar-10 21:49
protectorAspDotNetDev3-Mar-10 21:49 
GeneralRe: WPF Nested Grid Sizing Question Pin
Kennebel5-Mar-10 9:04
Kennebel5-Mar-10 9:04 
GeneralRe: WPF Nested Grid Sizing Question Pin
AspDotNetDev5-Mar-10 9:22
protectorAspDotNetDev5-Mar-10 9:22 
QuestionResizing and realigning the contents of a WPF windows form Pin
sameercodes3-Mar-10 4:20
sameercodes3-Mar-10 4:20 
AnswerRe: Resizing and realigning the contents of a WPF windows form Pin
April Fans3-Mar-10 17:47
April Fans3-Mar-10 17:47 
QuestionProperty editing not available for Blend-generated XAML... Pin
Jun Du2-Mar-10 2:14
Jun Du2-Mar-10 2:14 
AnswerRe: Property editing not available for Blend-generated XAML... Pin
April Fans3-Mar-10 14:49
April Fans3-Mar-10 14:49 
AnswerRe: Property editing not available for Blend-generated XAML... Pin
fred_17-Mar-10 9:46
fred_17-Mar-10 9:46 
QuestionHow do I handle both hover and click events on a button control? Pin
Jun Du1-Mar-10 11:19
Jun Du1-Mar-10 11:19 
AnswerRe: How do I handle both hover and click events on a button control? Pin
April Fans1-Mar-10 15:47
April Fans1-Mar-10 15:47 
AnswerRe: How do I handle both hover and click events on a button control? Pin
Abhinav S1-Mar-10 22:24
Abhinav S1-Mar-10 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.