You're adding the buttons directly to the dockpanel, instead of the stack panel.

Button(Margin=new Thickness(10.0, 10.0, 2.0, 10.0), Padding=paddings,

Content="OK") |> panel.Children.Add |> ignore

Button(Margin=new Thickness(2.0, 10.0, 10.0, 10.0), Padding=paddings,

Content="Cancel") |> panel.Children.Add |> ignore

will make it look like the XAML

By on 2/9/2009 5:24 PM ()

Thank-you!

By on 2/10/2009 4:56 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper