{
//Add the style to the current project
//Note: Needs QueuedTask to run
string stylePath = @"C:\MyStyles\MyStyle.stylx";
StyleHelper.AddStyle(Project.Current, stylePath);
StyleProjectItem styleToCheck = Project.Current.GetItems<StyleProjectItem>().First(x => x.Path == stylePath);
//returns true if style matches the current Pro version
bool isCurrent = styleToCheck.IsCurrent;
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)