Click here to Skip to main content
15,905,427 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Sugestions on "selecting" WPF cells Pin
Harvey Saayman28-Aug-08 0:49
Harvey Saayman28-Aug-08 0:49 
GeneralRe: Sugestions on "selecting" WPF cells Pin
Pete O'Hanlon28-Aug-08 0:50
mvePete O'Hanlon28-Aug-08 0:50 
QuestionWPF and mock UI Pin
ComplexLifeForm25-Aug-08 4:46
ComplexLifeForm25-Aug-08 4:46 
AnswerRe: WPF and mock UI Pin
Pete O'Hanlon25-Aug-08 22:46
mvePete O'Hanlon25-Aug-08 22:46 
QuestionWPF Help Needed on Resizing data grid Pin
blurboy25-Aug-08 2:47
blurboy25-Aug-08 2:47 
AnswerRe: WPF Help Needed on Resizing data grid Pin
Timmy Kokke25-Aug-08 4:47
Timmy Kokke25-Aug-08 4:47 
Questiondrawing bounding rectangle around rotated UI Elements Pin
KrunalC24-Aug-08 22:06
KrunalC24-Aug-08 22:06 
AnswerRe: drawing bounding rectangle around rotated UI Elements Pin
Insincere Dave25-Aug-08 5:52
Insincere Dave25-Aug-08 5:52 
RenderTransform.TransformBounds returns an axis aligned rectangle, if that isn't what you want try http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part1.aspx

If your using Canvas.SetLeft/Top instead of a TranslateTransform you may have to tweak it.
Rectangle rotated = new Rectangle {Width = 100, Height = 60, Fill = Brushes.Orange};
rotated.RenderTransform = new TransformGroup {Children = {new RotateTransform(35), new TranslateTransform(60, 30)}};
canvas.Children.Add(rotated);

//GetDescentandBounds was returning empty, your elements are probably all loaded.
rotated.Loaded += ((s, e2) =>
                       {
                           //Bounds before render transform.
                           Rect r = VisualTreeHelper.GetDescendantBounds(rotated);
                           //After transform
                           r = rotated.RenderTransform.TransformBounds(r);

                           Rectangle border = new Rectangle {Width = r.Width, Height = r.Height, Stroke = Brushes.DodgerBlue, StrokeThickness = 2, RenderTransform = new TranslateTransform(r.X, r.Y)};
                           canvas.Children.Add(border);
                       });

GeneralRe: drawing bounding rectangle around rotated UI Elements Pin
KrunalC25-Aug-08 15:56
KrunalC25-Aug-08 15:56 
GeneralRe: drawing bounding rectangle around rotated UI Elements Pin
Insincere Dave26-Aug-08 6:29
Insincere Dave26-Aug-08 6:29 
GeneralRe: drawing bounding rectangle around rotated UI Elements Pin
KrunalC31-Aug-08 17:01
KrunalC31-Aug-08 17:01 
QuestionMediaElement Custom Streaming Pin
K.L.K22-Aug-08 12:03
K.L.K22-Aug-08 12:03 
AnswerRe: MediaElement Custom Streaming Pin
bigerock1239-Jun-10 3:19
bigerock1239-Jun-10 3:19 
QuestionWPF RichTextBox - settting the font Pin
nellieow22-Aug-08 3:44
nellieow22-Aug-08 3:44 
AnswerRe: WPF RichTextBox - settting the font Pin
Pete O'Hanlon22-Aug-08 9:48
mvePete O'Hanlon22-Aug-08 9:48 
QuestionWPF Dataset xsd,xsc,xss?? Pin
Dotnetkanna22-Aug-08 3:07
Dotnetkanna22-Aug-08 3:07 
QuestionListView with expandable items Pin
Meindert221-Aug-08 23:56
Meindert221-Aug-08 23:56 
AnswerRe: ListView with expandable items Pin
User 27100926-Aug-08 3:19
User 27100926-Aug-08 3:19 
GeneralRe: ListView with expandable items Pin
Pete O'Hanlon26-Aug-08 3:57
mvePete O'Hanlon26-Aug-08 3:57 
GeneralRe: ListView with expandable items Pin
User 27100926-Aug-08 4:04
User 27100926-Aug-08 4:04 
GeneralRe: ListView with expandable items Pin
Pete O'Hanlon26-Aug-08 4:13
mvePete O'Hanlon26-Aug-08 4:13 
GeneralRe: ListView with expandable items Pin
User 27100928-Aug-08 4:20
User 27100928-Aug-08 4:20 
GeneralRe: ListView with expandable items Pin
Pete O'Hanlon28-Aug-08 4:30
mvePete O'Hanlon28-Aug-08 4:30 
GeneralRe: ListView with expandable items Pin
Mark Salsbery26-Aug-08 6:26
Mark Salsbery26-Aug-08 6:26 
GeneralRe: ListView with expandable items Pin
User 27100928-Aug-08 15:35
User 27100928-Aug-08 15:35 

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.