diff options
author | crupest <crupest@outlook.com> | 2018-10-02 00:15:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-02 00:15:52 +0800 |
commit | 3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab (patch) | |
tree | 095da7f36e7f4e150080feb753a2995fe2bac8c3 /src/ui/controls/border_delegate.h | |
parent | c9a423ef94f684ff21e79526f77f8ddc31a2100d (diff) | |
download | cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.tar.gz cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.tar.bz2 cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.zip |
Make button use border delegate.
Diffstat (limited to 'src/ui/controls/border_delegate.h')
-rw-r--r-- | src/ui/controls/border_delegate.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<BorderProperty>; + static Ptr Create() + { + return std::make_shared<BorderProperty>(); + } + 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"; |