This commit is contained in:
Zihan Chen
2018-04-02 04:04:11 -07:00
parent 73289ed3a3
commit 282676436e
3 changed files with 6 additions and 2 deletions
@@ -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>
@@ -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));
}
@@ -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))
@@ -81,6 +80,8 @@ namespace demo
{
SetupTextConfig();
}
textBox->ClearUndoRedo();
AddRecentFile(path);
return true;
}