[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

WPF, how to autosize control?

Poly

3/5/2008 10:07:00 AM

I have Controle like this
<UserControl x:Class="OpticGraph.ObjectTip"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presenta...
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml...
<Grid>
<Rectangle Stroke="Black" RadiusX="17" RadiusY="17" Fill="Pink" />
<TextBlock Name="textBlock" Margin="10,10,10,10"
Text="ObjectName" />
</Grid>
</UserControl>

In Visual studio disigner when I changed text of TextBlock all of it
resized.
I want to place this control on Canvas, but after Initiolazint this
control and text in it I have NaN in Width and Height, and I can't
detect center of it and place it.
How I can detect it's sizes, or handle it, to place with correct sizes
on Canvas?

___________
best regards
Poly
1 Answer

SMITH29

7/19/2008 10:08:00 PM

0

Baxter wrote:

------------------------------------------------------------------------------------
Free Software - Baxter Codeworks www.baxcode.com
------------------------------------------------------------------------------------
"SMITH29" <smith29@comcast.net> wrote in message
news:q7udnSgDvrO80x_VnZ2dnUVZ_hqdnZ2d@supernews.com...
> > Scroll down and see the USS BILL CLINTON
> > and the USS BARACK OBAMA
> > http://www.barking-mo...
> >
> > This site is NOT, I repeat NOT for whiny MOONBATS.
> >
> > For the rest of us it's funny!!!
> >
> > comments welcome:
> >
Only whiny barking moonbats would think it funny - but that pretty well
does
describe you.

xxxx
Your reply makes no sense, no sense at all.

29