Click here to Skip to main content
15,914,111 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Dragging outlook attached documents into a WPF app Pin
RugbyLeague8-Feb-10 5:34
RugbyLeague8-Feb-10 5:34 
QuestionMVVM standardization [modified] Pin
Michael Sync7-Feb-10 5:46
Michael Sync7-Feb-10 5:46 
AnswerRe: MVVM standardization Pin
Wes Aday8-Feb-10 12:35
professionalWes Aday8-Feb-10 12:35 
QuestionDataTemplate with List binding Pin
pbalaga6-Feb-10 9:20
pbalaga6-Feb-10 9:20 
AnswerRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 9:58
mvePete O'Hanlon6-Feb-10 9:58 
GeneralRe: DataTemplate with List binding Pin
pbalaga6-Feb-10 21:35
pbalaga6-Feb-10 21:35 
GeneralRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 22:01
mvePete O'Hanlon6-Feb-10 22:01 
AnswerRe: DataTemplate with List binding Pin
Abhinav S6-Feb-10 10:06
Abhinav S6-Feb-10 10:06 
GeneralRe: DataTemplate with List binding Pin
pbalaga6-Feb-10 21:37
pbalaga6-Feb-10 21:37 
GeneralRe: DataTemplate with List binding [modified] Pin
Abhinav S6-Feb-10 21:45
Abhinav S6-Feb-10 21:45 
GeneralRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 23:46
mvePete O'Hanlon6-Feb-10 23:46 
QuestionQuick Question About Application Launch Pin
BlitzPackage6-Feb-10 2:48
BlitzPackage6-Feb-10 2:48 
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 

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.