From 3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Oct 2018 00:15:52 +0800 Subject: Make button use border delegate. --- src/ui/controls/border_delegate.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui/controls/border_delegate.h') diff --git a/src/ui/controls/border_delegate.h b/src/ui/controls/border_delegate.h index 12c5444a..5a7dfbed 100644 --- a/src/ui/controls/border_delegate.h +++ b/src/ui/controls/border_delegate.h @@ -7,6 +7,12 @@ namespace cru::ui::controls class BorderProperty : public PropertyChangedNotifyObject { public: + using Ptr = std::shared_ptr; + static Ptr Create() + { + return std::make_shared(); + } + constexpr static auto brush_property_name = L"Brush"; constexpr static auto width_property_name = L"Width"; constexpr static auto stroke_style_property_name = L"StrokeStyle"; -- cgit v1.2.3