Click here to Skip to main content
14,391,726 members

Silverlight / WPF

 
QuestionQuick Question About Application Launch Pin
BlitzPackage6-Feb-10 3:48
MemberBlitzPackage6-Feb-10 3:48 
QuestionHow to get Event for the Windows.shapes.path Pin
Joe Rozario5-Feb-10 18:14
MemberJoe Rozario5-Feb-10 18:14 
QuestionReporting with silverlight Pin
jonatan_5565-Feb-10 4:43
Memberjonatan_5565-Feb-10 4:43 
AnswerRe: Reporting with silverlight Pin
Pete O'Hanlon5-Feb-10 12:11
communityengineerPete O'Hanlon5-Feb-10 12:11 
GeneralRe: Reporting with silverlight Pin
jonatan_55611-Feb-10 2:46
Memberjonatan_55611-Feb-10 2:46 
GeneralRe: Reporting with silverlight Pin
jonatan_55611-Feb-10 2:50
Memberjonatan_55611-Feb-10 2:50 
QuestionHow to show tooltip over a TreeViewItem if it is not fully Visible? Pin
Venkatesh Mookkan4-Feb-10 17:32
MemberVenkatesh Mookkan4-Feb-10 17:32 
QuestionOverride OnRender - (class inherits frameworkelement) Pin
DTh19784-Feb-10 14:21
MemberDTh19784-Feb-10 14: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 17:52
MemberSuper Lloyd4-Feb-10 17:52 
QuestionBinding an Image in WPF ? Pin
Mohammad Dayyan4-Feb-10 1:52
MemberMohammad Dayyan4-Feb-10 1:52 
AnswerRe: Binding an Image in WPF ? Pin
Pete O'Hanlon4-Feb-10 3:16
communityengineerPete O'Hanlon4-Feb-10 3:16 
GeneralRe: Binding an Image in WPF ? Pin
Mohammad Dayyan4-Feb-10 3:55
MemberMohammad Dayyan4-Feb-10 3:55 
GeneralRe: Binding an Image in WPF ? Pin
Pete O'Hanlon4-Feb-10 4:32
communityengineerPete O'Hanlon4-Feb-10 4:32 
GeneralRe: Binding an Image in WPF ? Pin
Mohammad Dayyan4-Feb-10 4:35
MemberMohammad Dayyan4-Feb-10 4:35 
QuestionDeveloping Application for WPF on MAc Pin
wasimsharp3-Feb-10 18:47
Memberwasimsharp3-Feb-10 18:47 
AnswerRe: Developing Application for WPF on MAc Pin
SeMartens3-Feb-10 22:32
MemberSeMartens3-Feb-10 22:32 
QuestionDisplaying a Matrix: ListView/GridView CellTemplates for rows and columns. Pin
Bartosz Bien3-Feb-10 12:45
MemberBartosz Bien3-Feb-10 12:45 
AnswerRe: Displaying a Matrix: ListView/GridView CellTemplates for rows and columns. Pin
Super Lloyd3-Feb-10 13:30
MemberSuper Lloyd3-Feb-10 13:30 
QuestionHow to get Active Directory attribute(s) Pin
rgouette3-Feb-10 5:17
Memberrgouette3-Feb-10 5:17 
AnswerRe: How to get Active Directory attribute(s) Pin
Abhinav S3-Feb-10 6:49
MemberAbhinav S3-Feb-10 6:49 
GeneralRe: How to get Active Directory attribute(s) Pin
rgouette3-Feb-10 7:33
Memberrgouette3-Feb-10 7:33 
Question[Solved] Combobox of line dash styles Pin
Richard Dutton3-Feb-10 4:07
MemberRichard Dutton3-Feb-10 4:07 
AnswerRe: Combobox of line dash styles Pin
Pete O'Hanlon3-Feb-10 4:48
communityengineerPete O'Hanlon3-Feb-10 4:48 
GeneralRe: Combobox of line dash styles Pin
Richard Dutton4-Feb-10 1:06
MemberRichard Dutton4-Feb-10 1:06 
GeneralRe: Combobox of line dash styles Pin
Pete O'Hanlon4-Feb-10 2:17
communityengineerPete O'Hanlon4-Feb-10 2: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.