Repository navigation
Closed
Description
MainPage.xaml:
<Page x:Class="UnoTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UnoTest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid Grid.Row="0"
Background="LightBlue">
<TextBlock x:Name="TextBlock"
Margin="20"
FontSize="50"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding NumberOfClicks}" />
</Grid>
<Button Grid.Row="1"
FontSize="35"
Foreground="White"
Background="Green"
Content="Click Me !"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Command="{Binding ClickMeButtonCommand}" />
</Grid>
</Page>
MainPage.xaml.cs:
using UnoTest.Shared.ViewModels;
using Windows.UI.Xaml.Controls;
namespace UnoTest
{
public sealed partial class MainPage : Page
{
public MainPage()
{
InitializeComponent();
DataContext = new MainPageViewModel();
}
}
}
MainPageViewModel.cs:
using System.ComponentModel;
using System.Windows.Input;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
namespace UnoTest.Shared.ViewModels
{
#if __WASM__
[Bindable(true)]
#endif
public class MainPageViewModel : ViewModelBase
{
private int numberOfClicks = 0;
public MainPageViewModel()
{
ClickMeButtonCommand = new RelayCommand(() => NumberOfClicks += 1);
}
public ICommand ClickMeButtonCommand { get; }
public int NumberOfClicks
{
get => numberOfClicks;
set
{
numberOfClicks = value;
RaisePropertyChanged(nameof(NumberOfClicks));
}
}
}
}
After about 50 clicks, FireFox console shows error:
MvvmLight compiled to .Net Standard 2.0 has been used.
Metadata
Metadata
Assignees
Labels
No labels

Activity
jeromelaban commentedon Jun 16, 2018
The first message is only informative, and has been removed in later builds of the mono-wasm runtime. It only means that the garbage collector is running, and considering the "In use" size, 1.4MB is a good number to have for your sample.
You can change the runtime version by using the
MonoWasmSDKUri, and find a runtime here: https://jenkins.mono-project.com/job/test-mono-mainline-wasm/:Default Configurationazure artifactsMonoWasmSDKUriproperty in your project.Those are nighly/alpha builds for testing, but may change the GC behavior.
Merge pull request unoplatform#45 from unoplatform/dev/djo/hot-reload…
chore: MOAR LOGGING
chore: MOAR LOGGING