Skip to content

Commit

Permalink
chore: expose RaisePropertyChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Nov 20, 2024
1 parent 0848ec9 commit b054a3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AddIns/Uno.WinUI.Graphics3DGL/GLCanvasElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Microsoft.Extensions.Logging;
using Silk.NET.OpenGL;
Expand Down Expand Up @@ -232,13 +233,16 @@ public bool? IsGLInitialized
get => _isGlInitialized;
private set
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsGLInitialized)));
_isGlInitialized = value;
RaisePropertyChanged();
}
}

public event PropertyChangedEventHandler? PropertyChanged;

protected void RaisePropertyChanged([CallerMemberName] string? propertyName = null)
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));

private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
{
_nativeOpenGlWrapper = GetOrCreateNativeOpenGlWrapper(XamlRoot!, _getWindowFunc);
Expand Down

0 comments on commit b054a3d

Please sign in to comment.