mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-23 07:45:59 +08:00
...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user