mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-02-08 05:48:30 +08:00
Update tutorials
This commit is contained in:
@@ -98,7 +98,7 @@ namespace demo
|
||||
|
||||
AnimationControl::AnimationControl()
|
||||
:GuiControl(theme::ThemeName::CustomControl)
|
||||
, members(MakePtr<AnimationControlMembers>())
|
||||
, members(Ptr(new AnimationControlMembers))
|
||||
{
|
||||
element = D2DElement::Create();
|
||||
element->BeforeRenderTargetChanged.AttachMethod(this, &AnimationControl::OnBeforeRenderTargetChanged);
|
||||
@@ -107,7 +107,7 @@ namespace demo
|
||||
{
|
||||
auto bounds = new GuiBoundsComposition();
|
||||
bounds->SetAlignmentToParent(Margin(0, 0, 0, 0));
|
||||
bounds->SetOwnedElement(element);
|
||||
bounds->SetOwnedElement(Ptr(element));
|
||||
GetContainerComposition()->AddChild(bounds);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user