Update tutorials

This commit is contained in:
vczh
2022-12-09 16:45:30 -08:00
parent 03a5ee8544
commit cedfc035b9
16 changed files with 37 additions and 37 deletions

View File

@@ -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);
}