Create custom rectangle UI Element



I want to create a custom UI element which will be a custom rectangle object
in a c# XAML application. I'm new to XAML and c# as most of my experience
has been using vb with sql. I'm building a simple Visio type app where I
can drag rectangles on a canvas to create diagrams. for now I don't need
fancy shapes so I'll just start with a rectangle class where I can add
custom properties to it such as where lines are connected to it, etc. Can
someone please recommend some documentation on how to get started with
creating this custom rectangle class. I'm not sure how to get started such
as creating a class that inherits from rectangle or what...

Thanks.

--
moondaddy@xxxxxxxxxxxxxxx


.



Relevant Pages

  • Why one of the reasons to say that a design is bad is about deployment???
    ... The Rectangle class has two methods shown. ... It never draws the rectangle on the ... some computational geometry, but it definitely draws the rectangle on ...
    (comp.lang.java.programmer)
  • Re: RECT - Rectangle
    ... It seems at first glance that the Rectangle class ... >>I have a question regarding the RECT structure required for PInvoke calls. ... I would create the RECT structure definition ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: method to access the name of the object that got created.
    ... If R1 is a object of Rectangle class with width 20, on calling ... "R1Is having a width of 20" ...
    (comp.lang.java.programmer)
  • XAML
    ... i have just installed VS2008 and was working on a simple WPF ... I created the following XAML, it produced a simple rectangle with a ... reflection at the bottom. ...
    (microsoft.public.dotnet.general)
  • Re: Creating a visual object
    ... You need a retained mode graphics system which you can then use to create simple elements such as Rectangle etc which persist information and which you can use to build up useful classes of shapes and functions. ... I need the bar objects to have certain properties like height, width, colour etc. Sounds like a rectangle to me. ... I thought of inheriting the rectangle class but it seems this is only a class that holds values, ... Must I use a control template to do this? ...
    (microsoft.public.dotnet.framework.drawing)