Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
vczh committed Apr 2, 2018
1 parent 73289ed commit 2826764
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tutorial/GacUI_Controls/TextEditor/UI/MainWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
<Instance name="RecentFileItemTemplateResource">
<Instance ref.CodeBehind="false" ref.Class="demo::RecentFileItemTemplate">
<ref.Parameter Name="ViewModel" Class="presentation::controls::GuiToolstripCommand"/>
<ControlTemplate>
<ControlTemplate MinSizeLimitation="LimitToElementAndChildren">
<MenuItemButton Command-ref="ViewModel">
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
</MenuItemButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2513,6 +2513,9 @@ Class (::demo::RecentFileItemTemplateConstructor)
{
(this->__vwsn_precompile_0 = __vwsn_this_);
(this->ViewModel = ::vl::__vwsn::This(__vwsn_this_)->GetViewModel());
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{
(this->__vwsn_precompile_1 = new ::vl::presentation::controls::GuiToolstripButton(::vl::presentation::theme::ThemeName::MenuItemButton));
}
Expand Down
3 changes: 2 additions & 1 deletion Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ namespace demo
textBox->SetText(reader.ReadToEnd());
textBox->Select(TextPos(), TextPos());
textBox->SetFocus();
textBox->ClearUndoRedo();

fileName = dialogOpen->GetFileName();
if (INVLOC.EndsWith(fileName, L".xml", Locale::IgnoreCase))
Expand All @@ -81,6 +80,8 @@ namespace demo
{
SetupTextConfig();
}

textBox->ClearUndoRedo();
AddRecentFile(path);
return true;
}
Expand Down

0 comments on commit 2826764

Please sign in to comment.