Click here to Skip to main content
15,891,248 members
Home / Discussions / WPF
   

WPF

 
QuestionHow to get Event for the Windows.shapes.path Pin
Joe Rozario5-Feb-10 17:14
Joe Rozario5-Feb-10 17:14 
QuestionReporting with silverlight Pin
jonatan_5565-Feb-10 3:43
jonatan_5565-Feb-10 3:43 
AnswerRe: Reporting with silverlight Pin
Pete O'Hanlon5-Feb-10 11:11
mvePete O'Hanlon5-Feb-10 11:11 
GeneralRe: Reporting with silverlight Pin
jonatan_55611-Feb-10 1:46
jonatan_55611-Feb-10 1:46 
AnswerMessage Removed Pin
8-Feb-10 23:10
Perpetuum Software8-Feb-10 23:10 
GeneralRe: Reporting with silverlight Pin
jonatan_55611-Feb-10 1:50
jonatan_55611-Feb-10 1:50 
QuestionHow to show tooltip over a TreeViewItem if it is not fully Visible? Pin
Venkatesh Mookkan4-Feb-10 16:32
Venkatesh Mookkan4-Feb-10 16:32 
QuestionOverride OnRender - (class inherits frameworkelement) Pin
DTh19784-Feb-10 13:21
DTh19784-Feb-10 13:21 
Hello

I have created a class inherits frameworkelement which i am using to graphically represent an object in my WPF project. My first attempt overrides the onRender method and draws a rectangle, using property's length and width.

I am doing this to reduce the overhead required for each object as i will have a number of these on the page at one time.

This works fine, now i want to do the same thing but draw a more complicated shape the path. I do not know where to start with this, has anyone attempted this before if so how did you do this??


Here is my working code for simple rectangle.

Protected Overrides Sub OnRender(ByVal drawingContext As System.Windows.Media.DrawingContext)

        drawingContext.DrawRectangle(Status, New Pen, New Rect(0, 0, conveyorLength, conveyorWidth))
        MyBase.OnRender(drawingContext)



End Sub



Thanks
AnswerRe: Override OnRender - (class inherits frameworkelement) Pin
Super Lloyd4-Feb-10 16:52
Super Lloyd4-Feb-10 16:52 
QuestionBinding an Image in WPF ? Pin
Mohammad Dayyan4-Feb-10 0:52
Mohammad Dayyan4-Feb-10 0:52 
AnswerRe: Binding an Image in WPF ? Pin
Pete O'Hanlon4-Feb-10 2:16
mvePete O'Hanlon4-Feb-10 2:16 
GeneralRe: Binding an Image in WPF ? Pin
Mohammad Dayyan4-Feb-10 2:55
Mohammad Dayyan4-Feb-10 2:55 
GeneralRe: Binding an Image in WPF ? Pin
Pete O'Hanlon4-Feb-10 3:32
mvePete O'Hanlon4-Feb-10 3:32 
GeneralRe: Binding an Image in WPF ? Pin
Mohammad Dayyan4-Feb-10 3:35
Mohammad Dayyan4-Feb-10 3:35 
QuestionDeveloping Application for WPF on MAc Pin
wasimsharp3-Feb-10 17:47
wasimsharp3-Feb-10 17:47 
AnswerRe: Developing Application for WPF on MAc Pin
SeMartens3-Feb-10 21:32
SeMartens3-Feb-10 21:32 
QuestionDisplaying a Matrix: ListView/GridView CellTemplates for rows and columns. Pin
Bartosz Bien3-Feb-10 11:45
Bartosz Bien3-Feb-10 11:45 
AnswerRe: Displaying a Matrix: ListView/GridView CellTemplates for rows and columns. Pin
Super Lloyd3-Feb-10 12:30
Super Lloyd3-Feb-10 12:30 
QuestionHow to get Active Directory attribute(s) Pin
rgouette3-Feb-10 4:17
rgouette3-Feb-10 4:17 
AnswerRe: How to get Active Directory attribute(s) Pin
Abhinav S3-Feb-10 5:49
Abhinav S3-Feb-10 5:49 
GeneralRe: How to get Active Directory attribute(s) Pin
rgouette3-Feb-10 6:33
rgouette3-Feb-10 6:33 
Question[Solved] Combobox of line dash styles Pin
Richard Dutton3-Feb-10 3:07
Richard Dutton3-Feb-10 3:07 
AnswerRe: Combobox of line dash styles Pin
Pete O'Hanlon3-Feb-10 3:48
mvePete O'Hanlon3-Feb-10 3:48 
GeneralRe: Combobox of line dash styles Pin
Richard Dutton4-Feb-10 0:06
Richard Dutton4-Feb-10 0:06 
GeneralRe: Combobox of line dash styles Pin
Pete O'Hanlon4-Feb-10 1:17
mvePete O'Hanlon4-Feb-10 1:17 

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.