From f98cdf9b63a5c3dc90f3a0c564ba9935bbf61c5e Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Wed, 9 Apr 2025 13:30:21 +0200 Subject: [PATCH] fixed example plugin --- ExamplePlugin/ExampleUi.xaml | 8 ++++++-- ExamplePlugin/ExampleUi.xaml.cs | 19 ++++++++++++------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/ExamplePlugin/ExampleUi.xaml b/ExamplePlugin/ExampleUi.xaml index cb585fd..3165d47 100644 --- a/ExamplePlugin/ExampleUi.xaml +++ b/ExamplePlugin/ExampleUi.xaml @@ -1,13 +1,17 @@ - + Title="AddRPCView" Height="Auto" Width="Auto" + Loaded="ExampleUi_OnLoaded"> This is a Test Ui for the Example Plugin + \ No newline at end of file diff --git a/ExamplePlugin/ExampleUi.xaml.cs b/ExamplePlugin/ExampleUi.xaml.cs index bcfc25f..b8a3b42 100644 --- a/ExamplePlugin/ExampleUi.xaml.cs +++ b/ExamplePlugin/ExampleUi.xaml.cs @@ -1,13 +1,18 @@ -using System.Windows; +using System; +using System.Windows; using System.Windows.Controls; -namespace ExamplePlugin +public partial class ExampleUi : Page { - public partial class ExampleUi : Page + private int counter = 0; + public ExampleUi() { - public ExampleUi() - { - InitializeComponent(); - } + InitializeComponent(); + } + + private void ExampleUi_OnLoaded(object sender, RoutedEventArgs e) + { + counter++; + TestLabel.Text = counter.ToString(); } } \ No newline at end of file