views:

10

answers:

0

Hello every body,

I'm trying to create a Watch Control and dont realy know where to begin. My goal is to able do declare a watch like this.

<Watch Shape="Round">
    <WatchButton Watch.Angle="70"/>
    <WatchButton Watch.Angle="90"/>
    <WatchButton Watch.Angle="120"/>
    <Cadran Shape="Round">
        <Needle/>
        <Needle/>
    </Cadran>
</Watch>

Creating a WatchButton, a Needle or a dependence property is not a problem.

Where I'm confused, is creating a control with a custom layout who holds other controls, like Watch or Cadran.

I don't know if I have to create a User Control or a Custom Control (maybe a Panel?).

I'm really lost...

Thank's

Witschi