Click here to Skip to main content

Silverlight / WPF

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
QuestionReporting with silverlight Pinmemberjonatan_5564:43 5 Feb '10  
AnswerRe: Reporting with silverlight PinmvpPete O'Hanlon12:11 5 Feb '10  
GeneralRe: Reporting with silverlight Pinmemberjonatan_5562:46 11 Feb '10  
AnswerMessage Removed PingroupPerpetuum Software0:10 9 Feb '10  
GeneralRe: Reporting with silverlight Pinmemberjonatan_5562:50 11 Feb '10  
QuestionHow to show tooltip over a TreeViewItem if it is not fully Visible? PinmemberCastle Rider17:32 4 Feb '10  
QuestionOverride OnRender - (class inherits frameworkelement) PinmemberDTh197814:21 4 Feb '10  
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) PinmemberSuper Lloyd17:52 4 Feb '10  
QuestionBinding an Image in WPF ? Pinmember_Mohammad_1:52 4 Feb '10  
AnswerRe: Binding an Image in WPF ? PinmvpPete O'Hanlon3:16 4 Feb '10  
GeneralRe: Binding an Image in WPF ? Pinmember_Mohammad_3:55 4 Feb '10  
GeneralRe: Binding an Image in WPF ? PinmvpPete O'Hanlon4:32 4 Feb '10  
GeneralRe: Binding an Image in WPF ? Pinmember_Mohammad_4:35 4 Feb '10  
QuestionDeveloping Application for WPF on MAc Pinmemberwasimsharp18:47 3 Feb '10  
AnswerRe: Developing Application for WPF on MAc PinmemberSeMartens22:32 3 Feb '10  
QuestionDisplaying a Matrix: ListView/GridView CellTemplates for rows and columns. PinmemberBartosz Bien12:45 3 Feb '10  
AnswerRe: Displaying a Matrix: ListView/GridView CellTemplates for rows and columns. PinmemberSuper Lloyd13:30 3 Feb '10  
QuestionHow to get Active Directory attribute(s) Pinmemberrgouette5:17 3 Feb '10  
AnswerRe: How to get Active Directory attribute(s) PinmemberAbhinav S6:49 3 Feb '10  
GeneralRe: How to get Active Directory attribute(s) Pinmemberrgouette7:33 3 Feb '10  
Question[Solved] Combobox of line dash styles PinmemberRichard Dutton4:07 3 Feb '10  
AnswerRe: Combobox of line dash styles PinmvpPete O'Hanlon4:48 3 Feb '10  
GeneralRe: Combobox of line dash styles PinmemberRichard Dutton1:06 4 Feb '10  
GeneralRe: Combobox of line dash styles PinmvpPete O'Hanlon2:17 4 Feb '10  
QuestionDeployment Error Pinmembervsaratkar11:38 2 Feb '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.5.120222.1 | Last Updated 23 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid