Click here to Skip to main content
15,896,413 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: DATAGRID - WPF c# 2010 Pin
Pete O'Hanlon25-Apr-11 22:51
mvePete O'Hanlon25-Apr-11 22:51 
GeneralRe: DATAGRID - WPF c# 2010 Pin
arkiboys25-Apr-11 23:04
arkiboys25-Apr-11 23:04 
GeneralRe: DATAGRID - WPF c# 2010 Pin
Pete O'Hanlon25-Apr-11 23:36
mvePete O'Hanlon25-Apr-11 23:36 
GeneralRe: DATAGRID - WPF c# 2010 Pin
arkiboys26-Apr-11 0:08
arkiboys26-Apr-11 0:08 
GeneralRe: DATAGRID - WPF c# 2010 Pin
Pete O'Hanlon26-Apr-11 0:31
mvePete O'Hanlon26-Apr-11 0:31 
QuestionNewbie problem: laying out grid issues in silverlight Pin
Lee Reid25-Apr-11 1:31
Lee Reid25-Apr-11 1:31 
AnswerRe: Newbie problem: laying out grid issues in silverlight Pin
Pete O'Hanlon25-Apr-11 4:15
mvePete O'Hanlon25-Apr-11 4:15 
AnswerRe: Newbie problem: laying out grid issues in silverlight Pin
SledgeHammer0125-Apr-11 6:33
SledgeHammer0125-Apr-11 6:33 
You are correct. The grid does not scale fixed margins, which makes complete sense. Using the star (*) ratios on columns and rows *does* work, but there are a few minor gotchas.

As Pete mentioned, the ViewBox will automatically scale when you resize the control, but sadly, you are going to find out that it doesn't really scale in the way that you would probably expect Smile | :) . The ViewBox scales *EVERYTHING*... elements, locations, fonts, etc. When you resize your control, do you really want your 1 pixel thick lines to suddenly become 5 pixels thick? If you do, then yeah, the ViewBox is the ticket. If you don't, then you need to use the Grid Smile | :) .

I've run into situations where I wanted to scale certain portions of the control only... take for example if you were drawing a bicycle wheel. Two circles plus a bunch of 1 pixel thick spokes for arguments sake. You'd probably want to scale the size of the two circles, but you probably would NOT want to scale the size of the spokes, you'd probably want to keep them 1 pixel thick.

If you use a ViewBox in that case, its a *MAJOR* PITA.
GeneralRe: Newbie problem: laying out grid issues in silverlight Pin
Lee Reid25-Apr-11 14:14
Lee Reid25-Apr-11 14:14 
GeneralRe: Newbie problem: laying out grid issues in silverlight Pin
SledgeHammer0125-Apr-11 14:45
SledgeHammer0125-Apr-11 14:45 
GeneralRe: Newbie problem: laying out grid issues in silverlight Pin
Lee Reid25-Apr-11 16:02
Lee Reid25-Apr-11 16:02 
QuestionAny trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 8:32
SledgeHammer0121-Apr-11 8:32 
AnswerRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 8:46
Ian Shlasko21-Apr-11 8:46 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 8:48
SledgeHammer0121-Apr-11 8:48 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 8:48
Ian Shlasko21-Apr-11 8:48 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 8:59
SledgeHammer0121-Apr-11 8:59 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 9:10
Ian Shlasko21-Apr-11 9:10 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 9:33
SledgeHammer0121-Apr-11 9:33 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 10:00
Ian Shlasko21-Apr-11 10:00 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 11:29
SledgeHammer0121-Apr-11 11:29 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 15:27
Ian Shlasko21-Apr-11 15:27 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 17:06
SledgeHammer0121-Apr-11 17:06 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 17:22
Ian Shlasko21-Apr-11 17:22 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Pete O'Hanlon22-Apr-11 9:25
mvePete O'Hanlon22-Apr-11 9:25 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0122-Apr-11 9:52
SledgeHammer0122-Apr-11 9:52 

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.