mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-17 17:31:44 +08:00
Fix bugs: Misc_ImportFolder without window title; AddressBook toolbar button not auto selected
This commit is contained in:
@@ -177,22 +177,22 @@
|
||||
</ToolstripCommand>
|
||||
|
||||
<ToolstripCommand ref.Name="commandBigIcon" Image-uri="res://Images/BigIcon">
|
||||
<ev.Executed-eval><![CDATA[listViewContacts.SetView(BigIcon);]]></ev.Executed-eval>
|
||||
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(BigIcon); self.ClearViewSelection(); commandBigIcon.Selected = true; }]]></ev.Executed-eval>
|
||||
</ToolstripCommand>
|
||||
<ToolstripCommand ref.Name="commandSmallIcon" Image-uri="res://Images/SmallIcon">
|
||||
<ev.Executed-eval><![CDATA[listViewContacts.SetView(SmallIcon);]]></ev.Executed-eval>
|
||||
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(SmallIcon); self.ClearViewSelection(); commandSmallIcon.Selected = true; }]]></ev.Executed-eval>
|
||||
</ToolstripCommand>
|
||||
<ToolstripCommand ref.Name="commandList" Image-uri="res://Images/List">
|
||||
<ev.Executed-eval><![CDATA[listViewContacts.SetView(ListViewView::List);]]></ev.Executed-eval>
|
||||
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(ListViewView::List); self.ClearViewSelection(); commandList.Selected = true; }]]></ev.Executed-eval>
|
||||
</ToolstripCommand>
|
||||
<ToolstripCommand ref.Name="commandDetail" Image-uri="res://Images/Detail" Selected="true">
|
||||
<ev.Executed-eval><![CDATA[listViewContacts.SetView(Detail);]]></ev.Executed-eval>
|
||||
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(Detail); self.ClearViewSelection(); commandDetail.Selected = true; }]]></ev.Executed-eval>
|
||||
</ToolstripCommand>
|
||||
<ToolstripCommand ref.Name="commandTile" Image-uri="res://Images/Tile">
|
||||
<ev.Executed-eval><![CDATA[listViewContacts.SetView(Tile);]]></ev.Executed-eval>
|
||||
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(Tile); self.ClearViewSelection(); commandTile.Selected = true; }]]></ev.Executed-eval>
|
||||
</ToolstripCommand>
|
||||
<ToolstripCommand ref.Name="commandInformation" Image-uri="res://Images/Information">
|
||||
<ev.Executed-eval><![CDATA[listViewContacts.SetView(Information);]]></ev.Executed-eval>
|
||||
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(Information); self.ClearViewSelection(); commandInformation.Selected = true; }]]></ev.Executed-eval>
|
||||
</ToolstripCommand>
|
||||
|
||||
<Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
|
||||
|
||||
@@ -264,6 +264,8 @@ Closures
|
||||
void __vwsnf23_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
|
||||
{
|
||||
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::BigIcon);
|
||||
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
|
||||
::vl::__vwsn::This(__vwsnthis_0->commandBigIcon)->SetSelected(true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
@@ -276,6 +278,8 @@ Closures
|
||||
void __vwsnf24_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
|
||||
{
|
||||
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::SmallIcon);
|
||||
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
|
||||
::vl::__vwsn::This(__vwsnthis_0->commandSmallIcon)->SetSelected(true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
@@ -288,6 +292,8 @@ Closures
|
||||
void __vwsnf25_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
|
||||
{
|
||||
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::List);
|
||||
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
|
||||
::vl::__vwsn::This(__vwsnthis_0->commandList)->SetSelected(true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
@@ -300,6 +306,8 @@ Closures
|
||||
void __vwsnf26_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
|
||||
{
|
||||
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::Detail);
|
||||
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
|
||||
::vl::__vwsn::This(__vwsnthis_0->commandDetail)->SetSelected(true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
@@ -312,6 +320,8 @@ Closures
|
||||
void __vwsnf27_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
|
||||
{
|
||||
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::Tile);
|
||||
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
|
||||
::vl::__vwsn::This(__vwsnthis_0->commandTile)->SetSelected(true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
@@ -324,6 +334,8 @@ Closures
|
||||
void __vwsnf28_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
|
||||
{
|
||||
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::Information);
|
||||
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
|
||||
::vl::__vwsn::This(__vwsnthis_0->commandInformation)->SetSelected(true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<Instance name="MainWindowResource">
|
||||
<Instance ref.CodeBehind="false" ref.Class="demo::MainWindow" xmlns:demo="demo::*">
|
||||
<Window ref.Name="self" ClientSize="x:640 y:480">
|
||||
<Window ref.Name="self" Text="Misc_ImportFolder" ClientSize="x:640 y:480">
|
||||
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0">
|
||||
<att.Rows>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
|
||||
@@ -64,6 +64,9 @@ namespace demo
|
||||
{
|
||||
::vl::__vwsn::This(this->self)->SetClientSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = static_cast<::vl::vint>(640); __vwsn_temp__.y = static_cast<::vl::vint>(480); return __vwsn_temp__; }());
|
||||
}
|
||||
{
|
||||
::vl::__vwsn::This(this->self)->SetText(::vl::WString(L"Misc_ImportFolder", false));
|
||||
}
|
||||
(this->__vwsn_precompile_0 = new ::vl::presentation::compositions::GuiTableComposition());
|
||||
{
|
||||
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
|
||||
|
||||
Reference in New Issue
Block a user