+
Not found
+Sorry, there's nothing here.
+Telerik UI for Blazor running in a native WinForms app!
+ + +Grid
+ +Button
+ +DatePicker
+@SelectedDate ++
Chart
+ ++
Not found
+Sorry, there's nothing here.
+Telerik UI for Blazor running in a native WPF app!
+ + +Grid
+ +Button
+ +DatePicker
+@SelectedDate ++
Chart
+ +Counter
+ +The current count is: @currentCount
+ + +@code { + int currentCount = 1; + + void IncrementCount() + { + currentCount++; + } +} \ No newline at end of file diff --git a/common/hybrid-blazor-apps/WebviewAppShared/Counter.razor.cs b/common/hybrid-blazor-apps/WebviewAppShared/Counter.razor.cs new file mode 100644 index 00000000..ff1077d3 --- /dev/null +++ b/common/hybrid-blazor-apps/WebviewAppShared/Counter.razor.cs @@ -0,0 +1,4 @@ +namespace WebviewAppShared +{ + public partial class Counter { } +} \ No newline at end of file diff --git a/common/hybrid-blazor-apps/WebviewAppShared/ExampleJsInterop.cs b/common/hybrid-blazor-apps/WebviewAppShared/ExampleJsInterop.cs new file mode 100644 index 00000000..e4f19d8c --- /dev/null +++ b/common/hybrid-blazor-apps/WebviewAppShared/ExampleJsInterop.cs @@ -0,0 +1,39 @@ +using Microsoft.JSInterop; +using System; +using System.Threading.Tasks; + +namespace WebviewAppShared +{ + // This class provides an example of how JavaScript functionality can be wrapped + // in a .NET class for easy consumption. The associated JavaScript module is + // loaded on demand when first needed. + // + // This class can be registered as scoped DI service and then injected into Blazor + // components for use. + + public class ExampleJsInterop : IAsyncDisposable + { + private readonly Lazy