Daily update on 20250618-051714 by Nitload Youmu. Additional Message : Brief support to collection operation in EXPRESS. A collection type added in core lib and compilestack.
Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Controlling.UsrActivity;
|
||||
using StgSharp.MVVM.View;
|
||||
using StgSharp.MVVM;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -48,7 +48,7 @@ namespace StgSharp
|
||||
public Control( ViewMain view ) : base( view ) { }
|
||||
|
||||
public override void CustomizedInitialize(
|
||||
Func<IClickTrigger, string, Action> keyRegister ) { }
|
||||
Func<IClickTrigger, string, Action> keyRegister ) { }
|
||||
|
||||
public override bool ValidateInitializing()
|
||||
{
|
||||
|
||||
@@ -48,17 +48,9 @@ namespace StgSharp
|
||||
public partial class ViewMain
|
||||
{
|
||||
|
||||
internal DemoButtonGroup Group
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
internal DemoButtonGroup Group { get; set; }
|
||||
|
||||
internal TriggerButton OnlyButton
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
internal TriggerButton OnlyButton { get; set; }
|
||||
|
||||
internal class Design : ViewDesigner<ViewMain>
|
||||
{
|
||||
@@ -74,8 +66,7 @@ namespace StgSharp
|
||||
new KeyTrigger( KeyboardKey.Down, KeyStatus.PRESS ),
|
||||
new KeyTrigger( KeyboardKey.Enter, KeyStatus.PRESS ) );
|
||||
Binding.OnlyButton = CreateKeyboardButton(
|
||||
Binding.Stream.ButtonBounding,
|
||||
Binding.Stream.ButtonTextureProvider, true );
|
||||
Binding.Stream.ButtonBounding, Binding.Stream.ButtonTextureProvider, true );
|
||||
Binding.OnlyButton.RenderButtonTexture += Binding.Stream.RenderButton;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,11 +44,7 @@ namespace StgSharp
|
||||
public partial class ViewMain
|
||||
{
|
||||
|
||||
public ParticleRenderStream Stream
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public ParticleRenderStream Stream { get; set; }
|
||||
|
||||
private class NewRender : ViewRender<ViewMain>
|
||||
{
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.MVVM;
|
||||
using StgSharp.MVVM.View;
|
||||
using StgSharp.MVVM.ViewModel;
|
||||
|
||||
using System;
|
||||
@@ -53,8 +52,7 @@ namespace StgSharp
|
||||
_databindingIndexMap = new Dictionary<string, DataBindingEntry>();
|
||||
}
|
||||
|
||||
public override void CustomizedInitialize(
|
||||
[NotNull]ViewModelBase viewModelBinding )
|
||||
public override void CustomizedInitialize( [NotNull]ViewModelBase viewModelBinding )
|
||||
{
|
||||
Designer = new Design( this );
|
||||
Responder = new Control( this );
|
||||
@@ -65,21 +63,21 @@ namespace StgSharp
|
||||
Responder.Initialize( viewModelBinding.MethodLookup );
|
||||
}
|
||||
|
||||
public override bool TryGetObjectReference(
|
||||
string name,
|
||||
out DataBindingEntry entry )
|
||||
public override bool TryGetObjectReference( string name, out DataBindingEntry entry )
|
||||
{
|
||||
if( _databindingIndexMap.TryGetValue( name, out entry ) ) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
try
|
||||
{
|
||||
entry = name switch
|
||||
{
|
||||
_ => default( DataBindingEntry ),
|
||||
};
|
||||
return !entry.ExactEqual( default( DataBindingEntry ) );
|
||||
}
|
||||
catch( Exception ) {
|
||||
catch( Exception )
|
||||
{
|
||||
entry = default( DataBindingEntry );
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user