kl.ui.framework.uikit.dllPE analysis report - No threats detected
Run integrity
sample ranThe guest staged the sample and launched it, so what follows describes this file rather than an empty desktop.
No threats detected
0/100
Nothing scored against this sample. A run reads as suspicious from 35.
Why this verdict
- 1 high-risk capability(ies): reflective code loading
- Malicious strings: keylogging / surveillance, injection / execution
- .NET source: Keylogging primitives
- Valid code signature (AO Kaspersky Lab) - trusted provenance; heuristic score discounted below malicious (no definitive malicious evidence)
Model reading
Evidence ledger above, row by row. Published verdict rests on this column and on nothing to its right.
Reads this report's derived findings, never the sample itself.
A model reading exists for this scan and is shown to the submitter and to staff only. It is a second opinion about evidence the score already priced, it is worth no points, and on a public page it would stand beside the verdict with no grounding a stranger could check.
- HIGH Injection/execution API strings
- HIGH Surveillance/keylogging strings
Analysis layers
Detection signatures
9 detected| Severity | Detection | Evidence | Layer |
|---|---|---|---|
| HIGH |
.NET source: Keylogging primitives
MITRE T1056.001
|
- | dynamic |
| HIGH |
Injection/execution API strings
MITRE T1055
|
string
setwindowshookex
matched string
|
static |
| HIGH |
Surveillance/keylogging strings
MITRE T1056
|
string
getclipboarddata
matched string
string
getforegroundwindow
matched string
string
screenshot
matched string
string
webcam
matched string
|
static |
| MED |
Anti-analysis strings present
MITRE T1497
|
string
malware
matched string
|
static |
| MED |
Ransomware-related strings
MITRE T1486
|
string
.crypt
matched string
|
static |
| MED |
Reads the clipboard
MITRE T1115
|
string
getclipboarddata
found in the sample's strings
|
static |
| LOW |
.NET source: Heavy string obfuscation / protector
MITRE T1027
|
- | dynamic |
| LOW |
Screen-capture capability
MITRE T1113
seen in 8% of benign software
|
capability
getclipboarddata
capability: screen_capture
|
static |
| INFO |
.NET managed assembly (decompiled)
|
- | static |
What the tests returned
8 testsEach test this run performed and what it returned. A test that was not performed says so rather than reading as a negative result.
| Test | Result |
|---|---|
| Persistence mechanisms | none established at runtime |
| Cross-process injection | none observed |
| Payloads written to disk | none observed |
| Network connections | not tested - internet was disabled |
| Behavioural rule matches (Sigma) | none observed |
| Known-malicious hash (reputation sources) | no source reported this file |
| Local anti-virus engine | reported no detection |
| Anti-analysis / evasion checks | not measured on this run - no in-process API monitor reported in, so the runtime anti-debug and anti-VM calls were never watched |
Absence of an observation is not proof of absence - see Coverage for what this run could and could not test.
Arguing against malice
- The file carries a code signature (AO Kaspersky Lab).
- The local anti-virus engine reported no detection.
- No reputation source reported this file as malicious.
How much weight this carries
Structure only. Structural evidence only. Nothing matching this verdict was seen running. The one fact that decided it: capability analysis of the file's imports.
Structure
What the file is made of: headers, imports, how it was built and whether it was signed.
Sections & resources
How the file is laid out in memory, and what is embedded in it: section roles, access rights, entropy and every resource entry.
Signatures & packing
What matched and what is hidden: signature rules, detected capabilities, family attribution, packer detection, unpacked payloads and recovered configuration.
Strings
The readable content: embedded secrets, flagged strings and everything extraction recovered.
Code
What the sample would execute: the emulated API call sequence, and the disassembled entry point.
Antivirus engine
no signature matched signature set 28146 - 3.6M signaturesNothing in the signature set below matched this file. That is one engine's negative answer against one signature set on one day, and it is not a verdict. A signature engine only recognises what has already been named and published, so a file nobody has named yet scans exactly like a file that is harmless. What this file does when it runs is the stronger evidence; read the behaviour sections for that.
| Signature set | Value |
|---|---|
| Set version | 28146 |
| Signatures in the set | 3,642,835 |
| Set published | 07 Oct 2026 06:24 +0000 |
| Age when this file was scanned | same day |
A negative answer is only as good as the signature set that gave it, so the set is recorded with the result and the result can be reproduced against it.
Local ML assessment
0.4 of 100 8 strongest of 2568 featuresA gradient-boosted model running entirely on this host scored this file 0.4 of 100 on structure alone: its headers, sections, imports, strings and signature. The file was not executed and nothing about it left this machine.
Read this as corroboration and not as a verdict. Measured across this corpus the model separates signed software from unsigned software more sharply than malicious from benign, so it is charged at most 15 of 100 verdict points and only on top of evidence this report measured for itself. The eight features below are the ones that moved it furthest.
| Structural feature | What it means | Pushes | Weight |
|---|---|---|---|
| image flag dll | Image flag: a library rather than a program | towards benign | -1.6199 |
| countersigned at | When a timestamp authority countersigned the signature (1783527040) | towards benign | -1.4646 |
| certificate chain length | How many certificates the chain holds (3) | towards benign | -0.6552 |
| feature column 991 | Size of the data appended after the last section | towards malicious | +0.6035 |
| parser warning: Suspicious flags set for section... | Header defect reported by the parse: Suspicious flags set for section... (0) | towards benign | -0.5350 |
| optional.subsystem | Subsystem the program runs under (console, windowed or driver) (3) | towards benign | -0.3844 |
| debug directory address | Location of the debug table (3925436) | towards benign | -0.3462 |
| security directory size | Size of the security table (20520) | towards benign | -0.3231 |
A weight is a log-odds nudge away from the model's own baseline, not a percentage point. Where a feature names a section, an import or a build id, the number beside it is the model's own hashed cell for that name rather than a measurement of the file: two names can share one cell and the sign comes from the hash, so no number is shown for those rows.
- High-entropy overlay (7.6, 24592 bytes)
- .NET managed binary (no obfuscator signature matched)
Secrets & malicious strings
7 flagged stringsFlagged string categories
| Indicator | Found in | Evidence from the sample |
|---|---|---|
| getclipboarddata | raw bytes | present in the file bytes only |
| getforegroundwindow | raw bytes | present in the file bytes only |
| screenshot | raw bytes | present in the file bytes only |
| webcam | extracted string | WebCamera |
| Indicator | Found in | Evidence from the sample |
|---|---|---|
| setwindowshookex | raw bytes | present in the file bytes only |
| Indicator | Found in | Evidence from the sample |
|---|---|---|
| malware | raw bytes | present in the file bytes only |
| Indicator | Found in | Evidence from the sample |
|---|---|---|
| .crypt | raw bytes | present in the file bytes only |
Capabilities
1 behaviour bucket| Severity | Capability | MITRE | APIs |
|---|---|---|---|
| med | Screen capture Grabs the screen / clipboard |
T1115 | getclipboarddata |
Security mitigations
partial posture.NET managed
| Assembly | kl.ui.framework.uikit 21.26.4.406 |
|---|---|
| Streams | #~ #Strings #US #GUID #Blob |
| P/Invoke | 0 unmanaged import(s) |
| Resources | kl.ui.framework.uikit.g.resources |
Sections
3 sections · the file's memory layout| Section | Virtual addr | Raw size | Virtual size | Access | Entropy |
|---|---|---|---|---|---|
|
.textEP
Executable code
|
0x2000 |
3.8 MB
|
3.8 MB
|
EXECUTEREAD
|
6.0803
|
|
.rsrc
Resources
|
0x3d0000 |
1.5 KB
|
1.0 KB
|
READ
|
2.4523
|
|
.reloc
Base relocations
|
0x3d2000 |
512.0 B
|
12.0 B
|
READ
|
0.1019
|
Imports
1 funcs / 1 DLLRuntime call marks need the in-guest monitor, which did not arm on this run.
Open the imports pageBinary metadata
what the headers declare about this build| Resource langs | NEU |
|---|---|
| Debug info | yes |
| TLS callbacks | no |
Code signing
Trusted signature| Signed by | AO Kaspersky Lab |
|---|---|
| Issuer (CA) | GlobalSign GCC R45 EV CodeSigning CA 2020 |
| Valid | 2025-07-14 → 2028-07-14 |
| Serial | 714bb42f38f3d6afe4a07357 |
| Algorithm | SHA256-RSA |
| Signed at | 2026-07-08T16:10:54+00:00 proven |
|---|---|
| Countersigned by | DigiCert SHA256 RSA4096 Timestamp Responder 2025 1 under DigiCert Trusted Root G4 |
| Countersignature form | RFC3161 token a signed structure issued by the timestamp authority, which is the stronger of the two forms and the one preferred here when a file carries both |
| Authority revocation | good this authority's own certificate was not revoked, so the proof above does not rest on a withdrawn identity |
| Second reading | 2026-07-08T16:10:54+00:00 agrees with ours |
| Second opinion | verified an independent verifier's separate answer about the same countersignature, kept so the two can be compared |
| Signature | Digest | Chain |
|---|---|---|
| #1 further signer | matches these bytes | not verifiable here |
Certificate chain (3)
| Subject | Issuer | Valid to | Algo |
|---|---|---|---|
| GlobalSign Code Signing Root R45 | GlobalSign | 2029-03-18 | SHA384-RSA |
| GlobalSign GCC R45 EV CodeSigning… | GlobalSign Code Signing Root R45 | 2030-07-28 | SHA256-RSA |
| AO Kaspersky Lab | GlobalSign GCC R45 EV CodeSigning… | 2028-07-14 | SHA256-RSA |
Resources
Everything the binary carries inside it: icons, bitmaps, cursors, dialogs, string tables, the manifest and the version block. Select an entry to preview it and take a copy.
Resources
Resource Hacker viewSelect a resource from the tree to inspect its language, size, RVA offset, MD5, entropy and detected content signature - like opening the binary in Resource Hacker.
| Type | Version Info |
|---|---|
| Name / ID | 1 |
| Language | NEU |
| Size | 936.0 B |
| RVA offset | 0x3d0058 |
| Content signature | Version Info |
| MD5 | 035f2226581cd989c644c835a3895092 |
| Entropy | 3.49 |
| Comments | |
|---|---|
| CompanyName | AO Kaspersky Lab |
| FileVersion | 21.26.4.406 |
| ProductName | Kaspersky |
| InternalName | kl.ui.framework.uikit.dll |
| LegalCopyright | © 2026 AO Kaspersky Lab. All Rights Reserved. |
| ProductVersion | 21.26.4.406 |
| FileDescription | KL.UI.Framework.UiKit |
| Assembly Version | 21.26.4.406 |
| OriginalFilename | kl.ui.framework.uikit.dll |
Capability detection
18 capabilitiesThe capability analysis reports a limitation on this class of file: (internal) .NET file limitation.
Read what follows as the capabilities of the code that could be read, not of the file as a whole.
| Capability | Namespace |
|---|---|
| read file in .NET | host-interaction/file-system/read |
| create process in .NET | host-interaction/process/create |
| suspend thread | host-interaction/thread/suspend |
| invoke .NET assembly method | load-code/dotnet |
| manipulate unmanaged memory in .NET | host-interaction/memory |
| contain loop | - |
| check if file exists | host-interaction/file-system/exists |
| check if directory exists | host-interaction/file-system/exists |
| enumerate files in .NET | host-interaction/file-system/files/list |
| check file extension in .NET | host-interaction/file-system |
| find data using regex in .NET | data-manipulation/regex |
| get common file path | host-interaction/file-system |
| access .NET resource | executable/resource |
| create a process with modified I/O handles and window | host-interaction/process/create |
| implement UI automation client in .NET | host-interaction/ui/automation |
| contains PDB path | executable/pe/pdb |
| compiled to the .NET platform | runtime/dotnet |
Signature matches
0 findings · 6 file properties · 0 scoredThese say what the file IS or holds - bitness, subsystem, an overlay, an embedded macro stream, which compiler built it. Ordinary files match several, and none of them carry weight in the score.
No signature rule identified a threat in this file.
Extracted strings
showing 200 of 4374- !This program cannot be run in DOS mode.
- .text
- `.rsrc
- @.reloc
- *.sh
- PEG5O
- *.si
- *.sM
- *.sS
- *.sZ
- *.st
- *.sC
- *.sF
- *.sx
- *.sd
- *.sY
- *.se
- #Strings
- #GUID
- <child>5__10
- <frameworkContentElement>5__10
- <element>5__10
- <GetFontFamilies>d__40
- <OnApplyTemplate>b__100_0
- <SuppressCancelButtons>b__110_0
- <Dispose>b__10_0
- <Initialize>b__10_0
- <UpdateTextBlock>b__10_0
- <ComputeRowHeights>b__10_0
- <CleanupMetadataInstantly>b__10_0
- <>c__DisplayClass10_0
- <ProvideValue>b__20_0
- <get_MaxRow>b__20_0
- <>c__DisplayClass20_0
- <SyncCaretPosition>b__130_0
- <CreateItemToIndexBinding>b__30_0
- <StartTrackStateChanges>b__30_0
- <StartTrackChangesFromSystemColors>b__30_0
- <>c__DisplayClass30_0
- <TryCloseOverlayOnMouseClick>b__40_0
- <>c__DisplayClass40_0
- <OnIsActiveChanged>b__60_0
- <GetCachedClipTargetElements>b__70_0
- <OnAttached>b__0_0
- <WhenOpened>b__0_0
- <WhenInitialized>b__0_0
- <GetHashCode>b__0_0
- <WhenVisible>b__0_0
- <CreateLeftToRightString>b__0_0
- <.ctor>b__0_0
- <ClearInputFocus>b__0_0
- <>c__DisplayClass0_0
- <ExecuteWithMessageSuppression>g__wndProc|0_0
- <Lex>g__isWhiteSpace|0_0
- <GetValue>g__GetValue|0_0
- <RestoreCancelButtons>b__111_0
- <get_ErrorMessage>b__11_0
- <ProvideBinding>b__11_0
- <ApplySealExpansion>b__11_0
- <CreateAssemblyOrderList>b__11_0
- <>c__DisplayClass11_0
- <>c__DisplayClass21_0
- <SuppressBackwardInteraction>b__31_0
- <StopTrackStateChanges>b__31_0
- <>c__DisplayClass31_0
- <>c__DisplayClass141_0
- <OnApplyTemplate>b__41_0
- <TryCloseOverlayOnMouseWheel>b__41_0
- <>c__DisplayClass41_0
- <>c__DisplayClass51_0
- <InvalidatePopupIsOpenBinding>b__61_0
- <ClearButtonBindings>b__61_0
- <>c__DisplayClass61_0
- <GetPropertyMetadata>b__1_0
- <OnSelectionChanged>b__1_0
- <WhenClosed>b__1_0
- <WhenInvisible>b__1_0
- <SetCulture>b__1_0
- <Resolve>b__1_0
- <AddNotification>b__1_0
- <get_Position>b__1_0
- <.ctor>b__1_0
- <CreateBehaviors>b__1_0
- <SetFocus>b__1_0
- <GetNameText>b__1_0
- <>c__DisplayClass1_0
- <>c__DisplayClass102_0
- <GetCancelButtons>b__112_0
- <Convert>b__12_0
- <AddToSearchFlow>b__12_0
- <>c__DisplayClass12_0
- <OnValueRequested>b__22_0
- <TryCheck>b__22_0
- <>c__DisplayClass22_0
- <CreateBorderFadeOpacityMask>b__32_0
- <RestoreBackwardInteraction>b__32_0
- <>c__DisplayClass32_0
- <UpdateButtonBindings>b__62_0
- <>c__DisplayClass62_0
- <Dispose>b__2_0
- <SetLayoutTransformBinding>b__2_0
- <HandleAll>b__2_0
- <RemoveNotification>b__2_0
- <GetLocalizerScopePattern>b__2_0
- <GetSelectedInfo>b__2_0
- <.ctor>b__2_0
- <ClearFocus>b__2_0
- <>c__DisplayClass2_0
- <PatchResourcesInSR>g__GetType|2_0
- <ValidateResources>g__validateResolveChain|2_0
- <TraverseFlowDocumentElements>g__IsNotEmptyBlockCollection|2_0
- <CreateBitmapFrame>b__13_0
- <GetCultureSearchParts>b__13_0
- <TryRemoveEmptyRows>b__13_0
- <Convert>b__13_0
- <>c__DisplayClass13_0
- <TryUncheck>b__23_0
- <>c__DisplayClass23_0
- <UpdateFilteredItems>b__133_0
- <OnUnloaded>b__33_0
- <ApplyToggleStyle>b__33_0
- <>c__DisplayClass43_0
- <ClearElementsTracking>b__53_0
- <GetFirstAnimatableChild>b__63_0
- <OnIsEnabledChanged>b__3_0
- <ResetCache>b__3_0
- <OnRegister>b__3_0
- <.ctor>b__3_0
- <ClearNotUsedStrings>b__3_0
- <GetSupportedCulturesList>b__3_0
- <GetText>b__3_0
- <>c__DisplayClass3_0
- <SetFontSize>b__114_0
- <InvalidateTextSelection>b__114_0
- <IsTransparent>b__14_0
- <FillLayout>b__14_0
- <>c__DisplayClass14_0
- <Initialize>b__24_0
- <>c__DisplayClass24_0
- <.ctor>b__34_0
- <>c__DisplayClass34_0
- <OnLoaded>b__44_0
- <UpdateMinutes>b__44_0
- <ClearOverlayCutDecorators>b__54_0
- <>c__DisplayClass64_0
- <UpdateGetFocusBehavior>g__Focus|74_0
- <HandleKeyPress>b__94_0
- <OnSelectionChanged>b__4_0
- <ScanResources>b__4_0
- <GetRules>b__4_0
- <GetText>b__4_0
- <>c__DisplayClass4_0
- <OnApplyTemplate>b__105_0
- <PlaceItem>b__15_0
- <GetScopedControls>b__15_0
- <>c__DisplayClass15_0
- <>c__DisplayClass25_0
- <SwitchPanelExpand>b__35_0
- <StartAutoClose>b__45_0
- <UpdateSelectedItemButton>b__55_0
- <InvalidatePopupTarget>b__65_0
- <>c__DisplayClass65_0
- <EnsureTextRangePropertiesAreInitialized>b__5_0
- <OnApplyTemplate>b__5_0
- <SetPopupMinWidth>b__5_0
- <GetVisibleChildren>b__5_0
- <CreateLocalizer>b__5_0
- <.ctor>b__5_0
- <ScanZipResources>b__5_0
- <GetPronounceableText>b__5_0
- <PrepareResourcesDictionary>b__5_0
- <>c__DisplayClass5_0
- <UpdateGetFocusBehavior>g__Focus|116_0
- <OnAttached>b__16_0
- <ProvideValue>b__16_0
- <ResolveFileScopeObject>b__16_0
- <>c__DisplayClass16_0
- <>c__DisplayClass36_0
- <UpdateDays>b__46_0
- <UpdateItemWidth>b__56_0
- <ApplyFooterButtonStyles>b__66_0
- <>c__DisplayClass66_0
- <>c__DisplayClass76_0
- <GetStyle>b__6_0
- <UpdateTextBlock>b__6_0
- <SetImplicitStyles>b__6_0
- <GetKeys>b__6_0
- <SetPopupMaxHeight>b__6_0
- <GetText>b__6_0
- <>c__DisplayClass6_0
- <GetScopeInstance>b__17_0
- <UpdateThemeFromSystemSource>b__27_0
- <.ctor>b__37_0
- <>c__DisplayClass37_0
- <Dispose>b__47_0
- <UpdateMonths>b__47_0
- <.ctor>b__7_0
- <ScanAssemblyResources>b__7_0
- <GetNameText>b__7_0
- <>c__DisplayClass7_0
No strings match this filter.
Stack and decoded strings were not recovered: no reason was recorded. Only literal strings present in the file are listed above.
Disassembly
entry point · x86 · 28 insnsNothing in this view
This sample produced no results for this part of the static analysis.
Import fingerprint
no related sample| Fingerprint | 3:rGsKZK:2Y |
|---|---|
| Imports read | 1 function from 1 library (1 distinct) |
| Comparable | no (fewer than 8 distinct imports) |
No comparison was run: this import table is not distinctive enough for a match to mean anything.
AI security review
advisory, not scoredModel prose about this scan goes to its owner
A review exists for this assembly and is shown to whoever submitted it. Findings, the type tree and the source below are public with the rest of this report.
Decompiled .NET source
2 findings C# 838 types · 18182 of 65839 lines shownDecompiled from IL. Every type defined in the assembly is listed below; on a merged or packed sample some of it belongs to a bundled library rather than to the author. Behaviour review and the AI layer read only the author's own types.
- Microsoft.CodeAnalysis class EmbeddedAttribute generated 91 chars
- System.Runtime.CompilerServices class IsReadOnlyAttribute generated 93 chars
- System.Runtime.CompilerServices class NullableAttribute generated 547 chars
- System.Runtime.CompilerServices class NullableContextAttribute generated 388 chars
- XamlGeneratedNamespace class GeneratedInternalTypeHelper generated 1322 chars
- KasperskyLab.UI.Framework.UiKit.MarkupExtensions.ItemIndex class ItemIndexToVisibiltyInverseExtension own 196 chars
- KasperskyLab.UI.Framework.UiKit.MarkupExtensions.DataBinding class CompactMultiBindingExtension own 726 chars
- KasperskyLab.UI.Framework.UiKit.MarkupExtensions.DataBinding class ConditionalBindingExtension own 1551 chars
- KasperskyLab.UI.Framework.UiKit.MarkupExtensions.Common class UIKitTemplateBindingExtension own 1681 chars
- KasperskyLab.UI.Framework.UiKit.MarkupExtensions.Common class UIKitThicknessExtension own 2392 chars
- KasperskyLab.UI.Framework.UiKit.Localization class LocalizationCultureInfo own 5776 chars
- KasperskyLab.UI.Framework.UiKit.Localization class LocalizationManager own 8127 chars
- KasperskyLab.UI.Framework.UiKit.Localization class LocalizationParameters own 2618 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources class ResourceDescriptor own 2119 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources class ResourceItem own 325 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources class ResourceProvider own 6449 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources class ResourceProviderException own 430 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources class ResourceUri own 736 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources class ResourcesLoadedEventArgs own 305 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources.ResourceBrowsers class AssemblyResourceBrowser own 5497 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources.ResourceBrowsers class BaseResourceBrowser own 2785 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources.ResourceBrowsers class FileSystemResourceBrowser own 2125 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources.ResourceBrowsers interface IResourceBrowser own 267 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources.ResourceBrowsers interface IZipArchiveProvider own 112 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources.ResourceBrowsers interface IZipEntryProvider own 110 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Resources.ResourceBrowsers class ZipArchiveResourceBrowser own 4761 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Patchers class ResourcePatcher own 3434 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup class BaseLocalizationMarkupExtension own 7013 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup interface IBindingProvider own 72 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup interface ILocalizationMarkup own 43 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup class LocalizationMarkupException own 440 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Metadata class MetadataHelper own 1001 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Metadata class MetadataItem own 629 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Metadata class MetadataStorage own 1666 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Metadata class MetadataStorageSettings own 102 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Xaml class ResExtension own 906 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Strings class LocExtension own 3835 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Strings class LocOption own 265 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Strings class LocOptionFactory own 180 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Strings class LocParameter own 525 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Strings class LocParameterCollection own 1220 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Images class ImgExtension own 2444 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Images enum ImgExtensionMode own 93 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Files class FileExtension own 1181 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Extensions.Files enum FileExtensionMode own 71 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting interface IResourceProvider own 77 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class ResFromBoolExtension own 828 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class ResFromCollectionExtension own 1429 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class ResFromConverterExtension own 228 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class ResFromSourceExtension own 1667 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class ResourceCollection own 2501 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class ResourceConverterExtension own 315 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class ResourceDelivery own 10230 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Markup.Converting class SourceOrFallbackExtension own 641 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class BaseDictionaryScope own 1858 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class BaseLocalizer own 4276 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer interface ILocalizer own 152 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer interface ILocalizerOption own 78 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer interface IScope own 106 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer interface IScopeResourceSelector own 71 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class LocalizerException own 395 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class LocalizerExtensions own 959 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class LocalizerFactory own 2593 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer struct LocalizerKey own 238 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class LocalizerParameterFactory own 2096 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class LocalizerParameters own 708 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class LocalizerSettings own 567 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer class ScopeMetaInfo own 2622 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer enum ScopeType own 48 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Xaml interface IXamlLocalizer own 86 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Xaml class XamlLocalizer own 675 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Xaml class XamlLocalizerExtensions own 390 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Xaml class XamlScope own 1849 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings interface IScopeDictionary own 373 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings interface IStringLocalizer own 348 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings interface IStringLocalizerOption own 73 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings interface IStringParamResolver own 81 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class ScopeDictionary own 1644 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class ScopeDictionaryBuilder own 483 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class StringCache own 4703 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class StringLocalizer own 2791 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class StringLocalizerExtensions own 2750 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class StringParamResolver own 3875 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class StringResolver own 971 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings class StringScope own 1068 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing interface IExpressionEvaluator own 551 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing interface IKeyValueEvaluator own 367 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing class Lexer own 5378 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing struct LineColumn own 175 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing class Parser own 6389 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing class PluralFormInfoProvider own 5735 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing struct Position own 3375 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing struct Token own 931 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing enum TokenType own 189 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing class Validator own 3167 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Extensions class StringExtensions own 1795 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Expressions interface IExpression own 35 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Expressions class KeyExpression own 324 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Expressions class LiteralExpression own 549 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Expressions class PluralExpression own 1301 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Expressions class ValueExpression own 1456 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Expressions class VariableExpression own 263 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Exceptions class ExpectTokensException own 1816 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Exceptions class ExpectedSymbolException own 634 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Exceptions class SyntaxErrorException own 359 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Exceptions class UnexpectedSymbolException own 524 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Exceptions class ValidationErrorException own 346 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators class ValueExpressionEvaluator own 1993 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class AstKeyValueEvaluator own 1306 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class Comment own 355 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class Expression own 440 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class Item own 69 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class KeyRef own 286 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class KeyValue own 915 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class Operand own 118 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class Param own 405 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class PluralForm own 879 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class PluralFormExpression own 294 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Parsing.Evaluators.Ast class StringLiteral own 273 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Options class ChangeCaseOption own 1290 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Strings.Options enum ChangeCaseOptionMode own 126 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Images interface IImageLocalizer own 303 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Images class ImageLocalizer own 6952 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Images class ImageLocalizerExtensions own 2267 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Images class ImageResource own 992 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Images class ImageScope own 311 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Images class ImageScopeResourceSelector own 797 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Files class FileLocalizer own 2161 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Files class FileLocalizerExtensions own 1410 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Files class FileScope own 308 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Files class FileScopeResourceSelector own 304 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Localizer.Files interface IFileLocalizer own 198 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Exceptions class LocException own 383 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Exceptions class LocExceptionArgs own 407 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Exceptions class LocExceptionPolicy own 825 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Exceptions class LocExceptionPolicySettings own 345 chars
- KasperskyLab.UI.Framework.UiKit.Localization.Exceptions class LocExceptionProcessor own 3060 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class ConfirmationObject own 2245 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class ConfirmationRequest own 1417 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class ConfirmationRequest own 2078 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class FileSystemPathObject own 137 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class FileSystemPathRequest own 2494 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class FileSystemPathRequest own 1012 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity interface IInteractionAware own 132 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity interface IInteractionObjects own 212 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity interface IInteractionRequest own 263 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionContext own 653 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionObject own 2441 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionRequest own 916 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionRequest own 2054 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionRequestBase own 4114 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionRequestBase own 51 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionRequestTrigger own 2419 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class InteractionRequestedEventArgs own 350 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class RegistryItem own 732 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class RegistryItemObject own 116 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class RegistryItemRequest own 690 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity enum SaveDataDecision own 61 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class SaveDataObject own 1840 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class SaveDataRequest own 1797 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity class SaveDataRequest own 1873 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Internals class DataContextConfirmationObject own 295 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Internals class DataContextInteractionObject own 292 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Internals class DataContextSaveDataObject own 283 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Internals class InteractionObjects own 755 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class AttachableCollection own 3253 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class Behavior own 1848 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class Behavior own 3056 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class BehaviorCollection own 1551 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class Behavior own 328 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class EventTrigger own 987 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class EventTriggerBase own 216 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class EventTriggerBase own 5260 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class Interaction own 2965 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class PropertyChangedTrigger own 764 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class RoutedEventTrigger own 3178 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class TriggerAction own 321 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class TriggerAction own 2154 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class TriggerActionCollection own 2232 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class TriggerBase own 315 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class TriggerBase own 2685 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Core class TriggerCollection own 1575 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Actions class ChooseFileAction own 4089 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Actions class InvokeCommandAction own 4027 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Actions class SaveFileAction own 3940 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Actions.NativeDialogs interface INativeDialogLauncher own 158 chars
- KasperskyLab.UI.Framework.UiKit.Interactivity.Actions.NativeDialogs class NativeDialogLauncher own 1256 chars
- KasperskyLab.UI.Framework.UiKit.Input.Shortcuts class Shortcut own 1595 chars
- KasperskyLab.UI.Framework.UiKit.Input.Shortcuts class ShortcutCollection own 62 chars
- KasperskyLab.UI.Framework.UiKit.Input.Shortcuts class WindowShortcut own 481 chars
- KasperskyLab.UI.Framework.UiKit.Input.Shortcuts class WindowShortcutBehavior own 5439 chars
- KasperskyLab.UI.Framework.UiKit.Input.Shortcuts class WindowShortcutCollection own 74 chars
- KasperskyLab.UI.Framework.UiKit.Input.Shortcuts class WindowShortcutEventArgs own 249 chars
- KasperskyLab.UI.Framework.UiKit.Input.Shortcuts class WindowShortcuts own 184 chars
- KasperskyLab.UI.Framework.UiKit.Input.Security interface ISecureClipboard own 207 chars
- KasperskyLab.UI.Framework.UiKit.Input.Security interface ISecureInputClient own 153 chars
- KasperskyLab.UI.Framework.UiKit.Input.Security interface ISecureInputManager own 208 chars
- KasperskyLab.UI.Framework.UiKit.Input.Security class SecureClipboard own 6725 chars
- KasperskyLab.UI.Framework.UiKit.Input.Security enum SecureClipboardCleanupMode own 61 chars
- KasperskyLab.UI.Framework.UiKit.Input.Security class SecureInputAction own 364 chars
- KasperskyLab.UI.Framework.UiKit.Input.Security.Internals class EmptySecureInputManager own 275 chars
- KasperskyLab.UI.Framework.UiKit.Input.Focus class FocusVisualExtension own 2602 chars
- KasperskyLab.UI.Framework.UiKit.Input.Focus enum FocusVisualType own 57 chars
- KasperskyLab.UI.Framework.UiKit.Input.Focus interface IKeyboardFocusController own 89 chars
- KasperskyLab.UI.Framework.UiKit.Input.Focus interface IKeyboardFocusControllerHandler own 120 chars
- KasperskyLab.UI.Framework.UiKit.Input.Focus interface IKeyboardFocusEventsHandler own 111 chars
- KasperskyLab.UI.Framework.UiKit.Input.Focus class InputFocusManager own 2273 chars
- KasperskyLab.UI.Framework.UiKit.Input.Focus class KeyboardEventsHandlerBehavior own 6878 chars
- KasperskyLab.UI.Framework.UiKit.Input.Filter class DelegateInputFilter own 429 chars
- KasperskyLab.UI.Framework.UiKit.Input.Filter interface IInputFilter own 74 chars
- KasperskyLab.UI.Framework.UiKit.Input.Filter class InputFilters own 1975 chars
- KasperskyLab.UI.Framework.UiKit.Illustrations class UIKitIllustrationBuilder own 2236 chars
- KasperskyLab.UI.Framework.UiKit.Illustrations class UIKitIllustrationExtensionBase own 586 chars
- KasperskyLab.UI.Framework.UiKit.Illustrations class UIKitIllustrationMetadata own 425 chars
- KasperskyLab.UI.Framework.UiKit.Illustrations class UIKitIllustrationMetadataStorage own 903 chars
- KasperskyLab.UI.Framework.UiKit.Icons class UIKitIconBuilder own 2571 chars
- KasperskyLab.UI.Framework.UiKit.Icons class UIKitIconMetadata own 241 chars
- KasperskyLab.UI.Framework.UiKit.Icons class UIKitIconMetadataStorage own 765 chars
- KasperskyLab.UI.Framework.UiKit.Icons enum UIKitIcon_12 own 214 chars
- KasperskyLab.UI.Framework.UiKit.Icons enum UIKitIcon_16 own 12956 chars
- KasperskyLab.UI.Framework.UiKit.Icons enum UIKitIcon_24 own 12784 chars
- KasperskyLab.UI.Framework.UiKit.Icons enum UIKitIcon_32 own 2648 chars
- KasperskyLab.UI.Framework.UiKit.Icons enum UIKitIcon_48 own 44 chars
- KasperskyLab.UI.Framework.UiKit.Icons class UIKitIconMetadataRegistrar own 13267 chars
- KasperskyLab.UI.Framework.UiKit.Fonts class UIKitFontBrushExtension own 418 chars
- KasperskyLab.UI.Framework.UiKit.Fonts class UIKitFontBrushExtension own 368 chars
- KasperskyLab.UI.Framework.UiKit.Fonts class UIKitFontBrushSettings own 155 chars
- KasperskyLab.UI.Framework.UiKit.Fonts class UIKitFontStyleExtension own 409 chars
- KasperskyLab.UI.Framework.UiKit.Fonts class UIKitFontStyleExtension own 368 chars
- KasperskyLab.UI.Framework.UiKit.Fonts class UIKitFontStyleSettings own 155 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class BindingExtensions own 6084 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class DateTimeExtensions own 2730 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class DependencyObjectExtensions own 7054 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class InlineExtensions own 571 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class MarkupExtensionExtensions own 1513 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class PopupExtensions own 786 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class ScrollViewerExtensions own 2286 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class StringExtensions own 1116 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class StyleExtensions own 11497 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class TextBlockExtensions own 9619 chars
- KasperskyLab.UI.Framework.UiKit.Extensions class UiElementExtensions own 1144 chars
- KasperskyLab.UI.Framework.UiKit.Extensions.Internals class DropShadowEffectExtensions own 182 chars
- KasperskyLab.UI.Framework.UiKit.Extensions.Internals class FrameworkElementExtensions own 3901 chars
- KasperskyLab.UI.Framework.UiKit.Effects class ColorKeyAlphaEffect own 3683 chars
- KasperskyLab.UI.Framework.UiKit.Effects class DropShadowEffectExtension own 1496 chars
- KasperskyLab.UI.Framework.UiKit.Converters class CompositeConverter own 1170 chars
- KasperskyLab.UI.Framework.UiKit.Converters class CompositeMultiConverter own 1152 chars
- KasperskyLab.UI.Framework.UiKit.Converters class DelegateConverter own 800 chars
- KasperskyLab.UI.Framework.UiKit.Converters class DelegateConverter own 698 chars
- KasperskyLab.UI.Framework.UiKit.Converters class DelegateMultiConverter own 733 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class BaseTimeConverter own 3564 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class DateTimeAge own 2324 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class DateTimeAgeConverter own 2123 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters enum DateTimeAgeEstimate own 136 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class DateTimeConverter own 3467 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters enum DateTimeConverterFormat own 107 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters enum DateTimeConverterRecentDaysFormat own 135 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class DateTimeExtensions own 1746 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class DateTimeRangeConverter own 2723 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class TimeSpanConverter own 6483 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters enum TimeSpanConverterFormat own 128 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters class TimeSpanToDateTimeConverter own 1027 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters.Validation class BaseTimeValidator own 274 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters.Validation class DefaultDateTimeValidator own 254 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters.Validation class DefaultTimeSpanValidator own 272 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters.Validation class SingleInvalidValueDateTimeValidator own 260 chars
- KasperskyLab.UI.Framework.UiKit.Converters.TimeConverters.Validation class SingleInvalidValueTimeSpanValidator own 260 chars
- KasperskyLab.UI.Framework.UiKit.Converters.ThicknessConverters enum ThicknessComponents own 104 chars
- KasperskyLab.UI.Framework.UiKit.Converters.ThicknessConverters class ThicknessComponentsSelectorConverter own 1894 chars
- KasperskyLab.UI.Framework.UiKit.Converters.ThicknessConverters class ThicknessComponentsSwapConverter own 2099 chars
- KasperskyLab.UI.Framework.UiKit.Converters.ThicknessConverters enum ThicknessComponentsSwapMode own 78 chars
- KasperskyLab.UI.Framework.UiKit.Converters.ThicknessConverters enum ThicknessSingleComponent own 76 chars
- KasperskyLab.UI.Framework.UiKit.Converters.ThicknessConverters class ThicknessSingleComponentSelectorConverter own 1309 chars
- KasperskyLab.UI.Framework.UiKit.Converters.StringConverters class StringToLTRConverter own 359 chars
- KasperskyLab.UI.Framework.UiKit.Converters.StringConverters class StringToVisibilityConverter own 323 chars
- KasperskyLab.UI.Framework.UiKit.Converters.NumberConverters class BaseNumberToFormattedStringConverter own 736 chars
- KasperskyLab.UI.Framework.UiKit.Converters.NumberConverters class MultiplierConverter own 475 chars
- KasperskyLab.UI.Framework.UiKit.Converters.NumberConverters class NumberToLongConverter own 316 chars
- KasperskyLab.UI.Framework.UiKit.Converters.NumberConverters class NumberToPercentStringConverter own 386 chars
- KasperskyLab.UI.Framework.UiKit.Converters.FlowDirectionConverters class BaseFlowDirectionConverter own 1119 chars
- KasperskyLab.UI.Framework.UiKit.Converters.FlowDirectionConverters class FlowDirectionToInvertedValueConverter own 276 chars
- KasperskyLab.UI.Framework.UiKit.Converters.FlowDirectionConverters class FlowDirectionToObjectConverter own 242 chars
- KasperskyLab.UI.Framework.UiKit.Converters.FlowDirectionConverters class FlowDirectionToVisibilityConverter own 258 chars
- KasperskyLab.UI.Framework.UiKit.Converters.FlowDirectionConverters class FlowDirectionToVisibilityInverseConverter own 272 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class BaseEqualityConverter own 1907 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class BaseMultiValueEqualityConverter own 831 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters enum EqualityParameterType own 107 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class EqualityToBooleanConverter own 175 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class EqualityToBooleanInverseConverter own 189 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class EqualityToObjectConverter own 169 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class EqualityToVisibilityConverter own 181 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class EqualityToVisibilityInverseConverter own 195 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class MultiValueEqualityToBooleanConverter own 205 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class MultiValueEqualityToBooleanInverseConverter own 219 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EqualityConverters class MultiValueEqualityToVisibilityConverter own 211 chars
- KasperskyLab.UI.Framework.UiKit.Converters.EnumerableConverters class EnumerableToStringJoinConverter own 1242 chars
- KasperskyLab.UI.Framework.UiKit.Converters.DictionaryConverters class DictionaryConverter own 2886 chars
- KasperskyLab.UI.Framework.UiKit.Converters.DictionaryConverters enum DictionaryConverterValueMode own 65 chars
- KasperskyLab.UI.Framework.UiKit.Converters.DictionaryConverters interface IDictionaryConverterItem own 74 chars
- KasperskyLab.UI.Framework.UiKit.Converters.DictionaryConverters class ResourceIcon own 1201 chars
- KasperskyLab.UI.Framework.UiKit.Converters.DictionaryConverters class ResourceObject own 194 chars
- KasperskyLab.UI.Framework.UiKit.Converters.DictionaryConverters class ResourceVisibility own 264 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CornerRadiusConverters enum CornerRadiusSingleComponent own 104 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CornerRadiusConverters class CornerRadiusSingleComponentSelectorConverter own 2218 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters class BaseCollectionConverter own 5012 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters enum CollectionConverterItemType own 198 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters enum CollectionConverterOperation own 97 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters class CollectionToBooleanConverter own 181 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters class CollectionToBooleanInverseConverter own 195 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters class CollectionToObjectConverter own 175 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters class CollectionToVisibilityConverter own 187 chars
- KasperskyLab.UI.Framework.UiKit.Converters.CollectionConverters class CollectionToVisibilityInverseConverter own 201 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BaseBooleanConverter own 685 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BaseMultiBooleanConverter own 1191 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToDoubleConverter own 195 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToIcon16Converter own 247 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToIcon24Converter own 247 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToIcon32Converter own 247 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToIntegerConverter own 187 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToInvertedValueConverter own 231 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToObjectConverter own 215 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToVisibilityConverter own 231 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class BooleanToVisibilityInverseConverter own 245 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters enum MultiBooleanOperation own 52 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class MultiBooleanToBooleanConverter own 234 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class MultiBooleanToInvertedValueConverter own 246 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class MultiBooleanToObjectConverter own 230 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class MultiBooleanToVisibilityConverter own 246 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BooleanConverters class MultiBooleanToVisibilityInverseConverter own 260 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BaseMarkupExtensions class MultiValueConverterMarkupExtension own 592 chars
- KasperskyLab.UI.Framework.UiKit.Converters.BaseMarkupExtensions class ValueConverterMarkupExtension own 569 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Badge own 556 chars
- KasperskyLab.UI.Framework.UiKit.Controls class BadgeCounter own 3022 chars
- KasperskyLab.UI.Framework.UiKit.Controls class BadgeText own 550 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum BadgeType own 79 chars
- KasperskyLab.UI.Framework.UiKit.Controls class BarCode own 3513 chars
- KasperskyLab.UI.Framework.UiKit.Controls class BarCodeVector own 375 chars
- KasperskyLab.UI.Framework.UiKit.Controls class BigButton own 2399 chars
- KasperskyLab.UI.Framework.UiKit.Controls class BigIconButton own 741 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Bullet own 968 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum ButtonIconLocation own 53 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Carousel own 826 chars
- KasperskyLab.UI.Framework.UiKit.Controls class CarouselItem own 54 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ChipsControl own 818 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum ChipsControlMode own 50 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ChipsItem own 7110 chars
- KasperskyLab.UI.Framework.UiKit.Controls class CodeInput own 4179 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ContentButton own 314 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ContextMenu own 4367 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ContextMenuButton own 10096 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ContextMenuPopup own 1948 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ContextMenuPopupDecorator own 3651 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ContextMenuSelect own 1794 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimeInput own 13932 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimeInputAction own 1900 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum DateTimeInputSelectionMode own 60 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimePopupDecorator own 68 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimePopupFooterButton own 483 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimePopupItem own 1259 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimePopupItemAnimation own 3571 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimePopupItemButton own 7234 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimePopupPresenter own 15430 chars
- KasperskyLab.UI.Framework.UiKit.Controls class DateTimePopupSelector own 26591 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Divider own 4182 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ExpandButton own 7108 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum ExpandDirection own 70 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ExpandPanel own 3762 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ExpandPanelMediaProvider own 14633 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FadeLine own 5505 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowDocumentViewer own 3048 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGrid own 3730 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridItem own 6996 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridItemsGrid own 1550 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridLayout own 8045 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridPanel own 5210 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridSealRule own 3999 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridStrategiesExtension own 1742 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridStrategy own 1938 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridStrategyCollection own 612 chars
- KasperskyLab.UI.Framework.UiKit.Controls class FlowGridStrategyExtension own 986 chars
- KasperskyLab.UI.Framework.UiKit.Controls class HtmlBlock own 5831 chars
- KasperskyLab.UI.Framework.UiKit.Controls interface IHtmlBlockNavigationCallback own 95 chars
- KasperskyLab.UI.Framework.UiKit.Controls interface INavigationItem own 145 chars
- KasperskyLab.UI.Framework.UiKit.Controls interface ISwitchConfirmableSetter own 128 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Icon12 own 58 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Icon16 own 58 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Icon24 own 58 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Icon32 own 58 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Icon48 own 58 chars
- KasperskyLab.UI.Framework.UiKit.Controls class IconBase own 6708 chars
- KasperskyLab.UI.Framework.UiKit.Controls class IconBase own 1865 chars
- KasperskyLab.UI.Framework.UiKit.Controls class IconButton own 735 chars
- KasperskyLab.UI.Framework.UiKit.Controls class IconButtonBase own 838 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Illustration own 5885 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ImageGallery own 14995 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ImageGalleryButton own 467 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ImageGalleryList own 10647 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ImageGalleryListButton own 1879 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum ImageGalleryNavigationMode own 111 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ImagePanel own 9218 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum ImagePanelFadeType own 58 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ImplicitStyle own 942 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InputActionBase own 3526 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InputActionCollection own 88 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InputActionMode own 80 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InputCommandAction own 1481 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InputFontMode own 55 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InputGetFocusBehaviorType own 150 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InputLostFocusBehaviorType own 75 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InputPopupAction own 3480 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityConfirmationDialog own 10246 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityDialog own 20466 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InteractivityDialogCloseButtonAction own 98 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityDialogFooter own 11397 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InteractivityDialogType own 104 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InteractivityDialogWidth own 80 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityMediaProvider own 2786 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityNotification own 7205 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InteractivityNotificationType own 99 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityOverlay own 37375 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InteractivityOverlayBehavior own 106 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityOverlayCut own 6536 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityOverlayCutCollection own 104 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum InteractivityOverlayCutDecoratorPosition own 168 chars
- KasperskyLab.UI.Framework.UiKit.Controls class InteractivityOverlayCutExtension own 2413 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Island own 1255 chars
- KasperskyLab.UI.Framework.UiKit.Controls class IslandButton own 877 chars
- KasperskyLab.UI.Framework.UiKit.Controls class IslandLayer own 450 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum IslandLevel own 48 chars
- KasperskyLab.UI.Framework.UiKit.Controls class IslandToggleButton own 913 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum IslandType own 65 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ListMenu own 3128 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ListMenuItem own 1767 chars
- KasperskyLab.UI.Framework.UiKit.Controls class MenuItem own 3634 chars
- KasperskyLab.UI.Framework.UiKit.Controls class MenuItemBase own 492 chars
- KasperskyLab.UI.Framework.UiKit.Controls class MenuItemDivider own 430 chars
- KasperskyLab.UI.Framework.UiKit.Controls class MenuItemGroupHeader own 283 chars
- KasperskyLab.UI.Framework.UiKit.Controls class MenuItemRadioButton own 566 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum MenuItemRole own 138 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NavigationMenuButton own 2240 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NavigationMenuButtonBase own 6021 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NavigationMenuFooterButton own 5730 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NotificationHint own 501 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum NotificationHintType own 90 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NotificationPanel own 5124 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum NotificationPanelType own 80 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NotificationSpinner own 450 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NumberInput own 13574 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NumberInputAction own 3072 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum NumberInputActionType own 65 chars
- KasperskyLab.UI.Framework.UiKit.Controls class NumberInputValueChangedEventArgs own 303 chars
- KasperskyLab.UI.Framework.UiKit.Controls class PasswordInput own 45569 chars
- KasperskyLab.UI.Framework.UiKit.Controls class PasswordInputCapsLockAction own 3961 chars
- KasperskyLab.UI.Framework.UiKit.Controls class PasswordInputCopyAction own 3060 chars
- KasperskyLab.UI.Framework.UiKit.Controls class PasswordInputRevealAction own 5267 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum PasswordInputRevealMode own 77 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Popup own 30659 chars
- KasperskyLab.UI.Framework.UiKit.Controls class PopupDecorator own 5748 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum PopupOpenBehavior own 63 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum PopupPosition own 65 chars
- KasperskyLab.UI.Framework.UiKit.Controls class ProgressBar own 9617 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum ProgressBarType own 85 chars
- KasperskyLab.UI.Framework.UiKit.Controls class QrCode own 3825 chars
- KasperskyLab.UI.Framework.UiKit.Controls class QrCodeMatrix own 483 chars
- KasperskyLab.UI.Framework.UiKit.Controls class RoundProgress own 11712 chars
- KasperskyLab.UI.Framework.UiKit.Controls class RoundTimer own 14105 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum RoundTimerType own 73 chars
- KasperskyLab.UI.Framework.UiKit.Controls class RoundedPanel own 11288 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Search own 19724 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SearchInput own 920 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SecureTextBlock own 25292 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Select own 41188 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SelectItem own 6436 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SelectPopupDecorator own 3838 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SelectPresenter own 22401 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SelectableText own 8528 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SelectableTextHyperlink own 738 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum SelectableTextState own 62 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SelectorItem own 1035 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SelectorList own 2437 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SmallButton own 2413 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Spinner own 3511 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SplitButton own 6309 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum SplitButtonState own 133 chars
- KasperskyLab.UI.Framework.UiKit.Controls class SsoButton own 639 chars
- KasperskyLab.UI.Framework.UiKit.Controls class StatusBullet own 619 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum StatusBulletType own 86 chars
- KasperskyLab.UI.Framework.UiKit.Controls class StatusTag own 968 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum StatusTagType own 83 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Switch own 10052 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TabMenu own 1065 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TabMenuItem own 2469 chars
- KasperskyLab.UI.Framework.UiKit.Controls class Tag own 956 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TagBase own 2951 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum TagColor own 125 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextArea own 2290 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextBigIconButton own 247 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextHint own 12356 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIcon12 own 74 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIcon16 own 74 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIcon24 own 74 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIcon32 own 74 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIcon48 own 74 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIconBase own 2247 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIconButton own 238 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextIconButtonBase own 7313 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInlineBase own 2695 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInput own 3616 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputBase own 32502 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputBasedControl own 9802 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputCopyAction own 2483 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum TextInputFlowBehaviorType own 71 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputLocPlaceholder own 995 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputMaskElement own 248 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum TextInputMaskElementType own 143 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputMaskExtension own 3166 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputMaskItem own 168 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputMaskPlaceholder own 2884 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputMaskRegexItem own 534 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputMaskStaticItem own 152 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputPlaceholder own 312 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputPlaceholderConverter own 264 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputPlaceholderExtension own 392 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextInputStringPlaceholder own 912 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextViewer own 4186 chars
- KasperskyLab.UI.Framework.UiKit.Controls class TextViewerBox own 194 chars
- KasperskyLab.UI.Framework.UiKit.Controls enum TextViewerTextChangedBehavior own 72 chars
- KasperskyLab.UI.Framework.UiKit.Controls class VirtualizedItemsControl own 4893 chars
- KasperskyLab.UI.Framework.UiKit.Controls.VisualStates enum SelectableState own 149 chars
- KasperskyLab.UI.Framework.UiKit.Controls.VisualStates enum State own 65 chars
- KasperskyLab.UI.Framework.UiKit.Controls.VisualStates class StateService own 1498 chars
- KasperskyLab.UI.Framework.UiKit.Controls.VisualStates enum TextInputState own 133 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Selectors class DataTemplateByItemSelector own 165 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Selectors class DataTemplateByKeySelector own 940 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Selectors class DataTemplateByTypeSelector own 340 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Selectors class DataTemplateSelectorBase own 925 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class ButtonProps own 2523 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class CheckBoxProps own 1599 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class ImageProps own 912 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class RadioButtonProps own 1614 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class RunProps own 2898 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class ScrollViewerProps own 6986 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class TextBlockProps own 5706 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Properties class ToggleButtonProps own 2565 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class ArabicLetter own 3349 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class ButtonBaseAcceleratorKeyBehavior own 3230 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class ButtonBaseInternals own 2651 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class CheckableInternals own 1071 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class CornerRoundingHelper own 4687 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals struct DependencyTarget own 667 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class FontBehavior own 9974 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class FrameworkContentElementFontBehavior own 141 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class FrameworkElementFontBehavior own 120 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class FrameworkObject own 5223 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class HyperlinkInternals own 3053 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class IconButtonInternals own 1059 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class ImageInternals own 5593 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class InputCaretBrushConverter own 1838 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class InputContentHostMarginConverter own 1613 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class InteractivityDialogScope own 1327 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class InteractivityNotificationScope own 1525 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class InteractivityScope own 6874 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class ObjectToIconConverter own 645 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class PasswordInputHelper own 6611 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class PopupDpiAwareBehavior own 1913 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class PopupPositionProvider own 12435 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class PropertyPathStorage own 751 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class RtlSimulationConverter own 838 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class RunRemoveBehavior own 665 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals enum ScrollViewerBorderFadeState own 118 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class ScrollViewerInternals own 27305 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class SelectInfoProvider own 3784 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class SelectItemInfoProvider own 11217 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class ShadowMarginConverter own 982 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class SplitButtonInternals own 822 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class SsoButtonInternals own 790 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class TextBlockHideOnEmptyBehavior own 1225 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class TextBlockLinesLimiterBehavior own 3517 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class TextBlockToolTipOnTrimBehavior own 6266 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Internals class TextInputBaseInternals own 4052 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class ButtonCheckBehavior own 1613 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class ButtonRepeatBehavior own 3924 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class WindowDpiAwareBehavior own 4304 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class WindowDragBehavior own 1157 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class WindowFlowDirectionBehavior own 2503 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class WindowLocationStoreBehavior own 18680 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class WindowMaximizeOnDoubleClickBehavior own 1281 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Behaviors class WindowResizeBehavior own 18448 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class AutomationIds own 151 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class BadgeAutomationPeer own 367 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class BadgeAutomationPeer own 595 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class BadgeCounterAutomationPeer own 843 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class BadgeTextAutomationPeer own 803 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class ContentButtonAutomationPeer own 278 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class ExpandButtonAutomationPeer own 2758 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class IconButtonAutomationPeer own 177 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class InteractivityDialogAutomationPeer own 1410 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class InteractivityNotificationAutomationPeer own 1497 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class IslandAutomationPeer own 359 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class IslandButtonAutomationPeer own 271 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class IslandToggleButtonAutomationPeer own 307 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class ListMenuAutomationPeer own 729 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class ListMenuItemAutomationPeer own 1231 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class NavigationMenuButtonAutomationPeer own 729 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class NavigationMenuButtonAutomationPeer own 1396 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class NavigationMenuFooterButtonAutomationPeer own 631 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class SearchAutomationPeer own 165 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class SearchInputAutomationPeer own 207 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class SelectAutomationPeer own 3920 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class SelectItemAutomationPeer own 1078 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class SelectableTextHyperlinkAutomationPeer own 902 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class StatusBulletAutomationPeer own 1048 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class StatusTagAutomationPeer own 740 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class SwitchAutomationPeer own 406 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class TagAutomationPeer own 715 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class TextInputAutomationPeer own 785 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation class TextViewerBoxAutomationPeer own 1656 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Internals class CoreAutomationPeer own 4457 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Internals interface IAutomationPeer own 407 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Core class BaseButtonAutomationPeer own 2705 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Core class BaseFrameworkElementAutomationPeer own 2761 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Core class BaseHyperlinkAutomationPeer own 2733 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Core class BaseSelectorAutomationPeer own 2721 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Core class BaseTextBoxAutomationPeer own 2704 chars
- KasperskyLab.UI.Framework.UiKit.Controls.Automation.Core class BaseToggleButtonAutomationPeer own 2735 chars
- KasperskyLab.UI.Framework.UiKit.Animation class AnimationExtensions own 1553 chars
- KasperskyLab.UI.Framework.UiKit.Animation class AnimationProperties own 174 chars
- KasperskyLab.UI.Framework.UiKit.Animation enum AnimationRenderQuality own 66 chars
- KasperskyLab.UI.Framework.UiKit.Animation enum AnimationState own 55 chars
- KasperskyLab.UI.Framework.UiKit.Animation class AnimationStateChangedEventArgs own 289 chars
- KasperskyLab.UI.Framework.UiKit.Animation enum AnimationStateSource own 56 chars
- KasperskyLab.UI.Framework.UiKit.Animation interface IAnimationManager own 667 chars
- KasperskyLab.UI.Framework.UiKit.Animation interface IAnimationManagerDataStorage own 103 chars
- KasperskyLab.UI.Framework.UiKit.Animation interface IRenderCapability own 113 chars
- KasperskyLab.UI.Framework.UiKit.Animation enum RenderCapabilityTier own 65 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup class AnimatedBindingExtension own 976 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup class AnimationFrameRateExtension own 342 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup class AnimationPropertiesExtension own 391 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class BackEasingExtension own 656 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class BounceEasingExtension own 807 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class CircleEasingExtension own 507 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class CubicEasingExtension own 505 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class EasingExtensionBase own 329 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class ElasticEasingExtension own 827 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class ExponentialEasingExtension own 667 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class PowerEasingExtension own 646 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class QuadraticEasingExtension own 513 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class QuarticEasingExtension own 509 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class QuinticEasingExtension own 509 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Markup.Easing class SineEasingExtension own 503 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Internals class AnimatedBindingFactory own 8743 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Internals class AnimatedValueEqualityComparer own 1232 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Internals class AnimationFactory own 7060 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Internals class AnimationManager own 9964 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Internals class AnimationManagerInMemoryDataStorage own 153 chars
- KasperskyLab.UI.Framework.UiKit.Animation.Internals class RenderCapability own 611 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility class AccessibilityExtensions own 7037 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility class AccessibilityProperties own 2273 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility enum AccessibilityTextOptions own 153 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility interface IAccessibilityAware own 62 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility.TextScale interface ITextScaleService own 125 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility.TextScale class TextScaleBehavior own 4803 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility.TextScale class TextScaleChangedEventArgs own 247 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility.TextScale class TextScaleRegistryConstants own 298 chars
- KasperskyLab.UI.Framework.UiKit.Accessibility.TextScale.Internals class TextScaleService own 6152 chars
| Severity | Behavior detected in source | MITRE |
|---|---|---|
| high | Keylogging primitives | T1056.001 |
| low | Heavy string obfuscation / protector | T1027 |
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.IO.Packaging;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Timers;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Automation.Peers;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
using System.Xaml;
using System.Xml;
using BidiSharp;
using KasperskyLab.UI.Framework.Cache;
using KasperskyLab.UI.Framework.Cryptography;
using KasperskyLab.UI.Framework.Disposables;
using KasperskyLab.UI.Framework.Exceptions;
using KasperskyLab.UI.Framework.Extensions.Collections;
using KasperskyLab.UI.Framework.Extensions.CultureInfos;
using KasperskyLab.UI.Framework.Extensions.DateTimes;
using KasperskyLab.UI.Framework.Extensions.Doubles;
using KasperskyLab.UI.Framework.Extensions.Enumerables;
using KasperskyLab.UI.Framework.Extensions.Enums;
using KasperskyLab.UI.Framework.Extensions.Exceptions;
using KasperskyLab.UI.Framework.Extensions.Objects;
using KasperskyLab.UI.Framework.Extensions.SecureStrings;
using KasperskyLab.UI.Framework.Extensions.Strings;
using KasperskyLab.UI.Framework.Extensions.TimeSpans;
using KasperskyLab.UI.Framework.FileSystem;
using KasperskyLab.UI.Framework.Guards;
using KasperskyLab.UI.Framework.IoC;
using KasperskyLab.UI.Framework.IoC.Injection;
using KasperskyLab.UI.Framework.IoC.Lifetime;
using KasperskyLab.UI.Framework.IoC.Overrides;
using KasperskyLab.UI.Framework.Log;
using KasperskyLab.UI.Framework.Mvvm;
using KasperskyLab.UI.Framework.NativeMethods.Api.Kernel32;
using KasperskyLab.UI.Framework.NativeMethods.Api.Shcore;
using KasperskyLab.UI.Framework.NativeMethods.Api.Shcore.Enums;
using KasperskyLab.UI.Framework.NativeMethods.Api.User32;
using KasperskyLab.UI.Framework.NativeMethods.Api.User32.Delegates;
using KasperskyLab.UI.Framework.NativeMethods.Api.User32.Enums;
using KasperskyLab.UI.Framework.NativeMethods.Api.User32.Structs;
using KasperskyLab.UI.Framework.NativeMethods.Common;
using KasperskyLab.UI.Framework.NativeMethods.SafeHandles;
using KasperskyLab.UI.Framework.NativeMethods.Utils;
using KasperskyLab.UI.Framework.Reflection;
using KasperskyLab.UI.Framework.Services;
using KasperskyLab.UI.Framework.Services.Internals;
using KasperskyLab.UI.Framework.Storage;
using KasperskyLab.UI.Framework.Storage.KeyValue;
using KasperskyLab.UI.Framework.SystemInfo;
using KasperskyLab.UI.Framework.Threading;
using KasperskyLab.UI.Framework.Threading.Executing;
using KasperskyLab.UI.Framework.Threading.Throttlers;
using KasperskyLab.UI.Framework.Threading.Timers;
using KasperskyLab.UI.Framework.UiKit.Accessibility;
using KasperskyLab.UI.Framework.UiKit.Accessibility.TextScale;
using KasperskyLab.UI.Framework.UiKit.Accessibility.TextScale.Internals;
using KasperskyLab.UI.Framework.UiKit.Animation;
using KasperskyLab.UI.Framework.UiKit.Animation.Internals;
using KasperskyLab.UI.Framework.UiKit.Ani
internal enum BaseDirection : byte
{
LeftToRight,
RightToLeft,
Auto
}
internal static class Bidi
{
private struct DirectionalStatus
{
internal byte paragraphEmbeddingLevel;
internal byte directionalOverrideStatus;
internal bool directionalIsolateStatus;
}
private sealed class IsolatingRunSequence
{
public byte level;
public BidiClass sos;
public BidiClass eos;
public int length;
public int[] indexes;
public byte[] types;
public byte[] resolvedLevels;
public IsolatingRunSequence(byte paragraphEmbeddingLevel, List<int> runIndexList, byte[] types, byte[] levels)
{
this.ComputeIsolatingRunSequence(paragraphEmbeddingLevel, runIndexList, types, levels);
}
}
private const int MAX_DEPTH = 125;
public static string LogicalToVisualString(string input, BaseDirection baseDirection = BaseDirection.Auto, int[]? lineBreaks = null)
{
return new string(LogicalToVisualChars(input, baseDirection, lineBreaks).ToArray());
}
public static List<char> LogicalToVisualChars(string input, BaseDirection baseDirection = BaseDirection.Auto, int[]? lineBreaks = null)
{
int[] bidiIndex = GetBidiIndex(input, baseDirection, lineBreaks);
return GetOrderedChars(input, bidiIndex);
}
private static int[] GetBidiIndex(string input, BaseDirection baseDirection, int[]? lineBreaks = null)
{
int length = input.Length;
byte[] typesList = new byte[input.Length];
byte[] levels = new byte[input.Length];
ClassifyCharacters(input, ref typesList);
GetMatchingPDI(typesList, out int[] outMatchingPDI, out int[] outMatchingIsolateInitiator);
byte b = ((baseDirection == BaseDirection.Auto) ? GetParagraphEmbeddingLevel(typesList, outMatchingPDI) : ((byte)baseDirection));
SetLevels(ref levels, b);
GetExplicitEmbeddingLevels(b, typesList, ref levels, outMatchingPDI);
RemoveX9Characters(ref typesList);
List<List<int>> levelRuns = GetLevelRuns(levels);
int[] runForCharacter = GetRunForCharacter(levelRuns, length);
List<IsolatingRunSequence> isolatingRunSequences = GetIsolatingRunSequences(b, typesList, levels, levelRuns, outMatchingIsolateInitiator, outMatchingPDI, runForCharacter);
foreach (IsolatingRunSequence item in isolatingRunSequences)
{
item.ResolveWeaks();
item.ResolveNeutrals();
item.ResolveImplicit();
item.ApplyTypesAndLevels(ref typesList, ref levels);
}
int[] lineBreaks2 = ((lineBreaks != null) ? lineBreaks : new int[1] { typesList.Length });
return GetReorderedIndexes(b, typesList, levels, lineBreaks2);
}
private static void ClassifyCharacters(string text, ref byte[] typesList)
{
typesList = new byte[text.Length];
for (int i = 0; i < text.Length; i++)
{
int num = Convert.ToInt32(text[i]);
typesList[i] = Bidi_Types.BidiCharTypes[num];
}
}
private static byte GetParagraphEmbeddingLevel(byte[] types, int[] matchingPDI, int si = -1, int ei = -1)
{
int num = ((si != -1) ? si : 0);
int num2 = ((ei != -1) ? ei : types.Length);
for (int i = num; i < num2; i++)
{
BidiClass bidiClass = (BidiClass)types[i];
if (bidiClass == BidiClass.L || bidiClass == BidiClass.AL || bidiClass == BidiClass.R)
{
if (1 == 0)
{
}
byte result = (byte)((bidiClass != 0) ? 1 : 0);
if (1 == 0)
{
}
return result;
}
if (bidiClass == BidiClass.LRI || bidiClass == BidiClass.RLI || bidiClass == BidiClass.FSI)
{
i = matchingPDI[i];
}
}
return 0;
}
private static void GetExplicitEmbeddingLevels(byte level, byte[] types, ref byte[] levels, int[] matchingPDI)
{
Stack<DirectionalStatus> stack = new Stack<DirectionalStatus>(127);
DirectionalStatus directionalStatus = default(DirectionalStatus);
directionalStatus.paragraphEmbeddingLevel = level;
directionalStatus.directionalOverrideStatus = 18;
directionalStatus.directionalIsolateStatus = false;
DirectionalStatus item = directionalStatus;
stack.Push(item);
int num = 0;
int num2 = 0;
int num3 = 0;
for (int i = 0; i < types.Length; i++)
{
BidiClass bidiClass = (BidiClass)types[i];
switch (bidiClass)
{
case BidiClass.LRE:
case BidiClass.LRO:
case BidiClass.RLE:
case BidiClass.RLO:
case BidiClass.LRI:
case BidiClass.RLI:
case BidiClass.FSI:
{
bool flag = bidiClass == BidiClass.RLI || bidiClass == BidiClass.LRI;
if (flag)
{
levels[i] = stack.Peek().paragraphEmbeddingLevel;
}
if (bidiClass == BidiClass.FSI)
{
byte paragraphEmbeddingLevel = GetParagraphEmbeddingLevel(types, matchingPDI, i + 1, matchingPDI[i]);
bidiClass = ((paragraphEmbeddingLevel == 1) ? BidiClass.RLI : BidiClass.LRI);
}
byte b = ((bidiClass != BidiClass.RLE && bidiClass != BidiClass.RLO && bidiClass != BidiClass.RLI) ? ((byte)LeastGreaterEven(stack.Peek().paragraphEmbeddingLevel)) : ((byte)LeastGreaterOdd(stack.Peek().paragraphEmbeddingLevel)));
if (b <= 125 && num == 0 && num2 == 0)
{
if (flag)
{
num3++;
}
byte directionalOverrideStatus = bidiClass switch
{
BidiClass.LRO => 0,
BidiClass.RLO => 3,
_ => 18,
};
stack.Push(new DirectionalStatus
{
paragraphEmbeddingLevel = b,
directionalOverrideStatus = directionalOverrideStatus,
directionalIsolateStatus = flag
});
}
else if (num == 0)
{
num2++;
}
break;
}
case BidiClass.PDI:
if (num > 0)
{
num--;
}
else if (num3 != 0)
{
num2 = 0;
while (!stack.Peek().directionalIsolateStatus)
{
stack.Pop();
}
stack.Pop();
num3--;
}
levels[i] = stack.Peek().paragraphEmbeddingLevel;
break;
case BidiClass.PDF:
if (num <= 0)
{
if (num2 > 0)
{
num2--;
}
else if (!stack.Peek().directionalIsolateStatus && stack.Count > 1)
{
stack.Pop();
}
}
break;
case BidiClass.B:
num2 = 0;
num = 0;
num3 = 0;
stack.Clear();
stack.Push(item);
levels[i] = level;
break;
default:
levels[i] = stack.Peek().paragraphEmbeddingLevel;
if (stack.Peek().directionalOverrideStatus != 18)
{
types[i] = stack.Peek().directionalOverrideStatus;
}
break;
}
}
}
private static void ResolveWeaks(this IsolatingRunSequence sequence)
{
for (int i = 0; i < sequence.length; i++)
{
BidiClass bidiClass = (BidiClass)sequence.types[i];
BidiClass bidiClass2 = ((i == 0) ? sequence.sos : ((BidiClass)sequence.types[i - 1]));
if (bidiClass == BidiClass.NSM)
{
bool flag = bidiClass2 == BidiClass.LRI || bidiClass2 == BidiClass.RLI || bidiClass2 == BidiClass.FSI || bidiClass2 == BidiClass.PDI;
sequence.types[i] = (byte)(flag ? BidiClass.ON : bidiClass2);
}
}
for (int j = 0; j < sequence.length; j++)
{
BidiClass bidiClass3 = (BidiClass)sequence.types[j];
if (bidiClass3 != BidiClass.EN)
{
continue;
}
for (int num = j - 1; num >= 0; num--)
{
BidiClass bidiClass4 = (BidiClass)sequence.types[num];
if ((bidiClass4 == BidiClass.R || bidiClass4 == BidiClass.AL || bidiClass4 == BidiClass.L) && bidiClass4 == BidiClass.AL)
{
sequence.types[j] = 11;
break;
}
}
}
for (int k = 0; k < sequence.length; k++)
{
if (sequence.types[k] == 4)
{
sequence.types[k] = 3;
}
}
for (int l = 1; l < sequence.length - 1; l++)
{
BidiClass bidiClass5 = (BidiClass)sequence.types[l];
BidiClass bidiClass6 = (BidiClass)sequence.types[l - 1];
BidiClass bidiClass7 = (BidiClass)sequence.types[l + 1];
if (bidiClass5 == BidiClass.ES && bidiClass6 == BidiClass.EN && bidiClass7 == BidiClass.EN)
{
sequence.types[l] = 8;
}
else if (bidiClass5 == BidiClass.CS && ((bidiClass6 == BidiClass.EN && bidiClass7 == BidiClass.EN) || (bidiClass6 == BidiClass.AN && bidiClass7 == BidiClass.AN)))
{
sequence.types[l] = (byte)bidiClass6;
}
}
BidiClass[] typesSet = new BidiClass[1] { BidiClass.ET };
for (int m = 0; m < sequence.length; m++)
{
if (sequence.types[m] == 10)
{
int num2 = m;
int runLimit = sequence.GetRunLimit(num2, sequence.length, typesSet);
BidiClass bidiClass8 = ((num2 > 0) ? ((BidiClass)sequence.types[num2 - 1]) : sequence.sos);
if (bidiClass8 != BidiClass.EN)
{
bidiClass8 = ((runLimit < sequence.length) ? ((BidiClass)sequence.types[runLimit]) : sequence.eos);
}
if (bidiClass8 == BidiClass.EN)
{
sequence.SetRunTypes(num2, runLimit, BidiClass.EN);
}
m = runLimit;
}
}
for (int n = 0; n < sequence.length; n++)
{
BidiClass bidiClass9 = (BidiClass)sequence.types[n];
if (bidiClass9 == BidiClass.ET || bidiClass9 == BidiClass.ES || bidiClass9 == BidiClass.CS)
{
sequence.types[n] = 18;
}
}
for (int num3 = 0; num3 < sequence.length; num3++)
{
if (sequence.types[num3] != 8)
{
continue;
}
BidiClass bidiClass10 = sequence.sos;
for (int num4 = num3 - 1; num4 >= 0; num4--)
{
BidiClass bidiClass11 = (BidiClass)sequence.types[num4];
if (bidiClass11 == BidiClass.R || bidiClass11 == BidiClass.L || bidiClass11 == BidiClass.AL)
{
bidiClass10 = bidiClass11;
break;
}
}
if (bidiClass10 == BidiClass.L)
{
sequence.types[num3] = 0;
}
}
}
private static void ResolveNeutrals(this IsolatingRunSequence sequence)
{
BidiClass[] typesSet = new BidiClass[8]
{
BidiClass.B,
BidiClass.S,
BidiClass.WS,
BidiClass.ON,
BidiClass.LRI,
BidiClass.RLI,
BidiClass.FSI,
BidiClass.PDI
};
for (int i = 0; i < sequence.length; i++)
{
BidiClass bidiClass = (BidiClass)sequence.types[i];
if (bidiClass != BidiClass.B && bidiClass != BidiClass.S && bidiClass != BidiClass.WS && bidiClass != BidiClass.ON && bidiClass != BidiClass.LRI && bidiClass != BidiClass.RLI && bidiClass != BidiClass.FSI && bidiClass != BidiClass.PDI)
{
continue;
}
BidiClass bidiClass2 = BidiClass.L;
BidiClass bidiClass3 = BidiClass.L;
int num = i;
int runLimit = sequence.GetRunLimit(num, sequence.length, typesSet);
if (num == 0)
{
bidiClass2 = sequence.sos;
}
else
{
bidiClass2 = (BidiClass)sequence.types[num - 1];
if (bidiClass2 == BidiClass.AN || bidiClass2 == BidiClass.EN)
{
bidiClass2 = BidiClass.R;
}
}
if (runLimit == sequence.length)
{
bidiClass3 = sequence.eos;
}
else
{
bidiClass3 = (BidiClass)sequence.types[runLimit];
if (bidiClass3 == BidiClass.AN || bidiClass3 == BidiClass.EN)
{
bidiClass3 = BidiClass.R;
}
}
if (bidiClass2 == bidiClass3)
{
sequence.SetRunTypes(num, runLimit, bidiClass2);
}
else
{
BidiClass typeForLevel = GetTypeForLevel(sequence.level);
sequence.SetRunTypes(num, runLimit, typeForLevel);
}
i = runLimit;
}
}
private static void ResolveImplicit(this IsolatingRunSequence sequence)
{
byte level = sequence.level;
sequence.resolvedLevels = new byte[sequence.length];
SetLevels(ref sequence.resolvedLevels, sequence.level);
for (int i = 0; i < sequence.length; i++)
{
BidiClass bidiClass = (BidiClass)sequence.types[i];
if (!IsOdd(level))
{
switch (bidiClass)
{
case BidiClass.R:
sequence.resolvedLevels[i]++;
continue;
default:
if (bidiClass != BidiClass.EN)
{
continue;
}
break;
case BidiClass.AN:
break;
}
sequence.resolvedLevels[i] += 2;
}
else if (bidiClass == BidiClass.L || bidiClass == BidiClass.AN || bidiClass == BidiClass.EN)
{
sequence.resolvedLevels[i]++;
}
}
}
private static void ApplyTypesAndLevels(this IsolatingRunSequence sequence, ref byte[] typesList, ref byte[] levelsList)
{
for (int i = 0; i < sequence.length; i++)
{
int num = sequence.indexes[i];
typesList[num] = sequence.types[i];
levelsList[num] = sequence.resolvedLevels[i];
}
}
private static int[] GetReorderedIndexes(byte level, byte[] typesList, byte[] levelsList, int[] lineBreaks)
{
byte[] textLevels = GetTextLevels(level, typesList, levelsList, lineBreaks);
return GetMultiLineReordered(textLevels, lineBreaks);
}
private static void GetMatchingPDI(byte[] types, out int[] outMatchingPDI, out int[] outMatchingIsolateInitiator)
{
int[] array = new int[types.Length];
int[] array2 = new int[types.Length];
for (int i = 0; i < types.Length; i++)
{
BidiClass bidiClass = (BidiClass)types[i];
if (bidiClass == BidiClass.LRI || bidiClass == BidiClass.RLI || bidiClass == BidiClass.FSI)
{
int num = 1;
bool flag = false;
for (int j = i + 1; j < types.Length; j++)
{
BidiClass bidiClass2 = (BidiClass)types[j];
if (bidiClass2 == BidiClass.LRI || bidiClass2 == BidiClass.RLI || bidiClass2 == BidiClass.FSI)
{
num++;
}
else if (bidiClass2 == BidiClass.PDI)
{
num--;
if (num == 0)
{
flag = true;
array[i] = j;
array2[j] = i;
break;
}
}
}
if (!flag)
{
array[i] = types.Length;
}
}
else
{
array[i] = -1;
array2[i] = -1;
}
}
outMatchingPDI = array;
outMatchingIsolateInitiator = array2;
}
private static void RemoveX9Characters(ref byte[] buffer)
{
for (int i = 0; i < buffer.Length; i++)
{
BidiClass bidiClass = (BidiClass)buffer[i];
if (bidiClass == BidiClass.LRE || bidiClass == BidiClass.RLE || bidiClass == BidiClass.LRO || bidiClass == BidiClass.RLO)
{
buffer[i] = 14;
}
}
}
private static List<List<int>> GetLevelRuns(byte[] levels)
{
List<int> list = new List<int>();
List<List<int>> list2 = new List<List<int>>();
sbyte b = -1;
for (int i = 0; i < levels.Length; i++)
{
if (levels[i] != b)
{
if (b >= 0)
{
list2.Add(list);
list.Clear();
}
b = (sbyte)levels[i];
}
list.Add(i);
}
if (list.Count > 0)
{
list2.Add(list);
}
return list2;
}
private static int[] GetRunForCharacter(List<List<int>> levelRuns, int length)
{
int[] array = new int[length];
for (int i = 0; i < levelRuns.Count; i++)
{
for (int j = 0; j < levelRuns[i].Count; j++)
{
int num = levelRuns[i][j];
array[num] = num;
}
}
return array;
}
private static List<IsolatingRunSequence> GetIsolatingRunSequences(byte pLevel, byte[] types, byte[] levels, List<List<int>> levelRuns, int[] matchingIsolateInitiator, int[] matchingPDI, int[] runCharsArray)
{
List<IsolatingRunSequence> list = new List<IsolatingRunSequence>(levelRuns.Count);
foreach (List<int> levelRun in levelRuns)
{
int num = levelRun[0];
if (types[num] != 22 || matchingIsolateInitiator[num] == -1)
{
List<int> list2 = new List<int>(levelRun);
int num2 = list2[list2.Count - 1];
BidiClass bidiClass = (BidiClass)types[num2];
bool flag = bidiClass == BidiClass.RLI || bidiClass == BidiClass.LRI || bidiClass == BidiClass.FSI;
int num3 = matchingPDI[num2];
while (flag && num3 != types.Length)
{
int index = runCharsArray[num3];
List<int> collection = levelRuns[index];
list2.AddRange(collection);
}
list.Add(new IsolatingRunSequence(pLevel, list2, types, levels));
}
}
return list;
}
private static void ComputeIsolatingRunSequence(this IsolatingRunSequence sequence, byte pLevel, List<int> indexList, byte[] typesList, byte[] levels)
{
sequence.length = indexList.Count;
sequence.indexes = indexList.ToArray();
sequence.types = new byte[indexList.Count];
for (int i = 0; i < sequence.length; i++)
{
sequence.types[i] = typesList[indexList[i]];
}
byte val = (sequence.level = levels[indexList[0]]);
int num = indexList[0] - 1;
byte val2 = ((num >= 0) ? levels[num] : pLevel);
sequence.sos = GetTypeForLevel(Math.Max(val, val2));
BidiClass bidiClass = (BidiClass)sequence.types[sequence.length - 1];
int num2 = indexList[sequence.length - 1];
byte val3 = levels[num2];
int num3 = indexList[sequence.length - 1] + 1;
byte val4 = ((num3 < typesList.Length && bidiClass != BidiClass.PDI) ? levels[num2] : pLevel);
sequence.eos = GetTypeForLevel(Math.Max(val3, val4));
}
private static void SetLevels(ref byte[] levels, byte newLevel)
{
for (int i = 0; i < levels.Length; i++)
{
levels[i] = newLevel;
}
}
private static int GetRunLimit(this IsolatingRunSequence sequence, int index, int limit, BidiClass[] typesSet)
{
while (index < limit)
{
BidiClass bidiClass = (BidiClass)sequence.types[index];
int num = 0;
while (true)
{
if (num < typesSet.Length)
{
if (bidiClass == typesSet[num])
{
break;
}
num++;
continue;
}
return index;
}
index++;
}
return limit;
}
private static void SetRunTypes(this IsolatingRunSequence sequence, int start, int limit, BidiClass newType)
{
for (int i = start; i < limit; i++)
{
sequence.types[i] = (byte)newType;
}
}
private static int LeastGreaterOdd(int l)
{
return IsOdd(l) ? (l + 2) : (l + 1);
}
private static int LeastGreaterEven(int l)
{
return (!IsOdd(l)) ? (l + 2) : (l + 1);
}
private static bool IsOdd(int n)
{
return (n & 1) != 0;
}
private static BidiClass GetTypeForLevel(byte level)
{
return (((uint)level & (true ? 1u : 0u)) != 0) ? BidiClass.R : BidiClass.L;
}
private static byte[] GetTextLevels(byte paragraphEmbeddingLevel, byte[] typesList, byte[] levelsList, int[] lineBreaks)
{
for (int i = 0; i < levelsList.Length; i++)
{
BidiClass bidiClass = (BidiClass)typesList[i];
if (bidiClass == BidiClass.S || bidiClass == BidiClass.B)
{
levelsList[i] = paragraphEmbeddingLevel;
}
int num = i - 1;
while (num >= 0)
{
bidiClass = (BidiClass)typesList[num];
if (bidiClass == BidiClass.LRI || bidiClass == BidiClass.RLI || bidiClass == BidiClass.FSI || bidiClass == BidiClass.FSI)
{
levelsList[num] = paragraphEmbeddingLevel;
num--;
continue;
}
break;
}
}
int num2 = 0;
foreach (int num3 in lineBreaks)
{
int num4 = num3 - 1;
while (num4 >= num2)
{
BidiClass bidiClass2 = (BidiClass)typesList[num4];
if (bidiClass2 == BidiClass.LRI || bidiClass2 == BidiClass.RLI || bidiClass2 == BidiClass.FSI || bidiClass2 == BidiClass.FSI)
{
levelsList[num4] = paragraphEmbeddingLevel;
num4--;
continue;
}
break;
}
num2 = num3;
}
return levelsList;
}
private static int[] GetMultiLineReordered(byte[] levels, int[] lineBreaks)
{
int[] array = new int[levels.Length];
int num = 0;
foreach (int num2 in lineBreaks)
{
byte[] array2 = new byte[num2 - num];
Array.Copy(levels, num, array2, 0, array2.Length);
int[] array3 = ComputeReorderingIndexes(array2);
for (int j = 0; j < array3.Length; j++)
{
array[num + j] = array3[j] + num;
}
num = num2;
}
return array;
}
private static int[] ComputeReorderingIndexes(byte[] levels)
{
int num = levels.Length;
int[] array = new int[num];
for (int i = 0; i < num; i++)
{
array[i] = i;
}
byte b = 0;
byte b2 = 127;
foreach (byte b3 in levels)
{
if (b3 > b)
{
b = b3;
}
if (IsOdd(b3) && b3 < b2)
{
b2 = b3;
}
}
for (byte b4 = b; b4 >= b2; b4--)
{
for (int k = 0; k < num; k++)
{
if (levels[k] >= b4)
{
int num2 = k;
int l;
for (l = k + 1; l < num && levels[l] >= b4; l++)
{
}
int num3 = num2;
int num4 = l - 1;
while (num3 < num4)
{
int num5 = array[num3];
array[num3] = array[num4];
array[num4] = num5;
num3++;
num4--;
}
k = l;
}
}
}
return array;
}
private static List<char> GetOrderedChars(string input, int[] index)
{
List<char> list = new List<char>(input.Length);
for (int i = 0; i < index.Length; i++)
{
list.Add(input[index[i]]);
}
return list;
}
}
internal enum BidiClass : byte
{
L,
LRE,
LRO,
R,
AL,
RLE,
RLO,
PDF,
EN,
ES,
ET,
AN,
CS,
NSM,
BN,
B,
S,
WS,
ON,
LRI,
RLI,
FSI,
PDI
}
internal static class Bidi_Types
{
internal static byte[] BidiCharTypes = new byte[65535]
{
14, 14, 14, 14, 14, 14, 14, 14, 14, 16,
15, 16, 17, 15, 14, 14, 14, 14, 14, 14,
14, 14, 14, 14, 14, 14, 14, 14, 15, 15,
15, 16, 17, 18, 18, 10, 10, 10, 18, 18,
18, 18, 18, 9, 12, 9, 12, 12, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 12, 18,
18, 18, 18, 18, 18, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 18, 18, 18, 18, 18, 18, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 18, 18, 18, 18, 14, 14, 14,
14, 14, 14, 15, 14, 14, 14, 14, 14, 14,
14, 14, 14, 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, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 18, 18, 0,
0, 0, 0, 0, 0, 0, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 0, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 0, 0, 0, 0,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13,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 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 18, 0, 18, 18, 18,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 18, 18, 18, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 18, 18, 18,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 18, 18, 18, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 18,
18, 0, 17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 14, 14, 14, 0, 3, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 17, 15, 1, 5, 7, 2, 6, 12,
10, 10, 10, 10, 10, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
12, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 17, 14, 14,
14, 14, 14, 0, 0, 0, 0, 0, 14, 14,
14, 14, 14, 14, 8, 0, 0, 0, 8, 8,
8, 8, 8, 8, 9, 9, 18, 18, 18, 0,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
9, 9, 18, 18, 18, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 18, 18,
0, 18, 18, 18, 18, 0, 18, 18, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 18, 0,
18, 18, 18, 0, 0, 0, 0, 0, 18, 18,
18, 18, 18, 18, 0, 18, 0, 18, 0, 18,
0, 0, 0, 0, 10, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 18, 18, 0, 0,
0, 0, 18, 18, 18, 18, 18, 0, 0, 0,
0, 0, 18, 18, 18, 18, 0, 0, 0, 0,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 9, 10, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 0,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 0, 0, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 0, 0, 0,
18, 18, 18, 18, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 18, 18, 18, 18, 0,
18, 18, 18, 18, 0, 0, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 0, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 18, 0, 18, 18, 18, 18, 0, 0, 0,
18, 0, 18, 18, 18, 18, 18, 18, 18, 0,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 0, 0, 0, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 0, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 0, 18, 0,
0, 0, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18,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, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 0, 0, 0, 0, 17, 18,
18, 18, 18, 0, 0, 0, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 0, 0, 0, 0, 0, 0, 0, 0, 0,
13, 13, 13, 13, 13, 13, 18, 0, 0, 0,
0, 0, 18, 18, 0, 0, 0, 0, 0, 18,
18, 18, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 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, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 18, 0, 0, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
0, 0, 0, 0, 0, 0, 13, 13, 13, 13,
13, 13, 13, 0, 0, 0, 0, 0, 0, 0,
0, 0, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 12, 18, 12, 0, 18, 12,
18, 18, 18, 18, 18, 18, 18, 18, 18, 10,
18, 18, 9, 9, 18, 18, 18, 0, 18, 10,
10, 18, 0, 0, 0, 0, 4, 4, 4, 4,
4, 0, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 0, 0, 14,
0, 18, 18, 10, 10, 10, 18, 18, 18, 18,
18, 9, 12, 9, 12, 12, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 12, 18, 18, 18,
18, 18, 18, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 18,
18, 18, 18, 18, 18, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 10, 10, 18, 18, 18, 10,
10, 0, 18, 18, 18, 18, 18, 18, 18, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 18,
18, 18, 18, 18, 0
};
}
internal sealed class UIKitAnimatedBinding : UIKitBinding
{
public AnimationProperties Properties { get; set; }
public UIKitAnimatedBinding(string id)
: base(id)
{
Properties = ServiceLocator.GetService<IAnimationManager>().GetAnimationProperties();
}
protected override MarkupExtension CreateBinding(DependencyProperty? targetProperty = null)
{
//IL_000d: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Expected O, but got Unknown
return (MarkupExtension)(object)new AnimatedBindingExtension
{
Source = (BindingBase?)(Binding)base.CreateBinding(targetProperty),
Properties = Properties
};
}
}
internal class UIKitBinding : ExtendedMarkupExtension
{
private readonly string _id;
public Type? Type { get; set; }
public object? DefaultValue { get; set; }
public RelativeSourceMode Mode { get; set; }
public Type? AncestorType { get; set; }
public IValueConverter? Converter { get; set; }
public object? ConverterParameter { get; set; }
public UIKitBinding(string id)
{
_id = Guard.EnsureArgumentIsNotNullOrEmpty(id, (string)null, "id");
Mode = (RelativeSourceMode)1;
}
protected override object? ProvideValue(IServiceProvider? serviceProvider, TargetType valueType)
{
return CreateBinding().ProvideValue(serviceProvider);
}
protected override object? ProvideForSetter(IServiceProvider serviceProvider, SetterBase targetObject, object targetProperty)
{
return CreateBinding();
}
protected override object? ProvideForControlTemplate(IServiceProvider serviceProvider, object targetObject, DependencyProperty targetProperty)
{
return CreateBinding(targetProperty).ProvideValue(serviceProvider);
}
protected override object? ProvideForControl(IServiceProvider serviceProvider, DependencyObject targetObject, DependencyProperty targetProperty)
{
return CreateBinding(targetProperty).ProvideValue(serviceProvider);
}
protected virtual MarkupExtension CreateBinding(DependencyProperty? targetProperty = null)
{
//IL_0040: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Unknown result type (might be due to invalid IL or missing references)
//IL_004d: Unknown result type (might be due to invalid IL or missing references)
//IL_005a: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Unknown result type (might be due to invalid IL or missing references)
//IL_006f: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Unknown result type (might be due to invalid IL or missing references)
//IL_007b: Unknown result type (might be due to invalid IL or missing references)
//IL_007d: Unknown result type (might be due to invalid IL or missing references)
//IL_0083: Invalid comparison between Unknown and I4
//IL_0099: Expected O, but got Unknown
//IL_009b: Expected O, but got Unknown
Type propertyType = ((targetProperty != null) ? (Type ?? targetProperty.PropertyType) : Guard.EnsureIsNotNull<Type>(Type, (string)null, "Type"));
PropertyPath path = UIKitPropertyStorage.GetOrCreate(_id, propertyType, DefaultValue).AsPath();
return (MarkupExtension)new Binding
{
Mode = (BindingMode)1,
Converter = Converter,
ConverterParameter = ConverterParameter,
Path = path,
RelativeSource = new RelativeSource(Mode)
{
AncestorType = (((int)Mode == 3) ? AncestorType : null)
}
};
}
}
internal static class UIKitComponentTracers
{
public static string Animation = "Animation";
public static string Accessibility = "Accessibility";
public static string Converters = "Converters";
public static string Notification = "Notification";
public static string Interactivity = "Interactivity";
public static string Navigation = "Navigation";
public static string Theme = "Theme";
public static string Localization = "Localization";
}
internal static class UIKitConstants
{
public static string IconsScope { get; } = "Svg";
public static string IconUnsetValue { get; } = "UIKitUnset";
public static string PaletteScope { get; } = "Palette";
public static string LocalizationScope { get; } = "UiKit";
public static int BadgeCounterMaxCounter { get; } = 100;
public static Brush BarCodeBackground => (Brush)(object)Brushes.White;
public static Brush BarCodeForeground => (Brush)(object)Brushes.Black;
public static Thickness BarCodeBorderThickness { get; } = new Thickness(4.0);
public static UIKitIcon_12 BulletIcon { get; } = UIKitIcon_12.BulletCheck;
public static double ButtonMinWidth { get; } = 80.0;
public static double ButtonGhostMinWidth { get; } = 0.0;
public static AnimationProperties CarouselItemAnimationProperties => new AnimationProperties
{
Duration = TimeSpan.FromMilliseconds(300.0),
Easing = (IEasingFunction?)new ExponentialEase
{
Exponent = 4.0,
EasingMode = (EasingMode)2
}
};
public static Thickness CarouselItemMargin { get; } = new Thickness(4.0, 0.0, 4.0, 0.0);
public static Thickness ChipsItemMargin { get; } = new Thickness(0.0, 6.0, 8.0, 6.0);
public static int ChipsItemMaxCounter { get; } = 100;
public static double ContextMenuPopupDecoratorMaxWidth { get; } = 350.0;
public static double ContextMenuPopupDecoratorMinWidth { get; } = 80.0;
public static double DateTimeInputWidth { get; } = 140.0;
public static AnimationProperties ImageGalleryListAnimationProperties => new AnimationProperties
{
Duration = TimeSpan.FromMilliseconds(600.0),
Easing = (IEasingFunction?)new ExponentialEase
{
Exponent = 3.0,
EasingMode = (EasingMode)2
}
};
public static Thickness InteractivityDialogMargin { get; } = new Thickness(12.0);
public static TimeSpan InteractivityNotificationAutoCloseTimeout { get; } = TimeSpan.FromSeconds(4.0);
public static Thickness InteractivityOverlayClipMargin { get; } = new Thickness(4.0);
public static double InteractivityOverlayClipCornerRadius { get; } = 6.0;
public static Thickness ListMenuPadding { get; } = new Thickness(4.0);
public static double MenuItemIconHeight { get; } = 16.0;
public static double MenuItemIconWidth { get; } = 16.0;
public static int PasswordInputMaxLength { get; } = 256;
public static double PopupMaxWidth { get; } = 350.0;
public static double PopupDecoratorOffset { get; } = 4.0;
public static Brush QrCodeBackground => (Brush)(object)Brushes.White;
public static Brush QrCodeForeground => (Brush)(object)Brushes.Black;
public static Thickness QrCodeBorderThickness { get; } = new Thickness(4.0);
public static double ScrollBarMinLength { get; } = 80.0;
public static double ScrollViewerBorderFadeLength { get; } = 32.0;
public static GradientStopCollection ScrollViewerBorderFadeGradient
{
get
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_002c: Expected O, but got Unknown
//IL_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Unknown result type (might be due to invalid IL or missing references)
//IL_0033: Unknown result type (might be due to invalid IL or missing references)
//IL_0034: Unknown result type (might be due to invalid IL or missing references)
//IL_003f: Unknown result type (might be due to invalid IL or missing references)
//IL_0054: Expected O, but got Unknown
//IL_0056: Expected O, but got Unknown
GradientStopCollection val = new GradientStopCollection();
val.Add(new GradientStop
{
Color = Colors.Black,
Offset = 0.0
});
val.Add(new GradientStop
{
Color = Colors.Transparent,
Offset = 1.0
});
return val;
}
}
public static double SearchWidth { get; } = 150.0;
public static double SelectPopupDecoratorMinHeight { get; } = 48.0;
public static int TabMenuItemMaxCounter { get; } = 100;
public static Thickness TextInlineBaseMargin { get; } = new Thickness(4.0, 0.0, 4.0, 0.0);
public static double ToolTipMaxWidth { get; } = 350.0;
public static double ToolTipMaxHeight { get; } = 550.0;
}
internal sealed class UIKitContentPresenter : ContentPresenter
{
public static readonly DependencyProperty ContentImpicitStylesProperty;
public ObservableCollection<UIKitStyleHolder> ContentImpicitStyles
{
get
{
return (ObservableCollection<UIKitStyleHolder>)((DependencyObject)this).GetValue(ContentImpicitStylesProperty);
}
set
{
((DependencyObject)this).SetValue(ContentImpicitStylesProperty, (object)value);
}
}
static UIKitContentPresenter()
{
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Expected O, but got Unknown
//IL_0040: Unknown result type (might be due to invalid IL or missing references)
//IL_004a: Expected O, but got Unknown
//IL_0045: Unknown result type (might be due to invalid IL or missing references)
//IL_004f: Expected O, but got Unknown
ContentImpicitStylesProperty = DependencyProperty.Register("ContentImpicitStyles", typeof(ObservableCollection<UIKitStyleHolder>), typeof(UIKitContentPresenter), new PropertyMetadata((object)null));
ContentPresenter.ContentProperty.OverrideMetadata(typeof(UIKitContentPresenter), (PropertyMetadata)new FrameworkPropertyMetadata(new PropertyChangedCallback(OnContentChanged)));
}
public UIKitContentPresenter()
{
ContentImpicitStyles = new ObservableCollection<UIKitStyleHolder>();
ContentImpicitStyles.CollectionChanged += OnContentImpicitStylesChanged;
}
internal void SetImplicitStyles(DependencyObject d)
{
IEnumerable<Style> styles = ContentImpicitStyles.Select((UIKitStyleHolder sr) => sr.StyleRef);
ResourceDictionary elementResources = GetElementResources(d);
if (elementResources != null)
{
AddOrUpdateStyles(styles, elementResources);
}
}
private void OnContentImpicitStylesChanged(object? sender, NotifyCollectionChangedEventArgs e)
{
if (e.OldItems != null)
{
foreach (UIKitStyleHolder item in e.OldItems.Cast<UIKitStyleHolder>())
{
item.StyleRefChanged -= OnStyleHolderChanged;
RemoveStyleInjection(item.StyleRef);
}
}
if (e.NewItems == null)
{
return;
}
foreach (UIKitStyleHolder item2 in e.NewItems.Cast<UIKitStyleHolder>())
{
item2.StyleRefChanged += OnStyleHolderChanged;
AddStyleInjection(item2.StyleRef);
}
}
private void OnStyleHolderChanged(Style? newStyle, Style? oldStyle)
{
RemoveStyleInjection(oldStyle);
AddStyleInjection(newStyle);
}
private void AddStyleInjection(Style? style)
{
if (style != null)
{
ResourceDictionary elementResources = GetElementResources(this);
if (elementResources != null)
{
AddOrUpdateStyle(style, elementResources);
}
ResourceDictionary elementResources2 = GetElementResources(((ContentPresenter)this).Content);
if (elementResources2 != null)
{
AddOrUpdateStyle(style, elementResources2);
}
}
}
private void RemoveStyleInjection(Style? style)
{
if (style != null)
{
ResourceDictionary elementResources = GetElementResources(this);
if (elementResources != null)
{
RemoveStyle(style, elementResources);
}
ResourceDictionary elementResources2 = GetElementResources(((ContentPresenter)this).Content);
if (elementResources2 != null)
{
RemoveStyle(style, elementResources2);
}
}
}
private static void OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
DependencyObject d2 = d;
object newValue = ((DependencyPropertyChangedEventArgs)(ref e)).NewValue;
UIElement uiElement = (UIElement)((newValue is UIElement) ? newValue : null);
if (uiElement != null)
{
((DependencyObject)(object)uiElement).WhenLoaded(delegate
{
((UIKitContentPresenter)(object)d2).SetImplicitStyles((DependencyObject)(object)uiElement);
});
}
}
private static void RemoveStyle(Style style, ResourceDictionary rd)
{
Type targetType = style.TargetType;
ResourceDictionary val = rd.MergedDictionaries.FirstOrDefault();
if (val != null && val.Contains((object)targetType))
{
val.Remove((object)targetType);
}
}
private static void AddOrUpdateStyles(IEnumerable<Style> styles, ResourceDictionary rd)
{
foreach (Style style in styles)
{
AddOrUpdateStyle(style, rd);
}
}
private static void AddOrUpdateStyle(Style style, ResourceDictionary rd)
{
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_002c: Expected O, but got Unknown
Type targetType = style.TargetType;
ResourceDictionary val = rd.MergedDictionaries.FirstOrDefault();
if (val == null)
{
ResourceDictionary val2 = new ResourceDictionary();
val2.Add((object)targetType, (object)style);
val = val2;
rd.MergedDictionaries.Add(val);
}
else if (val.Contains((object)targetType))
{
if (val[(object)targetType] != style)
{
val[(object)targetType] = style;
}
}
else
{
val.Add((object)targetType, (object)style);
}
}
private static ResourceDictionary? GetElementResources(object content)
{
ResourceDictionary result = null;
FrameworkElement val = (FrameworkElement)((content is FrameworkElement) ? content : null);
if (val != null)
{
result = val.Resources;
}
else
{
FrameworkContentElement val2 = (FrameworkContentElement)((content is FrameworkContentElement) ? content : null);
if (val2 != null)
{
result = val2.Resources;
}
}
return result;
}
}
[MarkupExtensionReturnType(typeof(Style))]
internal sealed class UIKitImplicitStyleExtension : MarkupExtension
{
private sealed class StateAwareStyleMultibindingConverter : MultiValueConverterMarkupExtension<StateAwareStyleMultibindingConverter>
{
public Style? BasedOnStyle { get; set; }
public SetterBaseCollection? NormalAdditionalSetters { get; set; }
public SetterBaseCollection? HoverAdditionalSetters { get; set; }
public SetterBaseCollection? PressedAdditionalSetters { get; set; }
public SetterBaseCollection? DisabledAdditionalSetters { get; set; }
public SetterBaseCollection? SelectedNormalAdditionalSetters { get; set; }
public SetterBaseCollection? SelectedHoverAdditionalSetters { get; set; }
public SetterBaseCollection? SelectedPressedAdditionalSetters { get; set; }
public SetterBaseCollection? SelectedDisabledAdditionalSetters { get; set; }
public Type? StateAwareAncestorType { get; set; }
public Type? TargetType { get; set; }
public override object? Convert(object?[] values, Type targetType, object? parameter, CultureInfo culture)
{
if (values == null || values.Length == 0)
{
return DependencyProperty.UnsetValue;
}
object? obj = values[0];
Style val = (Style)((obj is Style) ? obj : null);
if (val == null)
{
return DependencyProperty.UnsetValue;
}
Style hoverStyle = (Style)((values.Length >= 2) ? /*isinst with value type is only supported in some contexts*/: null);
Style pressedStyle = (Style)((values.Length >= 3) ? /*isinst with value type is only supported in some contexts*/: null);
Style disabledStyle = (Style)((values.Length >= 4) ? /*isinst with value type is only supported in some contexts*/: null);
Style val2 = (Style)((values.Length >= 5) ? /*isinst with value type is only supported in some contexts*/: null);
Style val3 = (Style)((values.Length >= 6) ? /*isinst with value type is only supported in some contexts*/: null);
Style val4 = (Style)((values.Length >= 7) ? /*isinst with value type is only supported in some contexts*/: null);
Style val5 = (Style)((values.Length >= 8) ? /*isinst with value type is only supported in some contexts*/: null);
if (val2 != null || val3 != null || val4 != null || val5 != null)
{
return StyleExtensions.MergeWithSelectableStateAware(val, hoverStyle, pressedStyle, disabledStyle, val2, val3, val4, val5, BasedOnStyle, NormalAdditionalSetters, HoverAdditionalSetters, PressedAdditionalSetters, DisabledAdditionalSetters, SelectedNormalAdditionalSetters, SelectedHoverAdditionalSetters, SelectedPressedAdditionalSetters, SelectedDisabledAdditionalSetters, StateAwareAncestorType, TargetType);
}
return StyleExtensions.MergeWithStateAware(val, hoverStyle, pressedStyle, disabledStyle, BasedOnStyle, NormalAdditionalSetters, HoverAdditionalSetters, PressedAdditionalSetters, DisabledAdditionalSetters, StateAwareAncestorType, TargetType);
}
}
private SetterBaseCollection? _normalAdditionalSetters = null;
private SetterBaseCollection? _hoverAdditionalSetters = null;
private SetterBaseCollection? _pressedAdditionalSetters = null;
private SetterBaseCollection? _disabledAdditionalSetters = null;
private SetterBaseCollection? _selectedNormalAdditionalSetters = null;
private SetterBaseCollection? _selectedHoverAdditionalSetters = null;
private SetterBaseCollection? _selectedPressedAdditionalSetters = null;
private SetterBaseCollection? _selectedDisabledAdditionalSetters = null;
public PropertyPath Normal { get; set; }
public PropertyPath Hover { get; set; }
public PropertyPath Pressed { get; set; }
public PropertyPath Disabled { get; set; }
public PropertyPath SelectedNormal { get; set; }
public PropertyPath SelectedHover { get; set; }
public PropertyPath SelectedPressed { get; set; }
public PropertyPath SelectedDisabled { get; set; }
public SetterBaseCollection NormalAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _normalAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_normalAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public SetterBaseCollection HoverAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _hoverAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_hoverAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public SetterBaseCollection PressedAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _pressedAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_pressedAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public SetterBaseCollection DisabledAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _disabledAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_disabledAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public SetterBaseCollection SelectedNormalAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _selectedNormalAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_selectedNormalAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public SetterBaseCollection SelectedHoverAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _selectedHoverAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_selectedHoverAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public SetterBaseCollection SelectedPressedAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _selectedPressedAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_selectedPressedAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public SetterBaseCollection SelectedDisabledAdditionalSetters
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
//IL_0017: Expected O, but got Unknown
SetterBaseCollection obj = _selectedDisabledAdditionalSetters;
if (obj == null)
{
SetterBaseCollection val = new SetterBaseCollection();
SetterBaseCollection val2 = val;
_selectedDisabledAdditionalSetters = val;
obj = val2;
}
return obj;
}
}
public Style? BasedOnStyle { get; set; }
public Type? StateAwareAncestorType { get; set; }
public Type? TargetType { get; set; }
public UIKitImplicitStyleExtension(string propertyName)
{
Normal = CreateGenericPropertyPath(propertyName);
Hover = CreateGenericPropertyPath(propertyName + "Hover");
Pressed = CreateGenericPropertyPath(propertyName + "Pressed");
Disabled = CreateGenericPropertyPath(propertyName + "Disabled");
SelectedNormal = CreateGenericPropertyPath(propertyName + "SelectedNormal");
SelectedHover = CreateGenericPropertyPath(propertyName + "SelectedHover");
SelectedPressed = CreateGenericPropertyPath(propertyName + "SelectedPressed");
SelectedDisabled = CreateGenericPropertyPath(propertyName + "SelectedDisabled");
}
public override object? ProvideValue(IServiceProvider serviceProvider)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_00a2: Expected O, but got Unknown
MultiBinding val = new MultiBinding
{
Converter = (IMultiValueConverter)(object)new StateAwareStyleMultibindingConverter
{
BasedOnStyle = BasedOnStyle,
NormalAdditionalSetters = _normalAdditionalSetters,
HoverAdditionalSetters = _hoverAdditionalSetters,
PressedAdditionalSetters = _pressedAdditionalSetters,
DisabledAdditionalSetters = _disabledAdditionalSetters,
SelectedNormalAdditionalSetters = _selectedNormalAdditionalSetters,
SelectedHoverAdditionalSetters = _selectedHoverAdditionalSetters,
SelectedPressedAdditionalSetters = _selectedPressedAdditionalSetters,
SelectedDisabledAdditionalSetters = _selectedDisabledAdditionalSetters,
StateAwareAncestorType = StateAwareAncestorType,
TargetType = TargetType
}
};
val.Bindings.Add((BindingBase)(object)CreateBinding(Normal));
val.Bindings.Add((BindingBase)(object)CreateBinding(Hover));
val.Bindings.Add((BindingBase)(object)CreateBinding(Pressed));
val.Bindings.Add((BindingBase)(object)CreateBinding(Disabled));
val.Bindings.Add((BindingBase)(object)CreateBinding(SelectedNormal));
val.Bindings.Add((BindingBase)(object)CreateBinding(SelectedHover));
val.Bindings.Add((BindingBase)(object)CreateBinding(SelectedPressed));
val.Bindings.Add((BindingBase)(object)CreateBinding(SelectedDisabled));
return ((MarkupExtension)val).ProvideValue(serviceProvider);
}
private static PropertyPath CreateGenericPropertyPath(string propertyName)
{
return UIKitPropertyStorage.GetOrCreate(propertyName, typeof(Style)).AsPath();
}
private static Binding CreateBinding(PropertyPath path)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_0021: Expected O, but got Unknown
//IL_0023: Expected O, but got Unknown
return new Binding
{
Path = path,
RelativeSource = new RelativeSource
{
Mode = (RelativeSourceMode)1
}
};
}
}
internal static class UIKitIslandHelper
{
private sealed class IslandPropsHolder : UIElement
{
}
public static readonly DependencyPropertyKey LevelPropertyKey = DependencyProperty.RegisterReadOnly("Level", typeof(IslandLevel), typeof(IslandPropsHolder), new PropertyMetadata((object)IslandLevel.First));
private static readonly DependencyProperty _levelEditableProperty = DependencyProperty.RegisterAttached("LevelEditable", typeof(IslandLevel), typeof(IslandPropsHolder), new PropertyMetadata((object)IslandLevel.First, new PropertyChangedCallback(OnLevelEditableChanged)));
public static readonly DependencyPropertyKey TypePropertyKey = DependencyProperty.RegisterReadOnly("Type", typeof(IslandType), typeof(IslandPropsHolder), new PropertyMetadata((object)IslandType.Primary));
private static readonly DependencyProperty _typeEditableProperty = DependencyProperty.RegisterAttached("TypeEditable", typeof(IslandType), typeof(IslandPropsHolder), new PropertyMetadata((object)IslandType.Primary, new PropertyChangedCallback(OnTypeEditableChanged)));
private static readonly List<Type> _islandContainers = new List<Type>
{
typeof(Island),
typeof(IslandButton),
typeof(IslandToggleButton)
};
private static readonly int _maxNestingLevel = Enum.GetValues(typeof(IslandLevel)).Length;
private static void OnLevelEditableChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
((DependencyObject)(Control)d).SetValue(LevelPropertyKey, ((DependencyPropertyChangedEventArgs)(ref e)).NewValue);
}
private static void OnTypeEditableChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
((DependencyObject)(Control)d).SetValue(TypePropertyKey, ((DependencyPropertyChangedEventArgs)(ref e)).NewValue);
}
public static void Initialize(Control control)
{
Control control2 = control;
Guard.ArgumentIsNotNull<Control>(control2, (string)null, "control");
((DependencyObject)(object)control2).WhenLoaded(delegate
{
InvalidateLevel(control2);
});
((DependencyObject)(object)control2).WhenInitialized(delegate
{
InvalidateType(control2);
});
}
private static void InvalidateLevel(Control control)
{
Control control2 = control;
int num = _islandContainers.SelectMany((Type ct) => from p in ((DependencyObject)(object)control2).TraverseVisualParents()
where ct.IsAssignableFrom(((object)p).GetType())
select p).Count();
if (num > _maxNestingLevel)
{
throw new InvalidOperationException($"Invalid {((object)control2).GetType().Name} level. Max level {_maxNestingLevel}. Actual level {num + 1}");
}
((DependencyObject)control2).SetValue(_levelEditableProperty, (object)(IslandLevel)num);
}
private static void InvalidateType(Control control)
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_000d: Expected O, but got Unknown
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Expected O, but got Unknown
DependencyProperty typeEditableProperty = _typeEditableProperty;
Binding val = new Binding();
val.RelativeSource = new RelativeSource((RelativeSourceMode)3, typeof(IslandLayer), 1);
val.Path = IslandLayer.TypeProperty.AsPath();
((BindingBase)val).FallbackValue = IslandType.Primary;
((FrameworkElement)control).SetBinding(typeEditableProperty, (BindingBase)(object)val);
}
}
internal static class UIKitItemsControlHelper
{
public static readonly DependencyProperty IsGeneratedItemContainerProperty = DependencyProperty.RegisterAttached("IsGeneratedItemContainer", typeof(bool), typeof(UIKitItemsControlHelper));
public static readonly DependencyProperty ItemElementProperty = DependencyProperty.Register("ItemElement", typeof(DataTemplate), typeof(UIKitItemsControlHelper));
public static readonly DependencyProperty ItemElementSelectorProperty = DependencyProperty.Register("ItemElementSelector", typeof(DataTemplateSelector), typeof(UIKitItemsControlHelper));
public static bool IsItemContainer<TControl>(object item) where TControl : Control
{
return item is TControl;
}
public static bool IsSimpleItemContainer(DependencyObject item)
{
Guard.ArgumentIsNotNull<DependencyObject>(item, (string)null, "item");
object value = item.GetValue(IsGeneratedItemContainerProperty);
return value is bool && !(bool)value;
}
public static TControl CreateItemContainer<TControl>(ItemsControl itemsControl, object? item) where TControl : Control, new()
{
Guard.ArgumentIsNotNull<ItemsControl>(itemsControl, (string)null, "itemsControl");
object value = ((DependencyObject)itemsControl).GetValue(ItemElementProperty);
DataTemplate val = (DataTemplate)((value is DataTemplate) ? value : null);
if (val != null)
{
DependencyObject obj = ((FrameworkTemplate)val).LoadContent();
TControl val2 = (TControl)(object)((obj is TControl) ? obj : null);
if (val2 != null)
{
((DependencyObject)(object)val2).SetValue(IsGeneratedItemContainerProperty, (object)true);
return val2;
}
throw new Exception("ItemElementProperty must contain DataTemplate with " + typeof(TControl).Name + " in root");
}
object value2 = ((DependencyObject)itemsControl).GetValue(ItemElementSelectorProperty);
DataTemplateSelector val3 = (DataTemplateSelector)((value2 is DataTemplateSelector) ? value2 : null);
if (val3 != null && item != null)
{
DataTemplate obj2 = val3.SelectTemplate(item, (DependencyObject)null);
DependencyObject obj3 = ((obj2 != null) ? ((FrameworkTemplate)obj2).LoadContent() : null);
TControl val4 = (TControl)(object)((obj3 is TControl) ? obj3 : null);
if (val4 != null)
{
((DependencyObject)(object)val4).SetValue(IsGeneratedItemContainerProperty, (object)true);
return val4;
}
throw new Exception("ItemElementSelectorProperty must provide DataTemplates with " + typeof(TControl).Name + " in root");
}
return new TControl();
}
}
internal static class UIKitPropertyMetadataFactory
{
public static PropertyMetadata CreatePropsMetadata(Type expectedSenderType, string propertyName, PropertyChangedCallback? onValueChanged = null, object? defaultValue = null)
{
//IL_003b: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Expected O, but got Unknown
//IL_0040: Unknown result type (might be due to invalid IL or missing references)
//IL_0027: Unknown result type (might be due to invalid IL or missing references)
//IL_0031: Expected O, but got Unknown
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0046: Expected O, but got Unknown
Type expectedSenderType2 = expectedSenderType;
string propertyName2 = propertyName;
PropertyChangedCallback onValueChanged2 = onValueChanged;
return (defaultValue != null) ? new PropertyMetadata(defaultValue, new PropertyChangedCallback(OnValueChangedCallback)) : new PropertyMetadata(new PropertyChangedCallback(OnValueChangedCallback));
void OnValueChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
//IL_0049: Unknown result type (might be due to invalid IL or missing references)
if (!expectedSenderType2.IsAssignableFrom(((object)d).GetType()))
{
throw new InvalidOperationException($"Unexpected target object type for '{propertyName2}'. Expected '{expectedSenderType2}', actual '{((object)d).GetType()}'");
}
PropertyChangedCallback obj = onValueChanged2;
if (obj != null)
{
obj.Invoke(d, e);
}
}
}
}
internal static class UIKitPropertyStorage
{
private static readonly ConcurrentDictionary<string, DependencyProperty> _propertyStorage = new ConcurrentDictionary<string, DependencyProperty>();
public static DependencyProperty GetOrCreate(string propertyName, Type propertyType, object? defaultValue = null)
{
object defaultValue2 = defaultValue;
Type propertyType2 = propertyType;
Guard.ArgumentIsNotNullOrEmpty(propertyName, (string)null, "propertyName");
Guard.ArgumentIsNotNull<Type>(propertyType2, (string)null, "propertyType");
DependencyProperty orAdd = _propertyStorage.GetOrAdd(propertyName, (Func<string, DependencyProperty>)delegate(string name)
{
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Expected O, but got Unknown
if (defaultValue2 == null)
{
defaultValue2 = (propertyType2.IsValueType ? Activator.CreateInstance(propertyType2) : null);
}
return DependencyProperty.RegisterAttached(name, propertyType2, typeof(UIKitPropertyStorage), new PropertyMetadata(defaultValue2));
});
if (orAdd.PropertyType != propertyType2)
{
throw new InvalidOperationException($"Property '{propertyName}' already registered with type '{orAdd.PropertyType}'. Expected type '{propertyType2}'");
}
return orAdd;
}
public static DependencyProperty Get(string propertyName)
{
Guard.ArgumentIsNotNullOrEmpty(propertyName, (string)null, "propertyName");
if (_propertyStorage.TryGetValue(propertyName, out DependencyProperty value))
{
return value;
}
throw new InvalidOperationException("Property '" + propertyName + "' is not registered'");
}
}
internal sealed class UIKitSetter : Setter
{
private string? _id;
public string? Id
{
get
{
return _id;
}
set
{
((SetterBase)this).CheckSealed();
_id = Guard.EnsureIsNotNull<string>(value, (string)null, "value");
((Setter)this).Property = UIKitPropertyStorage.Get(_id);
}
}
}
internal sealed class UIKitStyleHolder : FrameworkElement
{
public static readonly DependencyProperty StyleRefProperty = DependencyProperty.Register("StyleRef", typeof(Style), typeof(UIKitStyleHolder), new PropertyMetadata((object)null, new PropertyChangedCallback(OnStyleRefChanged)));
public Style StyleRef
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
return (Style)((DependencyObject)this).GetValue(StyleRefProperty);
}
set
{
((DependencyObject)this).SetValue(StyleRefProperty, (object)value);
}
}
public event Action<Style?, Style?> StyleRefChanged = delegate
{
};
private static void OnStyleRefChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
Action<Style?, Style?> styleRefChanged = ((UIKitStyleHolder)(object)d).StyleRefChanged;
object arg = (object)/*isinst with value type is only supported in some contexts*/;
object oldValue = ((DependencyPropertyChangedEventArgs)(ref e)).OldValue;
styleRefChanged((Style)arg, (Style)((oldValue is Style) ? oldValue : null));
}
}
internal sealed class UIKitTrigger : DataTrigger
{
private static readonly Setter _targetObject;
private static readonly object _targetProperty;
private static readonly DependencyTarget _target;
private string? _id;
private Type? _type;
private RelativeSourceMode _mode;
private Type? _ancestorType;
private IValueConverter? _converter;
private object? _converterParameter;
public string? Id
{
get
{
return _id;
}
set
{
_id = value;
UpdateBiding();
}
}
public Type? Type
{
get
{
return _type;
}
set
{
_type = value;
UpdateBiding();
}
}
public RelativeSourceMode Mode
{
get
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
return _mode;
}
set
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
_mode = value;
UpdateBiding();
}
}
public Type? AncestorType
{
get
{
return _ancestorType;
}
set
{
_ancestorType = value;
UpdateBiding();
}
}
public IValueConverter? Converter
{
get
{
return _converter;
}
set
{
_converter = value;
UpdateBiding();
}
}
public object? ConverterParameter
{
get
{
return _converterParameter;
}
set
{
_converterParameter = value;
UpdateBiding();
}
}
static UIKitTrigger()
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_000b: Expected O, but got Unknown
_targetObject = new Setter();
_targetProperty = new object();
_target = new DependencyTarget(_targetObject, _targetProperty);
}
public UIKitTrigger()
{
Mode = (RelativeSourceMode)1;
}
private void UpdateBiding()
{
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
if (Id != null && !(Type == null))
{
Guard.IsNotNull<string>(Id, (string)null, "Id");
Guard.IsNotNull<Type>(Type, (string)null, "Type");
object obj = ((MarkupExtension)new UIKitBinding(Id)
{
Type = Type,
Mode = Mode,
AncestorType = AncestorType,
Converter = Converter,
ConverterParameter = ConverterParameter
}).ProvideValue((IServiceProvider)_target);
((DataTrigger)this).Binding = Guard.EnsureIsInstanceOfType<BindingBase>(obj, (string)null, "uiKitBinding");
}
}
}
public sealed class Dpi : IEquatable<Dpi>
{
public static readonly Dpi Default = new Dpi(96.0, 96.0);
private const int DefaultDpi = 96;
public double ScaleX { get; }
public double ScaleY { get; }
public double X { get; }
public double Y { get; }
public Dpi(double x, double y)
{
X = x;
Y = y;
ScaleX = X / 96.0;
ScaleY = Y / 96.0;
}
public bool Equals(Dpi? other)
{
if (other == null)
{
return false;
}
return X.Equals(other.X) && Y.Equals(other.Y);
}
public override bool Equals(object? other)
{
return Equals(other as Dpi);
}
public override int GetHashCode()
{
return X.GetHashCode() ^ Y.GetHashCode();
}
public override string ToString()
{
return $"({X},{Y})";
}
}
public sealed class DpiChangedEventArguments
{
public Dpi NewDpi { get; }
public Dpi OldDpi { get; }
public Rect PositionAdvice { get; }
public DpiChangedEventArguments(Dpi oldDpi, Dpi newDpi, Rect positionAdvice)
{
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_0018: Unknown result type (might be due to invalid IL or missing references)
OldDpi = oldDpi;
NewDpi = newDpi;
PositionAdvice = positionAdvice;
}
}
public static class DpiExtensions
{
public static Point TranslateToDefaultDpi(this FrameworkElement window, Point location)
{
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_0027: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
PresentationSource source = PresentationSource.FromVisual((Visual)(object)window);
return new Point(TranslateToDefaultDpiX(((Point)(ref location)).X, source), TranslateToDefaultDpiY(((Point)(ref location)).Y, source));
}
public static double TranslateToDefaultDpiX(this FrameworkElement window, double value)
{
return TranslateToDefaultDpiX(value, PresentationSource.FromVisual((Visual)(object)window));
}
public static double TranslateToDefaultDpiY(this FrameworkElement window, double value)
{
return TranslateToDefaultDpiY(value, PresentationSource.FromVisual((Visual)(object)window));
}
public static double GetCurrentDpiX(this FrameworkElement window)
{
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
PresentationSource val = PresentationSource.FromVisual((Visual)(object)window);
if (((val != null) ? val.CompositionTarget : null) != null)
{
Matrix transformFromDevice = val.CompositionTarget.TransformFromDevice;
return 1.0 / ((Matrix)(ref transformFromDevice)).M11 * Dpi.Default.X;
}
return Dpi.Default.X;
}
public static double GetCurrentDpiY(this FrameworkElement window)
{
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
PresentationSource val = PresentationSource.FromVisual((Visual)(object)window);
if (((val != null) ? val.CompositionTarget : null) != null)
{
Matrix transformFromDevice = val.CompositionTarget.TransformFromDevice;
return 1.0 / ((Matrix)(ref transformFromDevice)).M22 * Dpi.Default.Y;
}
return Dpi.Default.Y;
}
private static double TranslateToDefaultDpiX(double value, PresentationSource source)
{
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
if (((source != null) ? source.CompositionTarget : null) != null)
{
double x = Dpi.Default.X;
Matrix transformFromDevice = source.CompositionTarget.TransformFromDevice;
double num = x * ((Matrix)(ref transformFromDevice)).M11;
return value * Dpi.Default.X / num;
}
return value;
}
private static double TranslateToDefaultDpiY(double value, PresentationSource source)
{
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
if (((source != null) ? source.CompositionTarget : null) != null)
{
double y = Dpi.Default.Y;
Matrix transformFromDevice = source.CompositionTarget.TransformFromDevice;
double num = y * ((Matrix)(ref transformFromDevice)).M22;
return value * Dpi.Default.Y / num;
}
return value;
}
}
public enum DpiType
{
DefaultDpi,
SystemDpi,
WindowOriginDpi,
WindowCurrentDpi
}
public sealed class ScreenResolutionChangedEventArguments
{
public Size NewResolution { get; }
public Size OldResolution { get; }
public ScreenResolutionChangedEventArguments(Size oldResolution, Size newResolution)
{
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
OldResolution = oldResolution;
NewResolution = newResolution;
}
}
public static class WindowCommand
{
public static readonly ICommand Close = (ICommand)new DelegateCommand<object>((Action<object>)CloseWindow);
public static readonly ICommand Minimize = (ICommand)new DelegateCommand<object>((Action<object>)MinimizeWindow);
public static readonly ICommand MaximizeOrRestore = (ICommand)new DelegateCommand<object>((Action<object>)MaximizeWindow);
private static readonly HashSet<Window> _closingWindows = new HashSet<Window>();
private static void CloseWindow(object? obj)
{
if (obj == null)
{
return;
}
Window window = Guard.EnsureArgumentIsInstanceOfType<DependencyObject>(obj, (string)null, "obj").GetWindow();
if (window == null || _closingWindows.Contains(window))
{
return;
}
_closingWindows.Add(window);
try
{
window.Close();
}
finally
{
_closingWindows.Remove(window);
}
}
private static void MinimizeWindow(object? obj)
{
if (obj != null)
{
Window window = Guard.EnsureArgumentIsInstanceOfType<DependencyObject>(obj, (string)null, "obj").GetWindow();
if (window != null)
{
window.WindowState = (WindowState)1;
}
}
}
private static void MaximizeWindow(object? obj)
{
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Invalid comparison between Unknown and I4
if (obj == null)
{
return;
}
Window window = Guard.EnsureArgumentIsInstanceOfType<DependencyObject>(obj, (string)null, "obj").GetWindow();
if (window != null)
{
if ((int)window.WindowState == 2)
{
window.WindowState = (WindowState)0;
}
else
{
window.WindowState = (WindowState)2;
}
}
}
}
public static class WindowDefaultStyle
{
public static void Initialize()
{
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0016: Expected O, but got Unknown
DependencyProperty styleProperty = FrameworkElement.StyleProperty;
Type? typeFromHandle = typeof(Window);
FrameworkPropertyMetadata val = new FrameworkPropertyMetadata();
((PropertyMetadata)val).DefaultValue = Application.Current.FindResource((object)typeof(Window));
styleProperty.OverrideMetadata(typeFromHandle, (PropertyMetadata)(object)val);
}
}
public static class WindowExtensions
{
public static IntPtr GetHandle(this Window window, bool ensure = false)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
if (ensure)
{
return new WindowInteropHelper(window).EnsureHandle();
}
return new WindowInteropHelper(window).Handle;
}
public static void WhenSourceInitialized(this Window window, Action? action)
{
Action action2 = action;
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
if (window.GetHandle() != IntPtr.Zero)
{
action2?.Invoke();
return;
}
window.Closing += OnClosing;
window.SourceInitialized += OnSourceInitialized;
void OnClosing(object? sender, CancelEventArgs e)
{
Guard.EnsureIsInstanceOfType<Window>(sender, (string)null, "sender").Closing -= OnClosing;
action2 = null;
}
void OnSourceInitialized(object? sender, EventArgs e)
{
Guard.EnsureIsInstanceOfType<Window>(sender, (string)null, "sender").SourceInitialized -= OnSourceInitialized;
action2?.Invoke();
}
}
public static void SetWindowPosition(this Window window, Point position)
{
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
Window window2 = window;
Guard.ArgumentIsNotNull<Window>(window2, (string)null, "window");
WindowScreenMonitoringService service = WindowScreenMonitoringService.GetInstance(window2);
service.WhenInitialized(delegate
{
window2.Left = ((Point)(ref position)).X * service.GetScaleX(DpiType.DefaultDpi, DpiType.WindowOriginDpi);
window2.Top = ((Point)(ref position)).Y * service.GetScaleY(DpiType.DefaultDpi, DpiType.WindowOriginDpi);
window2.AdjustWindowPosition();
});
}
public static void AdjustWindowPosition(this Window window)
{
Window window2 = window;
Guard.ArgumentIsNotNull<Window>(window2, (string)null, "window");
WindowScreenMonitoringService service = WindowScreenMonitoringService.GetInstance(window2);
service.WhenInitialized(delegate
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Unknown result type (might be due to invalid IL or missing references)
Rect scaledWorkArea = service.GetScaledWorkArea();
if (window2.Left < ((Rect)(ref scaledWorkArea)).Left)
{
window2.Left = ((Rect)(ref scaledWorkArea)).Left;
}
else if (window2.Left + ((FrameworkElement)window2).Width > ((Rect)(ref scaledWorkArea)).Right)
{
window2.Left = ((Rect)(ref scaledWorkArea)).Right - ((FrameworkElement)window2).Width;
}
if (window2.Top + ((FrameworkElement)window2).Height > ((Rect)(ref scaledWorkArea)).Bottom)
{
window2.Top = ((Rect)(ref scaledWorkArea)).Bottom - ((FrameworkElement)window2).Height;
}
});
}
}
public static class WindowHandleExtensions
{
public static WindowStyleExFlags SetWindowStyleEx(this IntPtr hWnd, WindowStyleExFlags windowStyleEx)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0009: Expected I4, but got Unknown
return (WindowStyleExFlags)User32Dll.SetWindowLong(hWnd, (WindowPropertyIndex)(-20), (int)windowStyleEx);
}
public static WindowStyleExFlags GetWindowStyleEx(this IntPtr hWnd)
{
return (WindowStyleExFlags)User32Dll.GetWindowLong(hWnd, (WindowPropertyIndex)(-20));
}
public static WindowStyleFlags SetWindowStyle(this IntPtr hWnd, WindowStyleFlags windowStyle)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0009: Expected I4, but got Unknown
return (WindowStyleFlags)User32Dll.SetWindowLong(hWnd, (WindowPropertyIndex)(-16), (int)windowStyle);
}
public static WindowStyleFlags GetWindowStyle(this IntPtr hWnd)
{
return (WindowStyleFlags)User32Dll.GetWindowLong(hWnd, (WindowPropertyIndex)(-16));
}
public static Window GetWindow(this IntPtr hWnd)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Expected O, but got Unknown
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
return (Window)((PresentationSource)HwndSource.FromHwnd(hWnd)).RootVisual;
}
public static Size GetScreenResolution(this IntPtr hWnd)
{
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_0056: Unknown result type (might be due to invalid IL or missing references)
//IL_0059: Unknown result type (might be due to invalid IL or missing references)
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
Screen val = Screen.FromHandle(hWnd);
Size result = default(Size);
((Size)(ref result)).Width = val.Bounds.Width;
((Size)(ref result)).Height = val.Bounds.Height;
return result;
}
public static void DragWindow(this IntPtr hWnd)
{
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
User32Dll.SendMessage(hWnd, 161u, (IntPtr)2, IntPtr.Zero);
}
public static void ResizeWindow(this IntPtr hwnd, WindowResizeDirection direction)
{
Guard.Assert(hwnd != IntPtr.Zero, (string)null, "hwnd != IntPtr.Zero");
User32Dll.SendMessage(hwnd, 274u, (IntPtr)(int)(61440 + direction), IntPtr.Zero);
}
public static bool TryGetWindowDpi(this IntPtr hWnd, [NotNullWhen(true)] out Dpi? result)
{
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
if (!OperatingSystemInfo.IsWin81OrHigher)
{
result = null;
return false;
}
IntPtr intPtr = User32Dll.MonitorFromWindow(hWnd, (MonitorOptions)2);
if (intPtr == IntPtr.Zero)
{
result = null;
return false;
}
uint num = 1u;
uint num2 = 1u;
ShcoreDll.GetDpiForMonitor(intPtr, (MonitorDpiType)0, ref num, ref num2);
result = new Dpi(num, num2);
return true;
}
public static bool TryGetWindowWorkArea(this IntPtr hWnd, out Rect result, bool normalizeToZero = true)
{
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_005d: Unknown result type (might be due to invalid IL or missing references)
//IL_0062: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_0064: Unknown result type (might be due to invalid IL or missing references)
//IL_0069: Unknown result type (might be due to invalid IL or missing references)
//IL_006c: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
result = default(Rect);
IntPtr intPtr = User32Dll.MonitorFromWindow(hWnd, (MonitorOptions)2);
if (intPtr == IntPtr.Zero)
{
return false;
}
MonitorInfo val = default(MonitorInfo);
((MonitorInfo)(ref val))..ctor();
if (!User32Dll.GetMonitorInfo(intPtr, ref val))
{
return false;
}
NativeRectangle work = val.Work;
NativeRectangle monitor = val.Monitor;
Rect val2 = default(Rect);
((Rect)(ref val2))..ctor((double)work.Left, (double)work.Top, (double)((NativeRectangle)(ref work)).Width, (double)((NativeRectangle)(ref work)).Height);
if (normalizeToZero)
{
((Rect)(ref val2)).Offset((double)(-monitor.Left), (double)(-monitor.Top));
}
result = val2;
return true;
}
public static bool IsForeground(this IntPtr hWnd)
{
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
IntPtr foregroundWindow = User32Dll.GetForegroundWindow();
return hWnd == foregroundWindow;
}
public static bool SetTopMost(this IntPtr hWnd)
{
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
return User32Dll.SetWindowPos(hWnd, (IntPtr)(-1), 0, 0, 0, 0, (WindowPositionFlags)3);
}
public static bool IsTopMost(this IntPtr hWnd)
{
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
WindowStyleExFlags val = (WindowStyleExFlags)User32Dll.GetWindowLong(hWnd, (WindowPropertyIndex)(-20));
return EnumOperations.HasFlag<WindowStyleExFlags, WindowStyleExFlags>(val, (WindowStyleExFlags)8);
}
public static IntPtr GetProcessId(this IntPtr hWnd)
{
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
IntPtr result = default(IntPtr);
User32Dll.GetWindowThreadProcessId(hWnd, ref result);
return result;
}
public static void StartFlashing(this IntPtr hWnd)
{
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
FlashWindowInfo val = default(FlashWindowInfo);
((FlashWindowInfo)(ref val))..ctor();
val.HWnd = hWnd;
val.Flags = (FlashWindowFlags)14;
val.Count = uint.MaxValue;
FlashWindowInfo val2 = val;
User32Dll.FlashWindowEx(ref val2);
}
public static void StopFlashing(this IntPtr hWnd)
{
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_002f: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
Guard.Assert(hWnd != IntPtr.Zero, (string)null, "hWnd != IntPtr.Zero");
FlashWindowInfo val = default(FlashWindowInfo);
((FlashWindowInfo)(ref val))..ctor();
val.HWnd = hWnd;
val.Flags = (FlashWindowFlags)0;
FlashWindowInfo val2 = val;
User32Dll.FlashWindowEx(ref val2);
}
}
public sealed class WindowHook : WindowHookBase, IDisposable
{
private readonly HwndSourceHook _hook;
public WindowHook(Window window, HwndSourceHook hook, string hookId, string traceComponent)
: base(window, hookId, traceComponent)
{
_hook = Guard.EnsureArgumentIsNotNull<HwndSourceHook>(hook, (string)null, "hook");
}
public override void Detach()
{
Detach(_hook);
}
public override void Attach()
{
Attach(_hook);
}
public void Dispose()
{
Detach();
}
}
public abstract class WindowHookBase
{
private readonly HwndSource _windowSource;
public string HookId { get; private set; }
public IntPtr WindowHandle { get; private set; }
public bool IsHookAttached { get; private set; }
protected ComponentTracer Tracer { get; private set; }
protected WindowHookBase(Window window, string hookId, string traceComponent)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
Guard.ArgumentIsNotNullOrEmpty(hookId, (string)null, "hookId");
HookId = hookId;
Tracer = ComponentTracer.Get(traceComponent);
WindowHandle = window.GetHandle(ensure: true);
Guard.Assert(WindowHandle != IntPtr.Zero, (string)null, "WindowHandle != IntPtr.Zero");
_windowSource = HwndSource.FromHwnd(WindowHandle);
}
public abstract void Attach();
public abstract void Detach();
protected void Attach(HwndSourceHook hook)
{
Guard.ArgumentIsNotNull<HwndSourceHook>(hook, (string)null, "hook");
if (!IsHookAttached)
{
_windowSource.AddHook(hook);
Tracer.TraceInformation(HookId + " is attached");
IsHookAttached = true;
}
}
protected void Detach(HwndSourceHook hook)
{
Guard.ArgumentIsNotNull<HwndSourceHook>(hook, (string)null, "hook");
if (IsHookAttached)
{
_windowSource.RemoveHook(hook);
Tracer.TraceInformation(HookId + " is detached");
IsHookAttached = false;
}
}
}
public sealed class WindowHookBuilder
{
private sealed class WindowHookProc
{
private readonly string _hookId;
private readonly Dictionary<WindowMessage, HwndSourceHook> _hooksMap = new Dictionary<WindowMessage, HwndSourceHook>();
private readonly List<HwndSourceHook> _asyncHooks = new List<HwndSourceHook>();
private readonly List<HwndSourceHook> _syncHooks = new List<HwndSourceHook>();
private static readonly ComponentTracer _tracer = ComponentTracer.Get("WindowHookProc");
public WindowHookProc(string hookId, IDictionary<WindowMessage, HwndSourceHook> hooksMap, ICollection<HwndSourceHook> syncHooks, ICollection<HwndSourceHook> asyncHooks)
{
_hookId = hookId;
_hooksMap = new Dictionary<WindowMessage, HwndSourceHook>(hooksMap);
_syncHooks = new List<HwndSourceHook>(syncHooks);
_asyncHooks = new List<HwndSourceHook>(asyncHooks);
}
public IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0052: Unknown result type (might be due to invalid IL or missing references)
//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
if (Enum.TryParse<WindowMessage>(msg.ToString(), out WindowMessage result) && _hooksMap.TryGetValue(result, out HwndSourceHook value))
{
if (_asyncHooks.Contains(value))
{
_tracer.TraceInformation($"Window Message '{result}' async processing by '{_hookId}' for window '0x{hwnd:X4}' with params: wParam 0x{wParam:X4}, lParam 0x{lParam:X4}");
value.Invoke(hwnd, msg, wParam, lParam, ref handled);
}
else if (_syncHooks.Contains(value))
{
_tracer.TraceInformation($"Window Message '{result}' sync processing by '{_hookId}' for window '0x{hwnd:X4}' with params: wParam 0x{wParam:X4}, lParam 0x{lParam:X4}");
return value.Invoke(hwnd, msg, wParam, lParam, ref handled);
}
}
return IntPtr.Zero;
}
}
private readonly Dictionary<WindowMessage, HwndSourceHook> _hooksMap = new Dictionary<WindowMessage, HwndSourceHook>();
private readonly List<HwndSourceHook> _asyncHooks = new List<HwndSourceHook>();
private readonly List<HwndSourceHook> _syncHooks = new List<HwndSourceHook>();
private readonly string _hookId;
public WindowHookBuilder(string hookId)
{
_hookId = hookId;
}
public WindowHookBuilder AddHandler(WindowMessage msg, WindowHookDelegate hook)
{
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0046: Unknown result type (might be due to invalid IL or missing references)
//IL_0050: Expected O, but got Unknown
//IL_005d: Unknown result type (might be due to invalid IL or missing references)
WindowHookDelegate hook2 = hook;
Guard.Assert(!_hooksMap.ContainsKey(msg), $"{msg} already added", "!_hooksMap.ContainsKey(msg)");
_hooksMap[msg] = (HwndSourceHook)delegate(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
return hook2(hwnd, wParam, lParam, ref handled);
};
_syncHooks.Add(_hooksMap[msg]);
return this;
}
public WindowHookBuilder AddHandler<TWParam, TLParam>(WindowMessage msg, WindowHookDelegate<TWParam, TLParam> hook) where TWParam : struct where TLParam : struct
{
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0046: Unknown result type (might be due to invalid IL or missing references)
//IL_0050: Expected O, but got Unknown
//IL_005d: Unknown result type (might be due to invalid IL or missing references)
WindowHookDelegate<TWParam, TLParam> hook2 = hook;
Guard.Assert(!_hooksMap.ContainsKey(msg), $"{msg} already added", "!_hooksMap.ContainsKey(msg)");
_hooksMap[msg] = (HwndSourceHook)delegate(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
TWParam? wParamStruct = CastMsgParam<TWParam>(wParam, allowNativePointers: true);
TLParam? lParamStruct = CastMsgParam<TLParam>(lParam, allowNativePointers: true);
return hook2(hwnd, wParam, wParamStruct, lParam, lParamStruct, ref handled);
};
_syncHooks.Add(_hooksMap[msg]);
return this;
}
public WindowHookBuilder AddAsyncHandler(WindowMessage msg, WindowHookDelegateAsync hook, bool? shouldHandle = null)
{
//IL_001b: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Unknown result type (might be due to invalid IL or missing references)
//IL_004d: Unknown result type (might be due to invalid IL or missing references)
//IL_0057: Expected O, but got Unknown
//IL_0064: Unknown result type (might be due to invalid IL or missing references)
WindowHookDelegateAsync hook2 = hook;
Guard.Assert(!_hooksMap.ContainsKey(msg), $"{msg} already added", "!_hooksMap.ContainsKey(msg)");
_hooksMap[msg] = (HwndSourceHook)delegate(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
Executers.InUiAsync((Action)delegate
{
hook2();
}, (DispatcherPriority?)null, (TimeSpan?)null, (CancellationToken?)null);
if (shouldHandle.HasValue)
{
handled = shouldHandle.Value;
}
return IntPtr.Zero;
};
_asyncHooks.Add(_hooksMap[msg]);
return this;
}
public WindowHookBuilder AddAsyncHandler<TWParam, TLParam>(WindowMessage msg, WindowHookDelegateAsync<TWParam, TLParam> hook, bool? shouldHandle = null) where TWParam : struct where TLParam : struct
{
//IL_001b: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Unknown result type (might be due to invalid IL or missing references)
//IL_004d: Unknown result type (might be due to invalid IL or missing references)
//IL_0057: Expected O, but got Unknown
//IL_0064: Unknown result type (might be due to invalid IL or missing references)
WindowHookDelegateAsync<TWParam, TLParam> hook2 = hook;
Guard.Assert(!_hooksMap.ContainsKey(msg), $"{msg} already added", "!_hooksMap.ContainsKey(msg)");
_hooksMap[msg] = (HwndSourceHook)delegate(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
TWParam? wP = CastMsgParam<TWParam>(wParam, allowNativePointers: false);
TLParam? lP = CastMsgParam<TLParam>(lParam, allowNativePointers: false);
Executers.InUiAsync((Action)delegate
{
hook2(wP, lP);
}, (DispatcherPriority?)null, (TimeSpan?)null, (CancellationToken?)null);
if (shouldHandle.HasValue)
{
handled = shouldHandle.Value;
}
return IntPtr.Zero;
};
_asyncHooks.Add(_hooksMap[msg]);
return this;
}
public HwndSourceHook Build()
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Expected O, but got Unknown
return new HwndSourceHook(new WindowHookProc(_hookId, _hooksMap, _syncHooks, _asyncHooks).WndProc);
}
private static TParam? CastMsgParam<TParam>(IntPtr param, bool allowNativePointers) where TParam : struct
{
object obj;
if (!(typeof(TParam) == typeof(IntPtr)))
{
obj = ((typeof(TParam) == typeof(int)) ? ((object)(int)param.ToInt64()) : ((typeof(TParam) == typeof(long)) ? ((object)param.ToInt64()) : ((typeof(TParam) == typeof(uint)) ? ((object)(uint)param.ToInt64()) : ((!(typeof(TParam) == typeof(ulong))) ? Marshal.PtrToStructure(param, typeof(TParam)) : ((object)(ulong)param.ToInt64())))));
}
else
{
Guard.Assert(allowNativePointers, "IntPtr is not allowed for params cast", "allowNativePointers");
obj = param;
}
return (TParam?)obj;
}
}
public static class WindowHookStorage
{
private static readonly Dictionary<string, Dictionary<string, WindowHookBase>> _hookStorage = new Dictionary<string, Dictionary<string, WindowHookBase>>();
public static IList<WindowHookBase> GetHooks(Window window)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
string defaultWindowId = WindowIdFactory.GetDefaultWindowId(window);
return GetHooks(defaultWindowId);
}
public static IList<WindowHookBase> GetHooks(string windowId)
{
Guard.ArgumentIsNotNullOrEmpty(windowId, (string)null, "windowId");
if (_hookStorage.ContainsKey(windowId))
{
return _hookStorage[windowId].Values.ToList();
}
return new List<WindowHookBase>();
}
public static void AddHook(Window window, HwndSourceHook hook, string windowHookId)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
Guard.ArgumentIsNotNull<HwndSourceHook>(hook, (string)null, "hook");
Guard.ArgumentIsNotNullOrEmpty(windowHookId, (string)null, "windowHookId");
string defaultWindowId = WindowIdFactory.GetDefaultWindowId(window);
WindowHook windowHook = new WindowHook(window, hook, windowHookId, ((object)window).GetType().Name);
AddHook(defaultWindowId, windowHook);
}
public static void AddHook(Window window, WindowHookBase windowHook)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
Guard.ArgumentIsNotNull<WindowHookBase>(windowHook, (string)null, "windowHook");
string defaultWindowId = WindowIdFactory.GetDefaultWindowId(window);
AddHook(defaultWindowId, windowHook);
}
public static void AddHook(string windowId, WindowHookBase windowHook)
{
Guard.ArgumentIsNotNullOrEmpty(windowId, (string)null, "windowId");
Guard.ArgumentIsNotNull<WindowHookBase>(windowHook, (string)null, "windowHook");
if (!_hookStorage.TryGetValue(windowId, out Dictionary<string, WindowHookBase> value))
{
value = new Dictionary<string, WindowHookBase>();
_hookStorage.Add(windowId, value);
}
if (!value.ContainsKey(windowHook.HookId))
{
value[windowHook.HookId] = windowHook;
windowHook.Attach();
}
}
public static void RemoveHook(Window window, string windowHookId)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
Guard.ArgumentIsNotNullOrEmpty(windowHookId, (string)null, "windowHookId");
string defaultWindowId = WindowIdFactory.GetDefaultWindowId(window);
RemoveHook(defaultWindowId, windowHookId);
}
public static void RemoveHook(string windowId, string windowHookId)
{
Guard.ArgumentIsNotNullOrEmpty(windowId, (string)null, "windowId");
Guard.ArgumentIsNotNullOrEmpty(windowHookId, (string)null, "windowHookId");
if (_hookStorage.TryGetValue(windowId, out Dictionary<string, WindowHookBase> value))
{
if (value.TryGetValue(windowHookId, out var value2))
{
value.Remove(windowHookId);
value2.Detach();
}
if (EnumerableExtensions.None<KeyValuePair<string, WindowHookBase>>((IEnumerable<KeyValuePair<string, WindowHookBase>>)value))
{
_hookStorage.Remove(windowId);
}
}
}
}
public static class WindowHooks
{
public static string PositionOrSizeChangedHook { get; } = "PositionOrSizeChangedHook";
public static string DpiDisplayChangedHook { get; } = "DpiDisplayChangedHook";
}
public static class WindowIdFactory
{
public static string GetDefaultWindowId<TWindow>() where TWindow : Window
{
return GetDefaultWindowId(typeof(TWindow));
}
public static string GetDefaultWindowId(Window window)
{
return GetDefaultWindowId(((object)window).GetType());
}
private static string GetDefaultWindowId(Type windowType)
{
return "windowId_" + windowType.Name + "_" + HashProvider.CalculateSha256FromString(windowType.FullName);
}
}
public class WindowLocationProvider : MarkupExtension
{
public Point GetInitialWindowLocation(Window window)
{
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_0081: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
//IL_00e6: Unknown result type (might be due to invalid IL or missing references)
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
WindowScreenMonitoringService instance = WindowScreenMonitoringService.GetInstance(window);
double num = ((FrameworkElement)window).Height * instance.GetWindowScaleY(DpiType.DefaultDpi);
double num2 = ((FrameworkElement)window).Width * instance.GetWindowScaleX(DpiType.DefaultDpi);
double num3 = SystemParameters.FullPrimaryScreenHeight * instance.GetScaleY(DpiType.SystemDpi, DpiType.DefaultDpi);
double num4 = SystemParameters.FullPrimaryScreenWidth * instance.GetScaleX(DpiType.SystemDpi, DpiType.DefaultDpi);
double adaptiveHeight = ((num > num3) ? num3 : num);
double adaptiveWidth = ((num2 > num4) ? num4 : num2);
Rect workArea = SystemParameters.WorkArea;
double workAreaWidth = ((Rect)(ref workArea)).Width * instance.GetScaleY(DpiType.SystemDpi, DpiType.DefaultDpi);
workArea = SystemParameters.WorkArea;
double workAreaHeight = ((Rect)(ref workArea)).Height * instance.GetScaleY(DpiType.SystemDpi, DpiType.DefaultDpi);
Point initialWindowLocation = GetInitialWindowLocation(workAreaWidth, workAreaHeight, adaptiveHeight, adaptiveWidth);
Point result = default(Point);
((Point)(ref result)).X = ((Point)(ref initialWindowLocation)).X / instance.GetWindowScaleX(DpiType.DefaultDpi);
((Point)(ref result)).Y = ((Point)(ref initialWindowLocation)).Y / instance.GetWindowScaleY(DpiType.DefaultDpi);
return result;
}
protected virtual Point GetInitialWindowLocation(double workAreaWidth, double workAreaHeight, double adaptiveHeight, double adaptiveWidth)
{
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
return new Point((workAreaWidth - adaptiveWidth) / 2.0, (workAreaHeight - adaptiveHeight) / 2.0);
}
public override object ProvideValue(IServiceProvider serviceProvider)
{
return this;
}
}
public static class WindowMessageSuppressor
{
public static void ExecuteWithMessageSuppression(Window window, Action action, params WindowMessage[] messages)
{
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
Guard.ArgumentIsNotNull<Action>(action, (string)null, "action");
Guard.ArgumentCollectionIsNotNullOrEmpty<WindowMessage>((ICollection<WindowMessage>)messages, (string)null, "messages");
string text = string.Format("{0}_SuppressionHook_{1}", string.Join("_", messages), Guid.NewGuid());
WindowHookBuilder windowHookBuilder = new WindowHookBuilder(text);
foreach (WindowMessage msg in messages)
{
windowHookBuilder.AddHandler(msg, wndProc);
}
HwndSourceHook hook = windowHookBuilder.Build();
try
{
WindowHookStorage.AddHook(window, hook, text);
action();
}
finally
{
WindowHookStorage.RemoveHook(window, text);
}
static IntPtr wndProc(IntPtr hwnd, IntPtr wParam, IntPtr lParam, ref bool handled)
{
handled = true;
return IntPtr.Zero;
}
}
}
public sealed class WindowModalDialogMonitoringService
{
public static readonly DependencyProperty IsEnabledProperty = DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(WindowModalDialogMonitoringService), new PropertyMetadata((object)false, new PropertyChangedCallback(OnIsEnabledChanged)));
public static readonly DependencyProperty InstanceProperty = DependencyProperty.RegisterAttached("Instance", typeof(WindowModalDialogMonitoringService), typeof(WindowModalDialogMonitoringService), new PropertyMetadata((object)null));
private Window? _window;
private bool _initialized;
private GCHandle _hookDelegateHandle;
private IntPtr _hookHandle;
private IntPtr _dialogHandle;
private static readonly ComponentTracer _tracer = ComponentTracer.Get("WindowModalDialogMonitoringService");
public event Action<IntPtr>? DialogShowing;
private WindowModalDialogMonitoringService(Window window)
{
_window = window;
}
public static bool GetIsEnabled(DependencyObject element)
{
return (bool)element.GetValue(IsEnabledProperty);
}
public static void SetIsEnabled(DependencyObject element, bool value)
{
element.SetValue(IsEnabledProperty, (object)value);
}
private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
Window val = Guard.EnsureArgumentIsInstanceOfType<Window>((object)d, (string)null, "d");
WindowModalDialogMonitoringService windowModalDialogMonitoringService = ((DependencyObject)val).GetValue(InstanceProperty) as WindowModalDialogMonitoringService;
if (windowModalDialogMonitoringService == null)
{
windowModalDialogMonitoringService = new WindowModalDialogMonitoringService(val);
((DependencyObject)val).SetValue(InstanceProperty, (object)windowModalDialogMonitoringService);
}
if ((bool)((DependencyPropertyChangedEventArgs)(ref e)).NewValue)
{
windowModalDialogMonitoringService.Initialize();
}
else
{
windowModalDialogMonitoringService.Deinitialize();
}
}
public static WindowModalDialogMonitoringService GetInstance(Window window)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
return (WindowModalDialogMonitoringService)((DependencyObject)window).GetValue(InstanceProperty);
}
private void Initialize()
{
if (!_initialized && _window != null)
{
AttachHook();
_window.Closed += delegate
{
Deinitialize();
};
_initialized = true;
_tracer.TraceInformation("Service initialized");
}
}
private void Deinitialize()
{
if (_initialized)
{
DetachHook();
_window = null;
_dialogHandle = IntPtr.Zero;
_initialized = false;
_tracer.TraceInformation("Service deinitialized");
}
}
private IntPtr WndProc(int code, IntPtr wParam, IntPtr lParam)
{
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_002f: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
//IL_004c: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Unknown result type (might be due to invalid IL or missing references)
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
//IL_00fd: Unknown result type (might be due to invalid IL or missing references)
if (code == 0 && lParam != IntPtr.Zero)
{
CwpStruct val = (CwpStruct)Marshal.PtrToStructure(lParam, typeof(CwpStruct));
if (val.Message == 272)
{
_tracer.TraceInformation($"Modal dialog with handle 0x{val.Hwnd:X} is initializing");
_dialogHandle = val.Hwnd;
}
else if (_dialogHandle != IntPtr.Zero && val.Hwnd == _dialogHandle && val.Message == 24 && val.WParam != IntPtr.Zero)
{
_tracer.TraceInformation($"Modal dialog with handle 0x{val.Hwnd:X} is showing");
_dialogHandle = IntPtr.Zero;
this.DialogShowing?.Invoke(val.Hwnd);
}
}
return User32Dll.CallNextHookEx(_hookHandle, code, wParam, lParam);
}
private void AttachHook()
{
//IL_001e: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Expected O, but got Unknown
_tracer.TraceInformation("AttachHook");
int currentThreadId = Kernel32Dll.GetCurrentThreadId();
WindowsHookDelegate val = new WindowsHookDelegate(WndProc);
_hookDelegateHandle = GCHandle.Alloc(val);
_hookHandle = User32Dll.SetWindowsHookEx((HookType)4, val, IntPtr.Zero, currentThreadId);
Guard.Assert(_hookHandle != IntPtr.Zero, (string)null, "_hookHandle != IntPtr.Zero");
}
private void DetachHook()
{
_tracer.TraceInformation("DetachHook");
Guard.Assert(_hookHandle != IntPtr.Zero, (string)null, "_hookHandle != IntPtr.Zero");
Guard.Assert(User32Dll.UnhookWindowsHookEx(_hookHandle), (string)null, "User32Dll.UnhookWindowsHookEx(_hookHandle)");
_hookDelegateHandle.Free();
_hookHandle = IntPtr.Zero;
}
}
public enum WindowResizeDirection
{
Left = 1,
Right,
Top,
TopLeft,
TopRight,
Bottom,
BottomLeft,
BottomRight
}
internal static class WindowScaleHelper
{
private const int RoundDigits = 5;
public static void ScaleContentByDpiChange(Window target, double scaleX, double scaleY)
{
ScaleWindowContent(target, scaleX, scaleY, isDpiChange: true);
}
public static void ScaleContentByTextScaleChange(Window target, double scale)
{
ScaleWindowContent(target, scale, scale, isDpiChange: false);
}
public static void ScaleWindowByDpiChange(Window target, double scaleX, double scaleY)
{
ScaleWindowSize(target, scaleX, scaleY, isDpiChange: true);
}
public static void ScaleWindowByTextScaleChange(Window target, double scale)
{
ScaleWindowSize(target, scale, scale, isDpiChange: false);
}
private static void ScaleWindowSize(Window target, double scaleX, double scaleY, bool isDpiChange)
{
double num = ReplacePropertyValue(target, FrameworkElement.MinWidthProperty, 0.0);
double num2 = ReplacePropertyValue(target, FrameworkElement.MaxWidthProperty, double.PositiveInfinity);
double num3 = ReplacePropertyValue(target, FrameworkElement.MinHeightProperty, 0.0);
double num4 = ReplacePropertyValue(target, FrameworkElement.MaxHeightProperty, double.PositiveInfinity);
if (!isDpiChange)
{
ScalePropertyValue(target, FrameworkElement.WidthProperty, scaleX);
ScalePropertyValue(target, FrameworkElement.HeightProperty, scaleY);
}
ReplacePropertyValue(target, FrameworkElement.MinWidthProperty, HasValue(num) ? ScaleValue(num, scaleX) : num);
ReplacePropertyValue(target, FrameworkElement.MaxWidthProperty, HasValue(num2) ? ScaleValue(num2, scaleX) : num2);
ReplacePropertyValue(target, FrameworkElement.MinHeightProperty, HasValue(num3) ? ScaleValue(num3, scaleY) : num3);
ReplacePropertyValue(target, FrameworkElement.MaxHeightProperty, HasValue(num4) ? ScaleValue(num4, scaleY) : num4);
}
private static void ScaleWindowContent(Window target, double scaleX, double scaleY, bool isDpiChange)
{
FrameworkElement val = ((DependencyObject)(object)target).FindVisualChild<FrameworkElement>();
if (val == null)
{
return;
}
if (isDpiChange)
{
val.LayoutTransform = (Transform)(object)CreateScaleTransform(scaleX, scaleY);
return;
}
int childrenCount = VisualTreeHelper.GetChildrenCount((DependencyObject)(object)val);
for (int i = 0; i < childrenCount; i++)
{
DependencyObject child = VisualTreeHelper.GetChild((DependencyObject)(object)val, i);
FrameworkElement val2 = (FrameworkElement)(object)((child is FrameworkElement) ? child : null);
if (val2 != null)
{
val2.LayoutTransform = (Transform)(object)CreateScaleTransform(scaleX, scaleY);
}
}
}
private static void ScalePropertyValue(Window target, DependencyProperty property, double scale)
{
double value = ((DependencyObject)(object)target).GetValue<double>(property);
if (HasValue(value))
{
((DependencyObject)target).SetValue(property, (object)ScaleValue(value, scale));
}
}
private static double ReplacePropertyValue(Window target, DependencyProperty property, double value)
{
double value2 = ((DependencyObject)(object)target).GetValue<double>(property);
((DependencyObject)target).SetValue(property, (object)value);
return value2;
}
private static bool HasValue(double value)
{
return !double.IsInfinity(value) && !double.IsNaN(value);
}
private static double ScaleValue(double value, double scale)
{
return Math.Round(value * scale, 5);
}
private static ScaleTransform CreateScaleTransform(double scaleX, double scaleY)
{
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_001f: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Expected O, but got Unknown
scaleX = Math.Round(scaleX, 5);
scaleY = Math.Round(scaleY, 5);
return (ScaleTransform)((Freezable)new ScaleTransform(scaleX, scaleY)).GetAsFrozen();
}
}
public sealed class WindowScreenMonitoringService
{
public static readonly DependencyProperty IsEnabledProperty = DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(WindowScreenMonitoringService), new PropertyMetadata((object)false, new PropertyChangedCallback(OnIsEnabledChanged)));
public static readonly DependencyProperty InstanceProperty = DependencyProperty.RegisterAttached("Instance", typeof(WindowScreenMonitoringService), typeof(WindowScreenMonitoringService), new PropertyMetadata((object)null));
private readonly string _windowId;
private Window? _window;
private static readonly ComponentTracer _tracer = ComponentTracer.Get("WindowScreenMonitoringService");
public static Rect SystemWorkArea => GetSystemWorkArea();
public static Dpi SystemDpi => GetSystemDpi();
public static Dpi DefaultDpi => Dpi.Default;
public Rect? WorkArea { get; private set; }
public Dpi? WindowDpi { get; private set; }
public Dpi? OriginDpi { get; private set; }
public Size? ScreenResolution { get; private set; }
public Window? TargetWindow { get; private set; }
public bool IsInitialized { get; private set; }
public event DpiChangedDelegate WindowDpiChanged = delegate
{
};
public event ScreenResolutionChangedDelegate ScreenResolutionChanged = delegate
{
};
public event EventHandler Initialized = delegate
{
};
private WindowScreenMonitoringService(Window window)
{
_window = window;
_windowId = WindowIdFactory.GetDefaultWindowId(_window);
}
public static bool GetIsEnabled(DependencyObject element)
{
return (bool)element.GetValue(IsEnabledProperty);
}
public static void SetIsEnabled(DependencyObject element, bool value)
{
element.SetValue(IsEnabledProperty, (object)value);
}
private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
Window val = Guard.EnsureArgumentIsInstanceOfType<Window>((object)d, (string)null, "d");
WindowScreenMonitoringService service = ((DependencyObject)val).GetValue(InstanceProperty) as WindowScreenMonitoringService;
if (service == null)
{
service = new WindowScreenMonitoringService(val);
((DependencyObject)val).SetValue(InstanceProperty, (object)service);
}
if ((bool)((DependencyPropertyChangedEventArgs)(ref e)).NewValue)
{
val.WhenSourceInitialized(delegate
{
service.Initialize();
});
}
else
{
service.Dispose(service, EventArgs.Empty);
}
}
public static WindowScreenMonitoringService GetInstance(Window window)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
return (WindowScreenMonitoringService)((DependencyObject)window).GetValue(InstanceProperty);
}
private void Initialize()
{
//IL_0065: Unknown result type (might be due to invalid IL or missing references)
//IL_0077: Unknown result type (might be due to invalid IL or missing references)
if (!IsInitialized && _window != null)
{
IsInitialized = true;
TargetWindow = _window;
TargetWindow.Closed += Dispose;
Dpi originDpi = (WindowDpi = GetWindowDpi());
OriginDpi = originDpi;
ScreenResolution = GetScreenResolution();
WorkArea = GetWindowWorkArea();
HwndSourceHook hook = new WindowHookBuilder(WindowHooks.DpiDisplayChangedHook).AddHandler<IntPtr, MinMaxInfo>((WindowMessage)36, (WindowHookDelegate<IntPtr, MinMaxInfo>)WndProcOnGetMinMaxInfo).AddHandler<int, NativeRectangle>((WindowMessage)736, (WindowHookDelegate<int, NativeRectangle>)WndProcOnDpiChanged).AddAsyncHandler<uint, int>((WindowMessage)126, WndProcOnDisplayChange)
.Build();
WindowHookStorage.AddHook(_window, hook, WindowHooks.DpiDisplayChangedHook);
this.Initialized(this, EventArgs.Empty);
_tracer.TraceInformation("Service initialized. " + DumpState());
}
}
private void Dispose(object? sender, EventArgs? e)
{
if (IsInitialized)
{
WindowHookStorage.RemoveHook(_windowId, WindowHooks.DpiDisplayChangedHook);
_window = null;
IsInitialized = false;
this.Initialized = delegate
{
};
_tracer.TraceInformation("Service disposed. " + DumpState());
}
}
private IntPtr WndProcOnGetMinMaxInfo(IntPtr hwnd, IntPtr wParam, IntPtr? wStruct, IntPtr lParam, MinMaxInfo? lStruct, ref bool handled)
{
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
//IL_001f: Unknown result type (might be due to invalid IL or missing references)
//IL_007f: Unknown result type (might be due to invalid IL or missing references)
if (IsInitialized && lStruct.HasValue)
{
MinMaxInfo value = lStruct.Value;
if (hwnd.TryGetWindowWorkArea(out var result))
{
value.ptMaxPosition.X = (int)((Rect)(ref result)).X;
value.ptMaxPosition.Y = (int)((Rect)(ref result)).Y;
value.ptMaxSize.X = (int)((Rect)(ref result)).Width;
value.ptMaxSize.Y = (int)((Rect)(ref result)).Height;
}
Marshal.StructureToPtr(value, lParam, fDeleteOld: true);
}
return IntPtr.Zero;
}
private IntPtr WndProcOnDpiChanged(IntPtr hwnd, IntPtr wParam, int? wStruct, IntPtr lParam, NativeRectangle? lStruct, ref bool handled)
{
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
//IL_006b: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_0082: Unknown result type (might be due to invalid IL or missing references)
//IL_008f: Unknown result type (might be due to invalid IL or missing references)
//IL_0097: Unknown result type (might be due to invalid IL or missing references)
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
//IL_00fa: Unknown result type (might be due to invalid IL or missing references)
if (IsInitialized && TryGetDpi(wStruct, out Dpi dpi) && lStruct.HasValue)
{
Dpi dpi2 = Guard.EnsureIsNotNull<Dpi>(WindowDpi, (string)null, "WindowDpi");
NativeRectangle value = lStruct.Value;
Rect val = default(Rect);
((Rect)(ref val)).Width = ((NativeRectangle)(ref value)).Width;
((Rect)(ref val)).Height = ((NativeRectangle)(ref value)).Height;
Point location = default(Point);
((Point)(ref location)).X = value.Left;
((Point)(ref location)).Y = value.Top;
((Rect)(ref val)).Location = location;
Rect positionAdvice = val;
_tracer.TraceInformation($"WM_DPICHANGED appeared with params:\nDPI:{dpi}.\nPositionAdvice: [Location={((Rect)(ref positionAdvice)).Location}; Width={((Rect)(ref positionAdvice)).Width}; Height={((Rect)(ref positionAdvice)).Height}]");
if (!dpi.Equals(dpi2))
{
DpiChangedEventArguments args = new DpiChangedEventArguments(dpi2, dpi, positionAdvice);
WindowDpi = dpi;
this.WindowDpiChanged(this, args);
}
}
handled = true;
return IntPtr.Zero;
}
private void WndProcOnDisplayChange(uint? wParam, int? lParam)
{
//IL_0027: Unknown result type (might be due to invalid IL or missing references)
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_004c: Unknown result type (might be due to invalid IL or missing references)
//IL_0066: Unknown result type (might be due to invalid IL or missing references)
//IL_0078: Unknown result type (might be due to invalid IL or missing references)
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_0089: Unknown result type (might be due to invalid IL or missing references)
//IL_0092: Unknown result type (might be due to invalid IL or missing references)
if (IsInitialized && TryGetResolution(lParam, out var resolution) && wParam.HasValue)
{
Size value = resolution.Value;
Size val = Guard.EnsureIsNotNull<Size>(ScreenResolution, (string)null, "ScreenResolution");
uint? num = wParam;
_tracer.TraceInformation($"WM_DISPLAYCHANGE appeared with params: Resolution:{value}; Image depth: {num}.");
if (!((Size)(ref value)).Equals(val))
{
WorkArea = GetWindowWorkArea();
ScreenResolutionChangedEventArguments args = new ScreenResolutionChangedEventArguments(val, value);
ScreenResolution = value;
this.ScreenResolutionChanged(this, args);
}
}
}
private static bool TryGetResolution(int? param, [NotNullWhen(true)] out Size? resolution)
{
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
short num = default(short);
short num2 = default(short);
if (ParamSplitter.TryGetHiLoWords(param, ref num, ref num2))
{
resolution = new Size((double)num, (double)num2);
return true;
}
resolution = null;
return false;
}
private static bool TryGetDpi(int? param, [NotNullWhen(true)] out Dpi? dpi)
{
short num = default(short);
short num2 = default(short);
if (ParamSplitter.TryGetHiLoWords(param, ref num, ref num2))
{
dpi = new Dpi(num, num2);
return true;
}
dpi = null;
return false;
}
private Dpi GetWindowDpi()
{
Guard.IsNotNull<Window>(_window, (string)null, "_window");
IntPtr handle = _window.GetHandle(ensure: true);
if (handle.TryGetWindowDpi(out Dpi result))
{
return result;
}
_tracer.TraceWarning("Failed to get Dpi for " + _windowId + ". " + $"SystemDpi value used: {SystemDpi}.");
return SystemDpi;
}
private Rect GetWindowWorkArea()
{
//IL_004c: Unknown result type (might be due to invalid IL or missing references)
//IL_0066: Unknown result type (might be due to invalid IL or missing references)
//IL_006b: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Unknown result type (might be due to invalid IL or missing references)
//IL_002f: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
Guard.IsNotNull<Window>(_window, (string)null, "_window");
IntPtr handle = _window.GetHandle(ensure: true);
if (handle.TryGetWindowWorkArea(out var result, normalizeToZero: false))
{
return result;
}
_tracer.TraceWarning("Failed to get work area for " + _windowId + ". " + $"SystemWorkArea value used: {SystemWorkArea}.");
return SystemWorkArea;
}
private Size GetScreenResolution()
{
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
//IL_0026: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
Guard.IsNotNull<Window>(_window, (string)null, "_window");
IntPtr handle = _window.GetHandle(ensure: true);
return handle.GetScreenResolution();
}
private static Dpi GetSystemDpi()
{
SafeDcHandle screenDc = SafeDcHandle.GetScreenDc();
try
{
return new Dpi(screenDc.GetDeviceCapsX(), screenDc.GetDeviceCapsY());
}
finally
{
((IDisposable)screenDc)?.Dispose();
}
}
private static Rect GetSystemWorkArea()
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0013: Unknown result type (might be due to invalid IL or missing references)
//IL_001b: Unknown result type (might be due to invalid IL or missing references)
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
Rect workArea = SystemParameters.WorkArea;
double width = ((Rect)(ref workArea)).Width;
workArea = SystemParameters.WorkArea;
return new Rect(new Size(width, ((Rect)(ref workArea)).Height));
}
private string DumpState()
{
//IL_0050: Unknown result type (might be due to invalid IL or missing references)
return new StringBuilder().AppendLine("Target window: " + _windowId + "; ").AppendLine($"OriginDPI={OriginDpi}; WindowDPI={WindowDpi}; SystemDPI={SystemDpi}").AppendLine($"WorkArea={WorkArea}; SystemWorkArea={SystemWorkArea}; ScreenResolution={ScreenResolution};")
.ToString();
}
}
public static class WindowScreenMonitoringServiceExtensions
{
public static void WhenInitialized(this WindowScreenMonitoringService service, Action action)
{
WindowScreenMonitoringService service2 = service;
EventSubscriber.OnceOrNow<WindowScreenMonitoringService>(service2, (Func<WindowScreenMonitoringService, bool>)((WindowScreenMonitoringService e) => e.IsInitialized), (Action<EventHandler>)delegate(EventHandler eh)
{
service2.Initialized += eh;
}, (Action<EventHandler>)delegate(EventHandler eh)
{
service2.Initialized -= eh;
}, action);
}
public static double GetWindowScaleX(this WindowScreenMonitoringService service, DpiType to)
{
return service.GetScaleX(DpiType.WindowCurrentDpi, to);
}
public static double GetWindowScaleY(this WindowScreenMonitoringService service, DpiType to)
{
return service.GetScaleY(DpiType.WindowCurrentDpi, to);
}
public static double GetScaleX(this WindowScreenMonitoringService service, DpiType from, DpiType to)
{
Guard.ArgumentIsNotNull<WindowScreenMonitoringService>(service, (string)null, "service");
Dpi dpi = SelectDpi(service, to);
Dpi dpi2 = SelectDpi(service, from);
Guard.IsNotNull<Dpi>(dpi, (string)null, "relativeToDpi");
Guard.IsNotNull<Dpi>(dpi2, (string)null, "relativeFromDpi");
return dpi2.ScaleX / dpi.ScaleX;
}
public static double GetScaleY(this WindowScreenMonitoringService service, DpiType from, DpiType to)
{
Guard.ArgumentIsNotNull<WindowScreenMonitoringService>(service, (string)null, "service");
Dpi dpi = SelectDpi(service, to);
Dpi dpi2 = SelectDpi(service, from);
Guard.IsNotNull<Dpi>(dpi, (string)null, "relativeToDpi");
Guard.IsNotNull<Dpi>(dpi2, (string)null, "relativeFromDpi");
return dpi2.ScaleY / dpi.ScaleY;
}
public static WindowSettings GetWindowSettings(this WindowScreenMonitoringService service)
{
return new WindowSettingsProvider(Guard.EnsureArgumentIsNotNull<WindowScreenMonitoringService>(service, (string)null, "service")).GetSettings();
}
public static Rect GetScaledWorkArea(this WindowScreenMonitoringService service)
{
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0031: Unknown result type (might be due to invalid IL or missing references)
//IL_0034: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_007f: Unknown result type (might be due to invalid IL or missing references)
//IL_0083: Unknown result type (might be due to invalid IL or missing references)
Guard.ArgumentIsNotNull<WindowScreenMonitoringService>(service, (string)null, "service");
double scaleX = service.GetScaleX(DpiType.DefaultDpi, DpiType.WindowOriginDpi);
double scaleY = service.GetScaleY(DpiType.DefaultDpi, DpiType.WindowOriginDpi);
Rect val = Guard.EnsureIsNotNull<Rect>(service.WorkArea, (string)null, "service.WorkArea");
Rect result = default(Rect);
((Rect)(ref result)).X = ((Rect)(ref val)).X * scaleX;
((Rect)(ref result)).Y = ((Rect)(ref val)).Y * scaleY;
((Rect)(ref result)).Width = ((Rect)(ref val)).Width * scaleX;
((Rect)(ref result)).Height = ((Rect)(ref val)).Height * scaleY;
return result;
}
private static Dpi? SelectDpi(WindowScreenMonitoringService service, DpiType dpiType)
{
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
if (1 == 0)
{
}
Dpi result = dpiType switch
{
DpiType.DefaultDpi => WindowScreenMonitoringService.DefaultDpi,
DpiType.SystemDpi => WindowScreenMonitoringService.SystemDpi,
DpiType.WindowOriginDpi => service.OriginDpi,
DpiType.WindowCurrentDpi => service.WindowDpi,
_ => throw new UnexpectedValueException((object)dpiType, (string)null, "dpiType"),
};
if (1 == 0)
{
}
return result;
}
}
public sealed class WindowSettings : IEquatable<WindowSettings>
{
public string Id { get; set; } = string.Empty;
public int Height { get; set; } = 0;
public int Width { get; set; } = 0;
public Point? Position { get; set; } = null;
public bool IsMaximized { get; set; } = false;
public Dpi WindowDpi { get; set; } = Dpi.Default;
public override string ToString()
{
return $"[{Id}: Size={Width}x{Height} Pos(LxT)={Position} IsMaximized={IsMaximized} WindowDpi={WindowDpi}]";
}
bool IEquatable<WindowSettings>.Equals(WindowSettings? other)
{
//IL_007c: Unknown result type (might be due to invalid IL or missing references)
//IL_0081: Unknown result type (might be due to invalid IL or missing references)
if (1 == 0)
{
}
bool result;
if (other == null)
{
result = false;
goto IL_00c1;
}
if (Id.Equals(other.Id, StringComparison.InvariantCulture) && Height == other.Height && Width == other.Width)
{
if (!Position.HasValue && !other.Position.HasValue)
{
goto IL_009c;
}
Point? position = Position;
if (position.HasValue)
{
Point valueOrDefault = position.GetValueOrDefault();
if (((object)(Point)(ref valueOrDefault)).Equals((object?)other.Position))
{
goto IL_009c;
}
}
}
goto IL_00bd;
IL_00be:
int num;
result = (byte)num != 0;
goto IL_00c1;
IL_00bd:
num = 0;
goto IL_00be;
IL_009c:
if (IsMaximized != other.IsMaximized)
{
goto IL_00bd;
}
num = (WindowDpi.Equals(other.WindowDpi) ? 1 : 0);
goto IL_00be;
IL_00c1:
if (1 == 0)
{
}
return result;
}
}
public sealed class WindowSettingsPersistentStorage : PersistentStorageBase
{
public const string HeightPropertyName = "height";
public const string WidthPropertyName = "width";
public const string PositionXPropertyName = "positionX";
public const string PositionYPropertyName = "positionY";
public const string IsMaximizedPropertyName = "isMaximized";
public const string DpiXName = "dpiX";
public const string DpiYName = "dpiY";
public const string SettingRoot = "WindowsSettings";
private static readonly ComponentTracer _trace = ComponentTracer.Get("WindowSettingsPersistentStorage");
private readonly Window _window;
private readonly string _windowId;
public WindowSettingsPersistentStorage(IKeyValueStorage keyValueStorage, Window window)
: base(keyValueStorage)
{
Guard.ArgumentIsNotNull<Window>(window, (string)null, "window");
_window = window;
_windowId = WindowIdFactory.GetDefaultWindowId(window);
}
public bool SettingsExists()
{
Dpi dpi;
int parameterValue;
Point point;
return TryGetWindowDpi(_windowId, out dpi) && TryGetParameter<int>(_windowId, "height", out parameterValue) && TryGetParameter<int>(_windowId, "width", out parameterValue) && TryGetPosition(_windowId, out point);
}
public WindowSettings GetSettings(WindowSettings? defaults = null)
{
//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
WindowSettings windowSettings = new WindowSettings
{
Id = _windowId
};
WindowSettings windowSettings2 = defaults ?? WindowScreenMonitoringService.GetInstance(_window).GetWindowSettings();
WindowSettings windowSettings3;
if (TryGetWindowDpi(_windowId, out Dpi dpi))
{
windowSettings3 = windowSettings;
windowSettings3.WindowDpi = dpi;
if (TryGetParameter<int>(_windowId, "height", out var parameterValue) && TryGetParameter<int>(_windowId, "width", out var parameterValue2))
{
windowSettings3.Width = parameterValue2;
windowSettings3.Height = parameterValue;
}
else
{
windowSettings3.Width = windowSettings2.Width;
windowSettings3.Height = windowSettings2.Height;
}
windowSettings3.Position = (TryGetPosition(_windowId, out var point) ? new Point?(point) : windowSettings2.Position);
windowSettings3.IsMaximized = (TryGetParameter<bool>(_windowId, "isMaximized", out var parameterValue3) ? parameterValue3 : windowSettings2.IsMaximized);
}
else
{
windowSettings3 = windowSettings2;
}
_trace.TraceInformation($"Settings provided for {windowSettings3.Id}: {windowSettings3}");
return windowSettings;
}
public void SaveSettings(WindowSettings settings)
{
//IL_00de: Unknown result type (might be due to invalid IL or missing references)
//IL_00e3: Unknown result type (might be due to invalid IL or missing references)
//IL_0107: Unknown result type (might be due to invalid IL or missing references)
//IL_010c: Unknown result type (might be due to invalid IL or missing references)
Guard.ArgumentIsNotNull<WindowSettings>(settings, (string)null, "settings");
Guard.Argument(settings.Id == _windowId, "settings.Id \"" + settings.Id + "\" must be equals \"" + _windowId + "\"", "settings.Id == _windowId");
if (!settings.IsMaximized)
{
TrySetColumnParameter(settings.Id, "height", settings.Height);
TrySetColumnParameter(settings.Id, "width", settings.Width);
}
TrySetColumnParameter(settings.Id, "isMaximized", settings.IsMaximized);
if (settings.Position.HasValue)
{
string id = settings.Id;
Point value = settings.Position.Value;
TrySetColumnParameter(id, "positionX", (int)((Point)(ref value)).X);
string id2 = settings.Id;
value = settings.Position.Value;
TrySetColumnParameter(id2, "positionY", (int)((Point)(ref value)).Y);
}
if (settings.WindowDpi != null)
{
TrySetColumnParameter(settings.Id, "dpiX", settings.WindowDpi.X);
TrySetColumnParameter(settings.Id, "dpiY", settings.WindowDpi.Y);
}
_trace.TraceInformation($"Settings saved for {settings.Id}: {settings}");
}
private bool TryGetPosition(string windowId, out Point point)
{
//IL_0066: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_005a: Unknown result type (might be due to invalid IL or missing references)
if (TryGetParameter<string>(windowId, "positionX", out string parameterValue) && TryGetParameter<string>(windowId, "positionY", out string parameterValue2) && int.TryParse(parameterValue, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out var result) && int.TryParse(parameterValue2, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out var result2))
{
point = new Point((double)result, (double)result2);
return true;
}
point = default(Point);
return false;
}
private bool TrySetPosition(string windowId, Point point)
{
return TrySetColumnParameter(windowId, "positionX", (int)((Point)(ref point)).X) && TrySetColumnParameter(windowId, "positionY", (int)((Point)(ref point)).Y);
}
private bool TryGetWindowDpi(string windowId, [NotNullWhen(true)] out Dpi? dpi)
{
if (TryGetParameter<string>(windowId, "dpiX", out string parameterValue) && TryGetParameter<string>(windowId, "dpiY", out string parameterValue2) && int.TryParse(parameterValue, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out var result) && int.TryParse(parameterValue2, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out var result2))
{
dpi = new Dpi(result, result2);
return true;
}
dpi = null;
return false;
}
private bool TryGetParameter<T>(string windowId, string propertyKey, out T? parameterValue)
{
try
{
object obj = ((PersistentStorageBase)this).Read(GetPropertyKey(windowId, propertyKey));
if (obj != null)
{
parameterValue = (T)Convert.ChangeType(obj, typeof(T));
return true;
}
}
catch (Exception)
{
_trace.TraceError("Can not get value for " + propertyKey);
}
parameterValue = default(T);
return false;
}
private bool TrySetColumnParameter<T>(string windowId, string propertyKey, T data)
{
if (typeof(T).IsClass && object.Equals(data, default(T)))
{
return false;
}
string text = Convert.ToString(data) ?? string.Empty;
if (!((PersistentStorageBase)this).Save(GetPropertyKey(windowId, propertyKey), text))
{
_trace.TraceInformation($"Failed to set column parameter: window {windowId}, param {propertyKey}, data {data}");
return false;
}
return true;
}
private static string GetPropertyKey(string windowId, string propertyKey)
{
return string.Format("\\{0}\\{1}\\{2}", "WindowsSettings", windowId, propertyKey);
}
}
public sealed class WindowSettingsProvider
{
private readonly WindowScreenMonitoringService _wsmService;
public WindowSettingsProvider(WindowScreenMonitoringService wsmService)
{
_wsmService = Guard.EnsureArgumentIsNotNull<WindowScreenMonitoringService>(wsmService, (string)null, "wsmService");
}
public WindowSettings GetSettings()
{
//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
//IL_00bc: Invalid comparison between Unknown and I4
//IL_004f: Unknown result type (might be due to invalid IL or missing references)
//IL_008f: Unknown result type (might be due to invalid IL or missing references)
Window targetWindow = _wsmService.TargetWindow;
Dpi windowDpi = _wsmService.WindowDpi;
Guard.IsNotNull<Window>(targetWindow, (string)null, "window");
Guard.IsNotNull<Dpi>(windowDpi, (string)null, "windowDpi");
Point? obj;
if (!double.IsNaN(targetWindow.Left) && !double.IsNaN(targetWindow.Top))
{
Point value = default(Point);
((Point)(ref value)).X = (int)(targetWindow.Left / _wsmService.GetWindowScaleX(DpiType.WindowOriginDpi));
((Point)(ref value)).Y = (int)(targetWindow.Top / _wsmService.GetWindowScaleY(DpiType.WindowOriginDpi));
obj = value;
}
else
{
obj = null;
}
Point? position = obj;
return new WindowSettings
{
Id = WindowIdFactory.GetDefaultWindowId(targetWindow),
IsMaximized = ((int)targetWindow.WindowState == 2),
WindowDpi = windowDpi,
Height = (int)((FrameworkElement)targetWindow).ActualHeight,
Width = (int)((FrameworkElement)targetWindow).ActualWidth,
Position = position
};
}
}
internal sealed class CssStylesheet
{
private sealed class StyleDefinition
{
public readonly string Definition;
public readonly string Selector;
public StyleDefinition(string selector, string definition)
{
Selector = selector;
Definition = definition;
}
}
private List<StyleDefinition> _styleDefinitions;
public CssStylesheet(XmlElement htmlElement, string basePath)
{
if (htmlElement != null)
{
DiscoverStyleDefinitions(htmlElement, basePath);
}
}
public void DiscoverStyleDefinitions(XmlElement htmlElement, string basePath)
{
//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
//IL_00f0: Expected O, but got Unknown
StringBuilder stringBuilder = new StringBuilder();
if (((XmlNode)htmlElement).LocalName.ToLowerInvariant() == "link")
{
if (HtmlToXamlConverter.GetAttribute(htmlElement, "rel") != "stylesheet")
{
return;
}
string text = HtmlToXamlConverter.GetAttribute(htmlElement, "href")?.Trim();
if (text != null)
{
string fullPath = HtmlToXamlConverter.GetFullPath(text, basePath);
if (File.Exists(fullPath))
{
stringBuilder.Append(RemoveComments(File.ReadAllText(fullPath)));
DiscoverStyleDefinitions(stringBuilder);
}
}
return;
}
if (((XmlNode)htmlElement).LocalName.ToLowerInvariant() != "style")
{
for (XmlNode val = ((XmlNode)htmlElement).FirstChild; val != null; val = val.NextSibling)
{
if (val is XmlElement)
{
DiscoverStyleDefinitions((XmlElement)val, basePath);
}
}
return;
}
for (XmlNode val2 = ((XmlNode)htmlElement).FirstChild; val2 != null; val2 = val2.NextSibling)
{
if (val2 is XmlText || val2 is XmlComment)
{
stringBuilder.Append(RemoveComments(val2.Value));
}
}
DiscoverStyleDefinitions(stringBuilder);
}
private void DiscoverStyleDefinitions(StringBuilder stylesheetBuffer)
{
int i = 0;
while (i < stylesheetBuffer.Length)
{
int num = i;
for (; i < stylesheetBuffer.Length && stylesheetBuffer[i] != '{'; i++)
{
if (stylesheetBuffer[i] == '@')
{
for (; i < stylesheetBuffer.Length && stylesheetBuffer[i] != ';'; i++)
{
}
num = i + 1;
}
}
if (i < stylesheetBuffer.Length)
{
int num2 = i;
for (; i < stylesheetBuffer.Length && stylesheetBuffer[i] != '}'; i++)
{
}
if (i - num2 > 2)
{
AddStyleDefinition(stylesheetBuffer.ToString(num, num2 - num), stylesheetBuffer.ToString(num2 + 1, i - num2 - 2));
}
if (i < stylesheetBuffer.Length)
{
Guard.Assert(stylesheetBuffer[i] == '}', (string)null, "stylesheetBuffer[nextCharacterIndex] == '}'");
i++;
}
}
}
}
private string RemoveComments(string text)
{
int num = text.IndexOf("/*", StringComparison.Ordinal);
if (num < 0)
{
return text;
}
int num2 = text.IndexOf("*/", num + 2, StringComparison.Ordinal);
if (num2 < 0)
{
return text.Substring(0, num);
}
return text.Substring(0, num) + " " + RemoveComments(text.Substring(num2 + 2));
}
public void AddStyleDefinition(string selector, string definition)
{
selector = selector.Trim().ToLowerInvariant();
definition = definition.Trim().ToLowerInvariant();
if (selector.Length == 0 || definition.Length == 0)
{
return;
}
if (_styleDefinitions == null)
{
_styleDefinitions = new List<StyleDefinition>();
}
string[] array = selector.Split(new char[1] { ',' });
string[] array2 = array;
foreach (string text in array2)
{
string text2 = text.Trim();
if (text2.Length > 0)
{
_styleDefinitions.Add(new StyleDefinition(text2, definition));
}
}
}
public string GetStyle(string elementName, List<XmlElement> sourceContext)
{
Guard.Assert(sourceContext.Count > 0, (string)null, "sourceContext.Count > 0");
XmlElement val = sourceContext[sourceContext.Count - 1];
Guard.Assert(elementName == ((XmlNode)val).LocalName, (string)null, "elementName == xmlElement.LocalName");
string text = null;
if (_styleDefinitions != null)
{
IOrderedEnumerable<StyleDefinition> orderedEnumerable = from s in _styleDefinitions
orderby Enumerable.Contains(s.Selector, '.'), Enumerable.Contains(s.Selector, '#')
select s;
foreach (StyleDefinition item in orderedEnumerable)
{
string selector = item.Selector;
string[] array = selector.Split(new char[1] { ' ' });
int num = array.Length - 1;
int num2 = sourceContext.Count - 1;
string selectorLevel = array[num].Trim();
string attribute = HtmlToXamlConverter.GetAttribute(val, "id");
string[] array2 = HtmlToXamlConverter.GetAttribute(val, "class")?.Split() ?? new string[1];
string[] array3 = array2;
foreach (string elementClass in array3)
{
if (MatchSelectorLevel(selectorLevel, elementName, attribute, elementClass))
{
text += item.Definition;
}
}
}
}
return text;
}
private bool MatchSelectorLevel(string selectorLevel, string elementName, string elementId, string elementClass)
{
if (selectorLevel.Length == 0)
{
return false;
}
int num = selectorLevel.IndexOf('.');
int num2 = selectorLevel.IndexOf('#');
string text = null;
string text2 = null;
string text3 = null;
if (num >= 0)
{
if (num > 0)
{
text3 = selectorLevel.Substring(0, num);
}
text = selectorLevel.Substring(num + 1);
}
else if (num2 >= 0)
{
if (num2 > 0)
{
text3 = selectorLevel.Substring(0, num2);
}
text2 = selectorLevel.Substring(num2 + 1);
}
else
{
text3 = selectorLevel;
}
if (text3 != null && text3 != elementName)
{
return false;
}
if (text2 != null && elementId != text2)
{
return false;
}
if (text != null && elementClass != text)
{
return false;
}
return true;
}
}
internal static class HtmlCssParser
{
private static readonly string[] Colors = new string[140]
{
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue",
"blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson",
"cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange",
"darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkturquoise", "darkviolet", "deeppink", "deepskyblue",
"dimgray", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod",
"gray", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgreen", "lightgrey", "lightpink",
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred",
"midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange",
"orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink",
"plum", "powderblue", "purple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen",
"seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"
};
private static readonly string[] SystemColors = new string[28]
{
"activeborder", "activecaption", "appworkspace", "background", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "captiontext", "graytext",
"highlight", "highlighttext", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infobackground", "infotext", "menu", "menutext", "scrollbar",
"threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "window", "windowframe", "windowtext"
};
private static readonly string[] FontGenericFamilies = new string[5] { "serif", "sans-serif", "monospace", "cursive", "fantasy" };
private static readonly string[] FontStyles = new string[3] { "normal", "italic", "oblique" };
private static readonly string[] FontVariants = new string[2] { "normal", "small-caps" };
private static readonly string[] FontWeights = new string[13]
{
"normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600",
"700", "800", "900"
};
private static readonly string[] FontAbsoluteSizes = new string[7] { "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large" };
private static readonly string[] FontRelativeSizes = new string[2] { "larger", "smaller" };
private static readonly string[] FontSizeUnits = new string[9] { "px", "mm", "cm", "in", "pt", "pc", "em", "ex", "%" };
private static readonly string[] ListStyleTypes = new string[9] { "disc", "circle", "square", "decimal", "lower-roman", "upper-roman", "lower-alpha", "upper-alpha", "none" };
private static readonly string[] ListStylePositions = new string[2] { "inside", "outside" };
private static readonly string[] ListStyleImage = new string[2] { "none", "inherit" };
private static readonly string[] TextDecorations = new string[5] { "none", "underline", "overline", "line-through", "blink" };
private static readonly string[] TextTransforms = new string[4] { "none", "capitalize", "uppercase", "lowercase" };
private static readonly string[] TextAligns = new string[4] { "left", "right", "center", "justify" };
private static readonly string[] VerticalAligns = new string[8] { "baseline", "sub", "super", "top", "text-top", "middle", "bottom", "text-bottom" };
private static readonly string[] Floats = new string[3] { "left", "right", "none" };
private static readonly string[] Clears = new string[4] { "none", "left", "right", "both" };
private static readonly string[] BorderStyles = new string[9] { "none", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset" };
private static readonly string[] ObjectFits = new string[5] { "none", "contain", "cover", "fill", "scale-down" };
internal static void GetElementPropertiesFromCssAttributes(XmlElement htmlElement, string elementName, CssStylesheet stylesheet, Hashtable localProperties, List<XmlElement> sourceContext)
{
string style = stylesheet.GetStyle(elementName, sourceContext);
string attribute = HtmlToXamlConverter.GetAttribute(htmlElement, "style");
string text = style ?? null;
if (attribute != null)
{
text = ((text == null) ? attribute : (text + ";" + attribute));
}
if (text == null)
{
return;
}
string[] array = text.Split(new char[1] { ';' });
string[] array2 = array;
foreach (string text2 in array2)
{
string[] array3 = text2.Split(new char[1] { ':' });
if (array3.Length == 2)
{
string text3 = array3[0].Trim().ToLowerInvariant();
string styleValue = HtmlToXamlConverter.UnQuote(array3[1]).Trim().ToLowerInvariant();
int nextIndex = 0;
switch (text3)
{
case "font":
ParseCssFont(styleValue, localProperties);
break;
case "font-family":
ParseCssFontFamily(styleValue, ref nextIndex, localProperties);
break;
case "font-size":
ParseCssSize(styleValue, ref nextIndex, localProperties, "font-size", mustBeNonNegative: true);
break;
case "font-style":
ParseCssFontStyle(styleValue, ref nextIndex, localProperties);
break;
case "font-weight":
ParseCssFontWeight(styleValue, ref nextIndex, localProperties);
break;
case "font-variant":
ParseCssFontVariant(styleValue, ref nextIndex, localProperties);
break;
case "line-height":
ParseCssSize(styleValue, ref nextIndex, localProperties, "line-height", mustBeNonNegative: true);
break;
case "color":
ParseCssColor(styleValue, ref nextIndex, localProperties, "color");
break;
case "text-decoration":
ParseCssTextDecoration(styleValue, ref nextIndex, localProperties);
break;
case "text-transform":
ParseCssTextTransform(styleValue, ref nextIndex, localProperties);
break;
case "background-color":
ParseCssColor(styleValue, ref nextIndex, localProperties, "background-color");
break;
case "background":
ParseCssBackground(styleValue, ref nextIndex, localProperties);
break;
case "text-align":
ParseCssTextAlign(styleValue, ref nextIndex, localProperties);
break;
case "vertical-align":
ParseCssVerticalAlign(styleValue, ref nextIndex, localProperties);
break;
case "text-indent":
ParseCssSize(styleValue, ref nextIndex, localProperties, "text-indent", mustBeNonNegative: false);
break;
case "width":
case "height":
ParseCssSize(styleValue, ref nextIndex, localProperties, text3, mustBeNonNegative: true);
break;
case "margin":
ParseCssRectangleProperty(styleValue, ref nextIndex, localProperties, text3);
break;
case "margin-top":
case "margin-right":
case "margin-bottom":
case "margin-left":
ParseCssSize(styleValue, ref nextIndex, localProperties, text3, mustBeNonNegative: true);
break;
case "padding":
ParseCssRectangleProperty(styleValue, ref nextIndex, localProperties, text3);
break;
case "padding-top":
case "padding-right":
case "padding-bottom":
case "padding-left":
ParseCssSize(styleValue, ref nextIndex, localProperties, text3, mustBeNonNegative: true);
break;
case "border":
ParseCssBorder(styleValue, ref nextIndex, localProperties);
break;
case "border-style":
case "border-width":
case "border-color":
ParseCssRectangleProperty(styleValue, ref nextIndex, localProperties, text3);
break;
case "float":
ParseCssFloat(styleValue, ref nextIndex, localProperties);
break;
case "clear":
ParseCssClear(styleValue, ref nextIndex, localProperties);
break;
case "object-fit":
ParseObjectFit(styleValue, ref nextIndex, localProperties);
break;
}
}
}
}
private static void ParseWhiteSpace(string styleValue, ref int nextIndex)
{
while (nextIndex < styleValue.Length && char.IsWhiteSpace(styleValue[nextIndex]))
{
nextIndex++;
}
}
private static bool ParseWord(string word, string styleValue, ref int nextIndex)
{
ParseWhiteSpace(styleValue, ref nextIndex);
for (int i = 0; i < word.Length; i++)
{
if (nextIndex + i >= styleValue.Length || word[i] != styleValue[nextIndex + i])
{
return false;
}
}
if (nextIndex + word.Length < styleValue.Length && char.IsLetterOrDigit(styleValue[nextIndex + word.Length]))
{
return false;
}
nextIndex += word.Length;
return true;
}
private static string ParseWordEnumeration(string[] words, string styleValue, ref int nextIndex)
{
foreach (string text in words)
{
if (ParseWord(text, styleValue, ref nextIndex))
{
return text;
}
}
return null;
}
private static void ParseWordEnumeration(string[] words, string styleValue, ref int nextIndex, Hashtable localProperties, string attributeName)
{
string text = ParseWordEnumeration(words, styleValue, ref nextIndex);
if (text != null)
{
localProperties[attributeName] = text;
}
}
private static string ParseCssSize(string styleValue, ref int nextIndex, bool mustBeNonNegative)
{
ParseWhiteSpace(styleValue, ref nextIndex);
string result = ParseWordEnumeration(FontAbsoluteSizes, styleValue, ref nextIndex);
if (nextIndex == styleValue.Length)
{
return result;
}
string result2 = ParseWordEnumeration(FontRelativeSizes, styleValue, ref nextIndex);
if (nextIndex == styleValue.Length)
{
return result2;
}
int num = nextIndex;
if (nextIndex < styleValue.Length && styleValue[nextIndex] == '-')
{
nextIndex++;
}
if (nextIndex < styleValue.Length && char.IsDigit(styleValue[nextIndex]))
{
while (nextIndex < styleValue.Length && (char.IsDigit(styleValue[nextIndex]) || styleValue[nextIndex] == '.'))
{
nextIndex++;
}
string text = styleValue.Substring(num, nextIndex - num);
string text2 = ParseWordEnumeration(FontSizeUnits, styleValue, ref nextIndex) ?? "px";
if (mustBeNonNegative && styleValue[num] == '-')
{
return "0";
}
if (text2 == "pt")
{
text = ConvertFromPointsToPixels(text).ToString(CultureInfo.InvariantCulture);
text2 = "px";
}
return text + text2;
}
return null;
}
private static void ParseCssSize(string styleValue, ref int nextIndex, Hashtable localValues, string propertyName, bool mustBeNonNegative)
{
string text = ParseCssSize(styleValue, ref nextIndex, mustBeNonNegative);
if (text != null)
{
localValues[propertyName] = text;
}
}
private static double ConvertFromPointsToPixels(string stringValue)
{
if (double.TryParse(stringValue, out var result))
{
return ConvertFromPointsToPixels(result);
}
return double.NaN;
}
private static double ConvertFromPointsToPixels(double value)
{
return value * 96.0 / 72.0;
}
private static string ParseCssColor(string styleValue, ref int nextIndex)
{
//IL_0153: Unknown result type (might be due to invalid IL or missing references)
//IL_0166: Unknown result type (might be due to invalid IL or missing references)
//IL_0168: Unknown result type (might be due to invalid IL or missing references)
ParseWhiteSpace(styleValue, ref nextIndex);
string text = null;
if (nextIndex < styleValue.Length)
{
int num = nextIndex;
char c = styleValue[nextIndex];
if (c == '#')
{
nextIndex++;
while (nextIndex < styleValue.Length)
{
c = char.ToUpper(styleValue[nextIndex]);
if (('0' > c || c > '9') && ('A' > c || c > 'F'))
{
break;
}
nextIndex++;
}
if (nextIndex > num + 1)
{
text = styleValue.Substring(num, nextIndex - num);
}
}
else if (styleValue.Substring(nextIndex, 3).ToLowerInvariant() == "rgb")
{
while (nextIndex < styleValue.Length && styleValue[nextIndex] != '(')
{
nextIndex++;
}
nextIndex++;
string text2 = new string(styleValue.Skip(nextIndex).TakeWhile((char x) => x != ')').ToArray());
if (text2.Length > 0)
{
Color val = default(Color);
((Color)(ref val)).ScA = 1f;
Color colorStruct = val;
string[] array = text2.Split(new char[1] { ',' });
if (array.Length >= 3)
{
SetColorChannel(array[0].Trim(), delegate(byte value)
{
((Color)(ref colorStruct)).R = value;
}, delegate(float value)
{
((Color)(ref colorStruct)).ScR = value;
});
SetColorChannel(array[1].Trim(), delegate(byte value)
{
((Color)(ref colorStruct)).G = value;
}, delegate(float value)
{
((Color)(ref colorStruct)).ScG = value;
});
SetColorChannel(array[2].Trim(), delegate(byte value)
{
((Color)(ref colorStruct)).B = value;
}, delegate(float value)
{
((Color)(ref colorStruct)).ScB = value;
});
}
if (array.Length == 4)
{
SetColorChannel(array[3].Trim(), delegate(byte value)
{
((Color)(ref colorStruct)).A = value;
}, delegate(float value)
{
((Color)(ref colorStruct)).ScA = value;
});
}
text = ((object)(Color)(ref colorStruct)).ToString();
nextIndex += text2.Length;
}
if (nextIndex < styleValue.Length)
{
nextIndex++;
}
}
else if (char.IsLetter(c))
{
text = ParseWordEnumeration(Colors, styleValue, ref nextIndex);
if (text == null)
{
text = ParseWordEnumeration(SystemColors, styleValue, ref nextIndex);
if (text != null)
{
text = "black";
}
}
}
}
return text;
static void SetColorChannel(string value, Action<byte> setColorProperty, Action<float> setColorScProperty)
{
if (value.EndsWith("%"))
{
setColorScProperty(float.Parse(value.Trim(new char[1] { '%' }), CultureInfo.InvariantCulture) / 100f);
}
else
{
setColorProperty(byte.Parse(value));
}
}
}
private static void ParseCssColor(string styleValue, ref int nextIndex, Hashtable localValues, string propertyName)
{
string text = ParseCssColor(styleValue, ref nextIndex);
if (text != null)
{
localValues[propertyName] = text;
}
}
private static void ParseCssFont(string styleValue, Hashtable localProperties)
{
int nextIndex = 0;
ParseCssFontStyle(styleValue, ref nextIndex, localProperties);
ParseCssFontVariant(styleValue, ref nextIndex, localProperties);
ParseCssFontWeight(styleValue, ref nextIndex, localProperties);
ParseCssSize(styleValue, ref nextIndex, localProperties, "font-size", mustBeNonNegative: true);
ParseWhiteSpace(styleValue, ref nextIndex);
if (nextIndex < styleValue.Length && styleValue[nextIndex] == '/')
{
nextIndex++;
ParseCssSize(styleValue, ref nextIndex, localProperties, "line-height", mustBeNonNegative: true);
}
ParseCssFontFamily(styleValue, ref nextIndex, localProperties);
}
private static void ParseCssFontStyle(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(FontStyles, styleValue, ref nextIndex, localProperties, "font-style");
}
private static void ParseCssFontVariant(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(FontVariants, styleValue, ref nextIndex, localProperties, "font-variant");
}
private static void ParseCssFontWeight(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(FontWeights, styleValue, ref nextIndex, localProperties, "font-weight");
}
private static void ParseCssFontFamily(string styleValue, ref int nextIndex, Hashtable localProperties)
{
string text = null;
while (nextIndex < styleValue.Length)
{
string text2 = ParseWordEnumeration(FontGenericFamilies, styleValue, ref nextIndex);
if (text2 == null)
{
if (nextIndex < styleValue.Length && (styleValue[nextIndex] == '"' || styleValue[nextIndex] == '\''))
{
char c = styleValue[nextIndex];
nextIndex++;
int num = nextIndex;
while (nextIndex < styleValue.Length && styleValue[nextIndex] != c)
{
nextIndex++;
}
text2 = "\"" + styleValue.Substring(num, nextIndex - num) + "\"";
}
if (text2 == null)
{
int num2 = nextIndex;
while (nextIndex < styleValue.Length && styleValue[nextIndex] != ',' && styleValue[nextIndex] != ';')
{
nextIndex++;
}
if (nextIndex > num2)
{
text2 = styleValue.Substring(num2, nextIndex - num2).Trim();
if (text2.Length == 0)
{
text2 = null;
}
}
}
}
ParseWhiteSpace(styleValue, ref nextIndex);
if (nextIndex < styleValue.Length && styleValue[nextIndex] == ',')
{
nextIndex++;
}
if (text2 != null)
{
if (text == null && text2.Length > 0)
{
text2 = HtmlToXamlConverter.UnQuote(text2);
text = text2;
}
continue;
}
break;
}
if (text != null)
{
localProperties["font-family"] = text;
}
}
private static void ParseCssListStyle(string styleValue, Hashtable localProperties)
{
int nextIndex = 0;
while (nextIndex < styleValue.Length)
{
string text = ParseCssListStyleType(styleValue, ref nextIndex);
if (text != null)
{
localProperties["list-style-type"] = text;
continue;
}
string text2 = ParseCssListStylePosition(styleValue, ref nextIndex);
if (text2 != null)
{
localProperties["list-style-position"] = text2;
continue;
}
string text3 = ParseCssListStyleImage(styleValue, ref nextIndex);
if (text3 != null)
{
localProperties["list-style-image"] = text3;
continue;
}
break;
}
}
private static string ParseCssListStyleType(string styleValue, ref int nextIndex)
{
return ParseWordEnumeration(ListStyleTypes, styleValue, ref nextIndex);
}
private static string ParseCssListStylePosition(string styleValue, ref int nextIndex)
{
return ParseWordEnumeration(ListStylePositions, styleValue, ref nextIndex);
}
private static string ParseCssListStyleImage(string styleValue, ref int nextIndex)
{
return ParseWordEnumeration(ListStyleImage, styleValue, ref nextIndex);
}
private static void ParseCssTextDecoration(string styleValue, ref int nextIndex, Hashtable localProperties)
{
for (int i = 1; i < TextDecorations.Length; i++)
{
localProperties["text-decoration-" + TextDecorations[i]] = "false";
}
while (nextIndex < styleValue.Length)
{
string text = ParseWordEnumeration(TextDecorations, styleValue, ref nextIndex);
if (text == null || text == "none")
{
break;
}
localProperties["text-decoration-" + text] = "true";
}
}
private static void ParseCssTextTransform(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(TextTransforms, styleValue, ref nextIndex, localProperties, "text-transform");
}
private static void ParseCssTextAlign(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(TextAligns, styleValue, ref nextIndex, localProperties, "text-align");
}
private static void ParseCssVerticalAlign(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(VerticalAligns, styleValue, ref nextIndex, localProperties, "vertical-align");
}
private static void ParseCssFloat(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(Floats, styleValue, ref nextIndex, localProperties, "float");
}
private static void ParseCssClear(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(Clears, styleValue, ref nextIndex, localProperties, "clear");
}
private static void ParseObjectFit(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseWordEnumeration(ObjectFits, styleValue, ref nextIndex, localProperties, "object-fit");
}
private static bool ParseCssRectangleProperty(string styleValue, ref int nextIndex, Hashtable localProperties, string propertyName)
{
int num;
switch (propertyName)
{
default:
num = ((propertyName == "border-color") ? 1 : 0);
break;
case "margin":
case "padding":
case "border-width":
case "border-style":
num = 1;
break;
}
Guard.Assert((byte)num != 0, (string)null, "propertyName == \"margin\" || propertyName == \"padding\" || propertyName == \"border-width\" ||\n propertyName == \"border-style\" || propertyName == \"border-color\"");
string text = ((propertyName == "border-color") ? ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? ParseCssBorderStyle(styleValue, ref nextIndex) : ParseCssSize(styleValue, ref nextIndex, mustBeNonNegative: true)));
if (text != null)
{
localProperties[propertyName + "-top"] = text;
localProperties[propertyName + "-bottom"] = text;
localProperties[propertyName + "-right"] = text;
localProperties[propertyName + "-left"] = text;
text = ((propertyName == "border-color") ? ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? ParseCssBorderStyle(styleValue, ref nextIndex) : ParseCssSize(styleValue, ref nextIndex, mustBeNonNegative: true)));
if (text != null)
{
localProperties[propertyName + "-right"] = text;
localProperties[propertyName + "-left"] = text;
text = ((propertyName == "border-color") ? ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? ParseCssBorderStyle(styleValue, ref nextIndex) : ParseCssSize(styleValue, ref nextIndex, mustBeNonNegative: true)));
if (text != null)
{
localProperties[propertyName + "-bottom"] = text;
text = ((propertyName == "border-color") ? ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? ParseCssBorderStyle(styleValue, ref nextIndex) : ParseCssSize(styleValue, ref nextIndex, mustBeNonNegative: true)));
if (text != null)
{
localProperties[propertyName + "-left"] = text;
}
}
}
return true;
}
return false;
}
private static void ParseCssBorder(string styleValue, ref int nextIndex, Hashtable localProperties)
{
while (ParseCssRectangleProperty(styleValue, ref nextIndex, localProperties, "border-width") || ParseCssRectangleProperty(styleValue, ref nextIndex, localProperties, "border-style") || ParseCssRectangleProperty(styleValue, ref nextIndex, localProperties, "border-color"))
{
}
}
private static string ParseCssBorderStyle(string styleValue, ref int nextIndex)
{
return ParseWordEnumeration(BorderStyles, styleValue, ref nextIndex);
}
private static void ParseCssBackground(string styleValue, ref int nextIndex, Hashtable localProperties)
{
ParseCssColor(styleValue, ref nextIndex, localProperties, "background-color");
}
}
internal sealed class HtmlLexicalAnalyzer
{
private readonly StringReader _inputStringReader;
private int _nextCharacterCode;
private int _lookAheadCharacterCode;
private char _lookAheadCharacter;
private char _previousCharacter;
private bool _ignoreNextWhitespace;
private readonly StringBuilder _nextToken;
internal HtmlTokenType NextTokenType { get; private set; }
internal string NextToken => _nextToken.ToString();
private char NextCharacter { get; set; }
private bool IsAtEndOfStream => _nextCharacterCode == -1;
private bool IsAtTagStart => NextCharacter == '<' && (_lookAheadCharacter == '/' || IsGoodForNameStart(_lookAheadCharacter)) && !IsNextCharacterEntity;
private bool IsAtTagEnd => (NextCharacter == '>' || (NextCharacter == '/' && _lookAheadCharacter == '>')) && !IsNextCharacterEntity;
private bool IsAtDirectiveStart => NextCharacter == '<' && _lookAheadCharacter == '!' && !IsNextCharacterEntity;
private bool IsNextCharacterEntity { get; set; }
internal HtmlLexicalAnalyzer(string inputTextString)
{
_inputStringReader = new StringReader(inputTextString);
_nextCharacterCode = 0;
NextCharacter = ' ';
_lookAheadCharacterCode = _inputStringReader.Read();
_lookAheadCharacter = (char)_lookAheadCharacterCode;
_previousCharacter = ' ';
_ignoreNextWhitespace = true;
_nextToken = new StringBuilder(100);
NextTokenType = HtmlTokenType.Text;
GetNextCharacter();
}
internal void GetNextContentToken()
{
Guard.Assert(NextTokenType != HtmlTokenType.Eof, (string)null, "NextTokenType != HtmlTokenType.Eof");
_nextToken.Length = 0;
if (IsAtEndOfStream)
{
NextTokenType = HtmlTokenType.Eof;
return;
}
if (IsAtTagStart)
{
GetNextCharacter();
if (NextCharacter == '/')
{
_nextToken.Append("</");
NextTokenType = HtmlTokenType.ClosingTagStart;
GetNextCharacter();
_ignoreNextWhitespace = false;
}
else
{
NextTokenType = HtmlTokenType.OpeningTagStart;
_nextToken.Append("<");
_ignoreNextWhitespace = true;
}
return;
}
if (IsAtDirectiveStart)
{
GetNextCharacter();
if (_lookAheadCharacter == '[')
{
ReadDynamicContent();
}
else if (_lookAheadCharacter == '-')
{
ReadComment();
}
else
{
ReadUnknownDirective();
}
return;
}
NextTokenType = HtmlTokenType.Text;
while (!IsAtTagStart && !IsAtEndOfStream && !IsAtDirectiveStart)
{
if (NextCharacter == '<' && !IsNextCharacterEntity && _lookAheadCharacter == '?')
{
SkipProcessingDirective();
continue;
}
if (NextCharacter <= ' ')
{
if (!_ignoreNextWhitespace)
{
_nextToken.Append(' ');
}
_ignoreNextWhitespace = true;
}
else
{
_nextToken.Append(NextCharacter);
_ignoreNextWhitespace = false;
}
GetNextCharacter();
}
}
internal void GetNextTagToken()
{
_nextToken.Length = 0;
if (IsAtEndOfStream)
{
NextTokenType = HtmlTokenType.Eof;
return;
}
SkipWhiteSpace();
if (NextCharacter == '>' && !IsNextCharacterEntity)
{
NextTokenType = HtmlTokenType.TagEnd;
_nextToken.Append('>');
GetNextCharacter();
}
else if (NextCharacter == '/' && _lookAheadCharacter == '>')
{
NextTokenType = HtmlTokenType.EmptyTagEnd;
_nextToken.Append("/>");
GetNextCharacter();
GetNextCharacter();
_ignoreNextWhitespace = false;
}
else if (IsGoodForNameStart(NextCharacter))
{
NextTokenType = HtmlTokenType.Name;
while (IsGoodForName(NextCharacter) && !IsAtEndOfStream)
{
_nextToken.Append(NextCharacter);
GetNextCharacter();
}
}
else
{
NextTokenType = HtmlTokenType.Atom;
_nextToken.Append(NextCharacter);
GetNextCharacter();
}
}
internal void GetNextEqualSignToken()
{
Guard.Assert(NextTokenType != HtmlTokenType.Eof, (string)null, "NextTokenType != HtmlTokenType.Eof");
_nextToken.Length = 0;
_nextToken.Append('=');
NextTokenType = HtmlTokenType.EqualSign;
SkipWhiteSpace();
if (NextCharacter == '=')
{
GetNextCharacter();
}
}
internal void GetNextAtomToken(string attributeName)
{
Guard.Assert(NextTokenType != HtmlTokenType.Eof, (string)null, "NextTokenType != HtmlTokenType.Eof");
_nextToken.Length = 0;
SkipWhiteSpace();
NextTokenType = HtmlTokenType.Atom;
if ((NextCharacter == '\'' || NextCharacter == '"') && !IsNextCharacterEntity)
{
char nextCharacter = NextCharacter;
GetNextCharacter();
while ((NextCharacter != nextCharacter || IsNextCharacterEntity) && !IsAtEndOfStream)
{
_nextToken.Append(NextCharacter);
GetNextCharacter(attributeName);
}
if (NextCharacter == nextCharacter)
{
GetNextCharacter();
}
}
else
{
while (!IsAtEndOfStream && !char.IsWhiteSpace(NextCharacter) && NextCharacter != '>')
{
_nextToken.Append(NextCharacter);
GetNextCharacter();
}
}
}
private void GetNextCharacter(string? attributeName = null)
{
if (_nextCharacterCode == -1)
{
throw new InvalidOperationException("GetNextCharacter method called at the end of a stream");
}
_previousCharacter = NextCharacter;
NextCharacter = _lookAheadCharacter;
_nextCharacterCode = _lookAheadCharacterCode;
IsNextCharacterEntity = false;
ReadLookAheadCharacter();
if (NextCharacter != '&' || attributeName == null || attributeName.Equals("href"))
{
return;
}
if (_lookAheadCharacter == '#')
{
int num = 0;
ReadLookAheadCharacter();
if (_lookAheadCharacter == 'x')
{
string text = "0x";
ReadLookAheadCharacter();
for (int i = 0; i < 4; i++)
{
if (!IsHexDigit(_lookAheadCharacter))
{
break;
}
text += _lookAheadCharacter;
ReadLookAheadCharacter();
}
num = Convert.ToInt32(text, 16);
}
else
{
for (int j = 0; j < 7; j++)
{
if (!char.IsDigit(_lookAheadCharacter))
{
break;
}
num = 10 * num + (_lookAheadCharacterCode - 48);
ReadLookAheadCharacter();
}
}
if (_lookAheadCharacter == ';')
{
ReadLookAheadCharacter();
_nextCharacterCode = num;
NextCharacter = (char)_nextCharacterCode;
IsNextCharacterEntity = true;
}
else
{
NextCharacter = _lookAheadCharacter;
_nextCharacterCode = _lookAheadCharacterCode;
ReadLookAheadCharacter();
IsNextCharacterEntity = false;
}
}
else
{
if (!char.IsLetter(_lookAheadCharacter))
{
return;
}
string text2 = "";
for (int k = 0; k < 10; k++)
{
if (!char.IsLetter(_lookAheadCharacter) && !char.IsDigit(_lookAheadCharacter))
{
break;
}
text2 += _lookAheadCharacter;
ReadLookAheadCharacter();
}
if (_lookAheadCharacter == ';')
{
ReadLookAheadCharacter();
if (HtmlSchema.IsEntity(text2))
{
NextCharacter = HtmlSchema.EntityCharacterValue(text2);
_nextCharacterCode = NextCharacter;
IsNextCharacterEntity = true;
}
else
{
NextCharacter = _lookAheadCharacter;
_nextCharacterCode = _lookAheadCharacterCode;
ReadLookAheadCharacter();
IsNextCharacterEntity = false;
}
}
else
{
NextCharacter = _lookAheadCharacter;
ReadLookAheadCharacter();
IsNextCharacterEntity = false;
}
}
}
private bool IsHexDigit(char character)
{
return char.IsDigit(character) || (character >= 'a' && character <= 'f') || (character >= 'A' && character <= 'F');
}
private void ReadLookAheadCharacter()
{
if (_lookAheadCharacterCode != -1)
{
_lookAheadCharacterCode = _inputStringReader.Read();
_lookAheadCharacter = (char)_lookAheadCharacterCode;
}
}
private void SkipWhiteSpace()
{
while (true)
{
if (NextCharacter == '<' && (_lookAheadCharacter == '?' || _lookAheadCharacter == '!'))
{
GetNextCharacter();
if (_lookAheadCharacter == '[')
{
while (!IsAtEndOfStream && (_previousCharacter != ']' || NextCharacter != ']' || _lookAheadCharacter != '>'))
{
GetNextCharacter();
}
if (NextCharacter == '>')
{
GetNextCharacter();
}
}
else
{
while (!IsAtEndOfStream && NextCharacter != '>')
{
GetNextCharacter();
}
if (NextCharacter == '>')
{
GetNextCharacter();
}
}
}
if (!char.IsWhiteSpace(NextCharacter))
{
break;
}
GetNextCharacter();
}
}
private bool IsGoodForNameStart(char character)
{
return character == '_' || char.IsLetter(character);
}
private bool IsGoodForName(char character)
{
return IsGoodForNameStart(character) || character == '.' || character == '-' || character == ':' || char.IsDigit(character) || IsCombiningCharacter(character) || IsExtender(character);
}
private bool IsCombiningCharacter(char character)
{
return false;
}
private bool IsExtender(char character)
{
return false;
}
private void ReadDynamicContent()
{
Guard.Assert(_previousCharacter == '<' && NextCharacter == '!' && _lookAheadCharacter == '[', (string)null, "_previousCharacter == '<' && NextCharacter == '!' && _lookAheadCharacter == '['");
NextTokenType = HtmlTokenType.Text;
_nextToken.Length = 0;
GetNextCharacter();
GetNextCharacter();
while ((NextCharacter != ']' || _lookAheadCharacter != '>') && !IsAtEndOfStream)
{
GetNextCharacter();
}
if (!IsAtEndOfStream)
{
GetNextCharacter();
GetNextCharacter();
}
}
private void ReadComment()
{
Guard.Assert(_previousCharacter == '<' && NextCharacter == '!' && _lookAheadCharacter == '-', (string)null, "_previousCharacter == '<' && NextCharacter == '!' && _lookAheadCharacter == '-'");
NextTokenType = HtmlTokenType.Comment;
_nextToken.Length = 0;
GetNextCharacter();
GetNextCharacter();
GetNextCharacter();
while (true)
{
bool flag = true;
while (!IsAtEndOfStream && (NextCharacter != '-' || _lookAheadCharacter != '-') && (NextCharacter != '!' || _lookAheadCharacter != '>'))
{
_nextToken.Append(NextCharacter);
GetNextCharacter();
}
GetNextCharacter();
if (_previousCharacter == '-' && NextCharacter == '-' && _lookAheadCharacter == '>')
{
GetNextCharacter();
break;
}
if (_previousCharacter == '!' && NextCharacter == '>')
{
break;
}
_nextToken.Append(_previousCharacter);
}
if (NextCharacter == '>')
{
GetNextCharacter();
}
}
private void ReadUnknownDirective()
{
Guard.Assert(_previousCharacter == '<' && NextCharacter == '!' && _lookAheadCharacter != '-' && _lookAheadCharacter != '[', (string)null, "_previousCharacter == '<' && NextCharacter == '!' &&\n !(_lookAheadCharacter == '-' || _lookAheadCharacter == '[')");
NextTokenType = HtmlTokenType.Text;
_nextToken.Length = 0;
GetNextCharacter();
while ((NextCharacter != '>' || IsNextCharacterEntity) && !IsAtEndOfStream)
{
GetNextCharacter();
}
if (!IsAtEndOfStream)
{
GetNextCharacter();
}
}
private void SkipProcessingDirective()
{
Guard.Assert(NextCharacter == '<' && _lookAheadCharacter == '?', (string)null, "NextCharacter == '<' && _lookAheadCharacter == '?'");
GetNextCharacter();
GetNextCharacter();
while (((NextCharacter != '?' && NextCharacter != '/') || _lookAheadCharacter != '>') && !IsAtEndOfStream)
{
GetNextCharacter();
}
if (!IsAtEndOfStream)
{
GetNextCharacter();
GetNextCharacter();
}
}
}
internal sealed class HtmlParser
{
internal const string HtmlHeader = "Version:1.0\r\nStartHTML:{0:D10}\r\nEndHTML:{1:D10}\r\nStartFragment:{2:D10}\r\nEndFragment:{3:D10}\r\nStartSelection:{4:D10}\r\nEndSelection:{5:D10}\r\n";
internal const string HtmlStartFragmentComment = "<!--StartFragment-->";
internal const string HtmlEndFragmentComment = "<!--EndFragment-->";
internal const string XhtmlNamespace = "http://www.w3.org/1999/xhtml";
private readonly HtmlLexicalAnalyzer _htmlLexicalAnalyzer;
private readonly XmlDocument _document;
private readonly Stack<XmlElement> _openedElements;
private readonly Stack<XmlElement> _pendingInlineElements;
private HtmlParser(string inputString)
{
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_0013: Expected O, but got Unknown
_document = new XmlDocument();
_openedElements = new Stack<XmlElement>();
_pendingInlineElements = new Stack<XmlElement>();
_htmlLexicalAnalyzer = new HtmlLexicalAnalyzer(inputString);
_htmlLexicalAnalyzer.GetNextContentToken();
}
internal static XmlElement ParseHtml(string htmlString)
{
HtmlParser htmlParser = new HtmlParser(htmlString);
return htmlParser.ParseHtmlContent();
}
internal static string ExtractHtmlFromClipboardData(string htmlDataString)
{
int num = htmlDataString.IndexOf("StartHTML:", StringComparison.Ordinal);
if (num < 0)
{
return "ERROR: Urecognized html header";
}
num = int.Parse(htmlDataString.Substring(num + "StartHTML:".Length, "0123456789".Length));
if (num < 0 || num > htmlDataString.Length)
{
return "ERROR: Urecognized html header";
}
int num2 = htmlDataString.IndexOf("EndHTML:", StringComparison.Ordinal);
if (num2 < 0)
{
return "ERROR: Urecognized html header";
}
num2 = int.Parse(htmlDataString.Substring(num2 + "EndHTML:".Length, "0123456789".Length));
if (num2 > htmlDataString.Length)
{
num2 = htmlDataString.Length;
}
return htmlDataString.Substring(num, num2 - num);
}
internal static string AddHtmlClipboardHeader(string htmlString)
{
StringBuilder stringBuilder = new StringBuilder();
int num = "Version:1.0\r\nStartHTML:{0:D10}\r\nEndHTML:{1:D10}\r\nStartFragment:{2:D10}\r\nEndFragment:{3:D10}\r\nStartSelection:{4:D10}\r\nEndSelection:{5:D10}\r\n".Length + 6 * ("0123456789".Length - "{0:D10}".Length);
int num2 = num + htmlString.Length;
int num3 = htmlString.IndexOf("<!--StartFragment-->", 0, StringComparison.Ordinal);
num3 = ((num3 < 0) ? num : (num + num3 + "<!--StartFragment-->".Length));
int num4 = htmlString.IndexOf("<!--EndFragment-->", 0, StringComparison.Ordinal);
num4 = ((num4 < 0) ? num2 : (num + num4));
stringBuilder.AppendFormat("Version:1.0\r\nStartHTML:{0:D10}\r\nEndHTML:{1:D10}\r\nStartFragment:{2:D10}\r\nEndFragment:{3:D10}\r\nStartSelection:{4:D10}\r\nEndSelection:{5:D10}\r\n", num, num2, num3, num4, num3, num4);
stringBuilder.Append(htmlString);
return stringBuilder.ToString();
}
private void InvariantAssert(bool condition, string message)
{
if (!condition)
{
throw new Exception("Assertion error: " + message);
}
}
private XmlElement ParseHtmlContent()
{
//IL_0222: Unknown result type (might be due to invalid IL or missing references)
//IL_0228: Expected O, but got Unknown
XmlElement val = _document.CreateElement("html", "http://www.w3.org/1999/xhtml");
OpenStructuringElement(val);
while (_htmlLexicalAnalyzer.NextTokenType != HtmlTokenType.Eof)
{
if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.OpeningTagStart)
{
_htmlLexicalAnalyzer.GetNextTagToken();
if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.Name)
{
string text = _htmlLexicalAnalyzer.NextToken.ToLowerInvariant();
_htmlLexicalAnalyzer.GetNextTagToken();
XmlElement val2 = _document.CreateElement(text, "http://www.w3.org/1999/xhtml");
ParseAttributes(val2);
if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.EmptyTagEnd || HtmlSchema.IsEmptyElement(text))
{
AddEmptyElement(val2);
}
else if (HtmlSchema.IsInlineElement(text))
{
OpenInlineElement(val2);
}
else if (HtmlSchema.IsBlockElement(text) || HtmlSchema.IsKnownOpenableElement(text))
{
OpenStructuringElement(val2);
}
}
}
else if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.ClosingTagStart)
{
_htmlLexicalAnalyzer.GetNextTagToken();
if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.Name)
{
string htmlElementName = _htmlLexicalAnalyzer.NextToken.ToLowerInvariant();
_htmlLexicalAnalyzer.GetNextTagToken();
CloseElement(htmlElementName);
}
}
else if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.Text)
{
AddTextContent(_htmlLexicalAnalyzer.NextToken);
}
else if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.Comment)
{
AddComment(_htmlLexicalAnalyzer.NextToken);
}
_htmlLexicalAnalyzer.GetNextContentToken();
}
if (((XmlNode)val).FirstChild is XmlElement && ((XmlNode)val).FirstChild == ((XmlNode)val).LastChild && ((XmlNode)val).FirstChild.LocalName.ToLowerInvariant() == "html")
{
val = (XmlElement)((XmlNode)val).FirstChild;
}
return val;
}
private XmlElement CreateElementCopy(XmlElement htmlElement)
{
XmlElement val = _document.CreateElement(((XmlNode)htmlElement).LocalName, "http://www.w3.org/1999/xhtml");
for (int i = 0; i < ((XmlNamedNodeMap)((XmlNode)htmlElement).Attributes).Count; i++)
{
XmlAttribute val2 = ((XmlNode)htmlElement).Attributes[i];
val.SetAttribute(((XmlNode)val2).Name, ((XmlNode)val2).Value);
}
return val;
}
private void AddEmptyElement(XmlElement htmlEmptyElement)
{
InvariantAssert(_openedElements.Count > 0, "AddEmptyElement: Stack of opened elements cannot be empty, as we have at least one artificial root element");
XmlElement val = _openedElements.Peek();
((XmlNode)val).AppendChild((XmlNode)(object)htmlEmptyElement);
}
private void OpenInlineElement(XmlElement htmlInlineElement)
{
_pendingInlineElements.Push(htmlInlineElement);
}
private void OpenStructuringElement(XmlElement htmlElement)
{
if (HtmlSchema.IsBlockElement(((XmlNode)htmlElement).LocalName))
{
while (_openedElements.Count > 0 && HtmlSchema.IsInlineElement(((XmlNode)_openedElements.Peek()).LocalName))
{
XmlElement htmlElement2 = _openedElements.Pop();
InvariantAssert(_openedElements.Count > 0, "OpenStructuringElement: stack of opened elements cannot become empty here");
_pendingInlineElements.Push(CreateElementCopy(htmlElement2));
}
}
if (_openedElements.Count > 0)
{
XmlElement val = _openedElements.Peek();
if (HtmlSchema.ClosesOnNextElementStart(((XmlNode)val).LocalName, ((XmlNode)htmlElement).LocalName))
{
_openedElements.Pop();
val = ((_openedElements.Count > 0) ? _openedElements.Peek() : null);
}
if (val != null)
{
((XmlNode)val).AppendChild((XmlNode)(object)htmlElement);
}
}
_openedElements.Push(htmlElement);
}
private bool IsElementOpened(string htmlElementName)
{
string htmlElementName2 = htmlElementName;
return _openedElements.Any((XmlElement openedElement) => ((XmlNode)openedElement).LocalName == htmlElementName2);
}
private void CloseElement(string htmlElementName)
{
InvariantAssert(_openedElements.Count > 0, "CloseElement: Stack of opened elements cannot be empty, as we have at least one artificial root element");
if (_pendingInlineElements.Count > 0 && ((XmlNode)_pendingInlineElements.Peek()).LocalName == htmlElementName)
{
XmlElement val = _pendingInlineElements.Pop();
InvariantAssert(_openedElements.Count > 0, "CloseElement: Stack of opened elements cannot be empty, as we have at least one artificial root element");
XmlElement val2 = _openedElements.Peek();
((XmlNode)val2).AppendChild((XmlNode)(object)val);
}
else
{
if (!IsElementOpened(htmlElementName))
{
return;
}
while (_openedElements.Count > 1)
{
XmlElement val3 = _openedElements.Pop();
if (((XmlNode)val3).LocalName == htmlElementName)
{
break;
}
if (HtmlSchema.IsInlineElement(((XmlNode)val3).LocalName))
{
_pendingInlineElements.Push(CreateElementCopy(val3));
}
}
}
}
private void AddTextContent(string textContent)
{
OpenPendingInlineElements();
InvariantAssert(_openedElements.Count > 0, "AddTextContent: Stack of opened elements cannot be empty, as we have at least one artificial root element");
XmlElement val = _openedElements.Peek();
XmlText val2 = _document.CreateTextNode(textContent);
((XmlNode)val).AppendChild((XmlNode)(object)val2);
}
private void AddComment(string comment)
{
OpenPendingInlineElements();
InvariantAssert(_openedElements.Count > 0, "AddComment: Stack of opened elements cannot be empty, as we have at least one artificial root element");
XmlElement val = _openedElements.Peek();
XmlComment val2 = _document.CreateComment(comment);
((XmlNode)val).AppendChild((XmlNode)(object)val2);
}
private void OpenPendingInlineElements()
{
if (_pendingInlineElements.Count > 0)
{
XmlElement val = _pendingInlineElements.Pop();
OpenPendingInlineElements();
InvariantAssert(_openedElements.Count > 0, "OpenPendingInlineElements: Stack of opened elements cannot be empty, as we have at least one artificial root element");
XmlElement val2 = _openedElements.Peek();
((XmlNode)val2).AppendChild((XmlNode)(object)val);
_openedElements.Push(val);
}
}
private void ParseAttributes(XmlElement xmlElement)
{
while (_htmlLexicalAnalyzer.NextTokenType != HtmlTokenType.Eof && _htmlLexicalAnalyzer.NextTokenType != HtmlTokenType.TagEnd && _htmlLexicalAnalyzer.NextTokenType != HtmlTokenType.EmptyTagEnd)
{
if (_htmlLexicalAnalyzer.NextTokenType == HtmlTokenType.Name)
{
string nextToken = _htmlLexicalAnalyzer.NextToken;
_htmlLexicalAnalyzer.GetNextEqualSignToken();
_htmlLexicalAnalyzer.GetNextAtomToken(nextToken);
string nextToken2 = _htmlLexicalAnalyzer.NextToken;
xmlElement.SetAttribute(nextToken, nextToken2);
}
_htmlLexicalAnalyzer.GetNextTagToken();
}
}
}
internal sealed class HtmlSchema
{
private static ArrayList _htmlInlineElements;
private static ArrayList _htmlBlockElements;
private static ArrayList _htmlOtherOpenableElements;
private static ArrayList _htmlEmptyElements;
private static ArrayList _htmlElementsClosingOnParentElementEnd;
private static ArrayList _htmlElementsClosingColgroup;
private static ArrayList _htmlElementsClosingDd;
private static ArrayList _htmlElementsClosingDt;
private static ArrayList _htmlElementsClosingLi;
private static ArrayList _htmlElementsClosingTbody;
private static ArrayList _htmlElementsClosingTd;
private static ArrayList _htmlElementsClosingTfoot;
private static ArrayList _htmlElementsClosingThead;
private static ArrayList _htmlElementsClosingTh;
private static ArrayList _htmlElementsClosingTr;
private static Hashtable _htmlCharacterEntities;
static HtmlSchema()
{
InitializeInlineElements();
InitializeBlockElements();
InitializeOtherOpenableElements();
InitializeEmptyElements();
InitializeElementsClosingOnParentElementEnd();
InitializeElementsClosingOnNewElementStart();
InitializeHtmlCharacterEntities();
}
internal static bool IsEmptyElement(string xmlElementName)
{
return _htmlEmptyElements.Contains(xmlElementName.ToLowerInvariant());
}
internal static bool IsBlockElement(string xmlElementName)
{
return _htmlBlockElements.Contains(xmlElementName);
}
internal static bool IsInlineElement(string xmlElementName)
{
return _htmlInlineElements.Contains(xmlElementName);
}
internal static bool IsKnownOpenableElement(string xmlElementName)
{
return _htmlOtherOpenableElements.Contains(xmlElementName);
}
internal static bool ClosesOnParentElementEnd(string xmlElementName)
{
return _htmlElementsClosingOnParentElementEnd.Contains(xmlElementName.ToLowerInvariant());
}
internal static bool ClosesOnNextElementStart(string currentElementName, string nextElementName)
{
Guard.Assert(currentElementName == currentElementName.ToLowerInvariant(), (string)null, "currentElementName == currentElementName.ToLowerInvariant()");
return currentElementName switch
{
"colgroup" => _htmlElementsClosingColgroup.Contains(nextElementName) && IsBlockElement(nextElementName),
"dd" => _htmlElementsClosingDd.Contains(nextElementName) && IsBlockElement(nextElementName),
"dt" => _htmlElementsClosingDt.Contains(nextElementName) && IsBlockElement(nextElementName),
"li" => _htmlElementsClosingLi.Contains(nextElementName),
"p" => IsBlockElement(nextElementName),
"tbody" => _htmlElementsClosingTbody.Contains(nextElementName),
"tfoot" => _htmlElementsClosingTfoot.Contains(nextElementName),
"thead" => _htmlElementsClosingThead.Contains(nextElementName),
"tr" => _htmlElementsClosingTr.Contains(nextElementName),
"td" => _htmlElementsClosingTd.Contains(nextElementName),
"th" => _htmlElementsClosingTh.Contains(nextElementName),
_ => false,
};
}
internal static bool IsEntity(string entityName)
{
if (_htmlCharacterEntities.Contains(entityName))
{
return true;
}
return false;
}
internal static char EntityCharacterValue(string entityName)
{
if (_htmlCharacterEntities.Contains(entityName))
{
return (char)_htmlCharacterEntities[entityName];
}
return '\0';
}
private static void InitializeInlineElements()
{
_htmlInlineElements = new ArrayList
{
"a", "abbr", "acronym", "address", "b", "bdo", "big", "bold", "button", "code",
"del", "dfn", "em", "font", "i", "ins", "italic", "kbd", "label", "legend",
"q", "s", "samp", "small", "span", "strike", "strong", "sub", "sup", "u",
"underline", "var"
};
}
private static void InitializeBlockElements()
{
_htmlBlockElements = new ArrayList
{
"blockquote", "body", "caption", "center", "cite", "dd", "dir", "div", "dl", "dt",
"form", "h1", "h2", "h3", "h4", "h5", "h6", "html", "li", "menu",
"ol", "p", "pre", "table", "tbody", "td", "textarea", "tfoot", "th", "thead",
"tr", "tt", "ul"
};
}
private static void InitializeEmptyElements()
{
_htmlEmptyElements = new ArrayList
{
"area", "base", "basefont", "br", "col", "frame", "hr", "img", "input", "isindex",
"link", "meta", "param"
};
}
private static void InitializeOtherOpenableElements()
{
_htmlOtherOpenableElements = new ArrayList
{
"applet", "base", "basefont", "colgroup", "fieldset", "frameset", "head", "iframe", "map", "noframes",
"noscript", "object", "optgroup", "option", "script", "select", "style", "title"
};
}
private static void InitializeElementsClosingOnParentElementEnd()
{
_htmlElementsClosingOnParentElementEnd = new ArrayList
{
"body", "colgroup", "dd", "dt", "head", "html", "li", "p", "tbody", "td",
"tfoot", "thead", "th", "tr"
};
}
private static void InitializeElementsClosingOnNewElementStart()
{
_htmlElementsClosingColgroup = new ArrayList { "colgroup", "tr", "thead", "tfoot", "tbody" };
_htmlElementsClosingDd = new ArrayList { "dd", "dt" };
_htmlElementsClosingDt = new ArrayList();
_htmlElementsClosingDd.Add("dd");
_htmlElementsClosingDd.Add("dt");
_htmlElementsClosingLi = new ArrayList { "li" };
_htmlElementsClosingTbody = new ArrayList { "tbody", "thead", "tfoot" };
_htmlElementsClosingTr = new ArrayList { "thead", "tfoot", "tbody", "tr" };
_htmlElementsClosingTd = new ArrayList { "td", "th", "tr", "tbody", "tfoot", "thead" };
_htmlElementsClosingTh = new ArrayList { "td", "th", "tr", "tbody", "tfoot", "thead" };
_htmlElementsClosingThead = new ArrayList { "tbody", "tfoot" };
_htmlElementsClosingTfoot = new ArrayList { "tbody", "thead" };
}
private static void InitializeHtmlCharacterEntities()
{
_htmlCharacterEntities = new Hashtable
{
["Aacute"] = 'Á',
["aacute"] = 'á',
["Acirc"] = 'Â',
["acirc"] = 'â',
["acute"] = '\u00b4',
["AElig"] = 'Æ',
["aelig"] = 'æ',
["Agrave"] = 'À',
["agrave"] = 'à',
["alefsym"] = 'ℵ',
["Alpha"] = 'Α',
["alpha"] = 'α',
["amp"] = '&',
["apos"] = '\'',
["and"] = '∧',
["ang"] = '∠',
["Aring"] = 'Å',
["aring"] = 'å',
["asymp"] = '≈',
["Atilde"] = 'Ã',
["atilde"] = 'ã',
["Auml"] = 'Ä',
["auml"] = 'ä',
["bdquo"] = '„',
["Beta"] = 'Β',
["beta"] = 'β',
["brvbar"] = '¦',
["bull"] = '•',
["cap"] = '∩',
["Ccedil"] = 'Ç',
["ccedil"] = 'ç',
["cent"] = '¢',
["Chi"] = 'Χ',
["chi"] = 'χ',
["circ"] = 'ˆ',
["clubs"] = '♣',
["cong"] = '≅',
["copy"] = '©',
["crarr"] = '↵',
["cup"] = '∪',
["curren"] = '¤',
["dagger"] = '†',
["Dagger"] = '‡',
["darr"] = '↓',
["dArr"] = '⇓',
["deg"] = '°',
["Delta"] = 'Δ',
["delta"] = 'δ',
["diams"] = '♦',
["divide"] = '÷',
["Eacute"] = 'É',
["eacute"] = 'é',
["Ecirc"] = 'Ê',
["ecirc"] = 'ê',
["Egrave"] = 'È',
["egrave"] = 'è',
["empty"] = '∅',
["emsp"] = '\u2003',
["ensp"] = '\u2002',
["Epsilon"] = 'Ε',
["epsilon"] = 'ε',
["equiv"] = '≡',
["Eta"] = 'Η',
["eta"] = 'η',
["ETH"] = 'Ð',
["eth"] = 'ð',
["Euml"] = 'Ë',
["euml"] = 'ë',
["euro"] = '€',
["exist"] = '∃',
["fnof"] = 'ƒ',
["forall"] = '∀',
["frac12"] = '½',
["frac14"] = '¼',
["frac34"] = '¾',
["frasl"] = '⁄',
["Gamma"] = 'Γ',
["gamma"] = 'γ',
["ge"] = '≥',
["gt"] = '>',
["harr"] = '↔',
["hArr"] = '⇔',
["hearts"] = '♥',
["hellip"] = '…',
["Iacute"] = 'Í',
["iacute"] = 'í',
["Icirc"] = 'Î',
["icirc"] = 'î',
["iexcl"] = '¡',
["Igrave"] = 'Ì',
["igrave"] = 'ì',
["image"] = 'ℑ',
["infin"] = '∞',
["int"] = '∫',
["Iota"] = 'Ι',
["iota"] = 'ι',
["iquest"] = '¿',
["isin"] = '∈',
["Iuml"] = 'Ï',
["iuml"] = 'ï',
["Kappa"] = 'Κ',
["kappa"] = 'κ',
["Lambda"] = 'Λ',
["lambda"] = 'λ',
["lang"] = '〈',
["laquo"] = '«',
["larr"] = '←',
["lArr"] = '⇐',
["lceil"] = '⌈',
["ldquo"] = '“',
["le"] = '≤',
["lfloor"] = '⌊',
["lowast"] = '∗',
["loz"] = '◊',
["lrm"] = '\u200e',
["lsaquo"] = '‹',
["lsquo"] = '‘',
["lt"] = '<',
["macr"] = '\u00af',
["mdash"] = '—',
["micro"] = 'µ',
["middot"] = '·',
["minus"] = '−',
["Mu"] = 'Μ',
["mu"] = 'μ',
["nabla"] = '∇',
["nbsp"] = '\u00a0',
["ndash"] = '–',
["ne"] = '≠',
["ni"] = '∋',
["not"] = '¬',
["notin"] = '∉',
["nsub"] = '⊄',
["Ntilde"] = 'Ñ',
["ntilde"] = 'ñ',
["Nu"] = 'Ν',
["nu"] = 'ν',
["Oacute"] = 'Ó',
["ocirc"] = 'ô',
["OElig"] = 'Œ',
["oelig"] = 'œ',
["Ograve"] = 'Ò',
["ograve"] = 'ò',
["oline"] = '‾',
["Omega"] = 'Ω',
["omega"] = 'ω',
["Omicron"] = 'Ο',
["omicron"] = 'ο',
["oplus"] = '⊕',
["or"] = '∨',
["ordf"] = 'ª',
["ordm"] = 'º',
["Oslash"] = 'Ø',
["oslash"] = 'ø',
["Otilde"] = 'Õ',
["otilde"] = 'õ',
["otimes"] = '⊗',
["Ouml"] = 'Ö',
["ouml"] = 'ö',
["para"] = '¶',
["part"] = '∂',
["permil"] = '‰',
["perp"] = '⊥',
["Phi"] = 'Φ',
["phi"] = 'φ',
["pi"] = 'π',
["piv"] = 'ϖ',
["plusmn"] = '±',
["pound"] = '£',
["prime"] = '′',
["Prime"] = '″',
["prod"] = '∏',
["prop"] = '∝',
["Psi"] = 'Ψ',
["psi"] = 'ψ',
["quot"] = '"',
["radic"] = '√',
["rang"] = '〉',
["raquo"] = '»',
["rarr"] = '→',
["rArr"] = '⇒',
["rceil"] = '⌉',
["rdquo"] = '”',
["real"] = 'ℜ',
["reg"] = '®',
["rfloor"] = '⌋',
["Rho"] = 'Ρ',
["rho"] = 'ρ',
["rlm"] = '\u200f',
["rsaquo"] = '›',
["rsquo"] = '’',
["sbquo"] = '‚',
["Scaron"] = 'Š',
["scaron"] = 'š',
["sdot"] = '⋅',
["sect"] = '§',
["shy"] = '\u00ad',
["Sigma"] = 'Σ',
["sigma"] = 'σ',
["sigmaf"] = 'ς',
["sim"] = '∼',
["spades"] = '♠',
["sub"] = '⊂',
["sube"] = '⊆',
["sum"] = '∑',
["sup"] = '⊃',
["sup1"] = '¹',
["sup2"] = '²',
["sup3"] = '³',
["supe"] = '⊇',
["szlig"] = 'ß',
["Tau"] = 'Τ',
["tau"] = 'τ',
["there4"] = '∴',
["Theta"] = 'Θ',
["theta"] = 'θ',
["thetasym"] = 'ϑ',
["thinsp"] = '\u2009',
["THORN"] = 'Þ',
["thorn"] = 'þ',
["tilde"] = '\u02dc',
["times"] = '×',
["trade"] = '™',
["Uacute"] = 'Ú',
["uacute"] = 'ú',
["uarr"] = '↑',
["uArr"] = '⇑',
["Ucirc"] = 'Û',
["ucirc"] = 'û',
["Ugrave"] = 'Ù',
["ugrave"] = 'ù',
["uml"] = '\u00a8',
["upsih"] = 'ϒ',
["Upsilon"] = 'Υ',
["upsilon"] = 'υ',
["Uuml"] = 'Ü',
["uuml"] = 'ü',
["weierp"] = '℘',
["Xi"] = 'Ξ',
["xi"] = 'ξ',
["Yacute"] = 'Ý',
["yacute"] = 'ý',
["yen"] = '¥',
["Yuml"] = 'Ÿ',
["yuml"] = 'ÿ',
["Zeta"] = 'Ζ',
["zeta"] = 'ζ',
["zwj"] = '\u200d',
["zwnj"] = '\u200c'
};
}
}
internal sealed class HtmlToXamlConverter
{
public const string XamlFlowDocument = "FlowDocument";
public const string XamlRun = "Run";
public const string XamlSpan = "Span";
public const string XamlHyperlink = "Hyperlink";
public const string XamlHyperlinkNavigateUri = "NavigateUri";
public const string XamlHyperlinkTargetName = "TargetName";
public const string XamlImage = "Image";
public const string XamlImageSource = "Source";
public const string XamlSection = "Section";
public const string XamlList = "List";
public const string XamlListMarkerStyle = "MarkerStyle";
public const string XamlListMarkerStyleNone = "None";
public const string XamlListMarkerStyleDecimal = "Decimal";
public const string XamlListMarkerStyleDisc = "Disc";
public const string XamlListMarkerStyleCircle = "Circle";
public const string XamlListMarkerStyleSquare = "Square";
public const string XamlListMarkerStyleBox = "Box";
public const string XamlListMarkerStyleLowerLatin = "LowerLatin";
public const string XamlListMarkerStyleUpperLatin = "UpperLatin";
public const string XamlListMarkerStyleLowerRoman = "LowerRoman";
public const string XamlListMarkerStyleUpperRoman = "UpperRoman";
public const string XamlListItem = "ListItem";
public const string XamlLineBreak = "LineBreak";
public const string XamlParagraph = "Paragraph";
public const string XamlMargin = "Margin";
public const string XamlPadding = "Padding";
public const string XamlBorderBrush = "BorderBrush";
public const string XamlBorderThickness = "BorderThickness";
public const string XamlTable = "Table";
public const string XamlTableColumn = "TableColumn";
public const string XamlTableRowGroup = "TableRowGroup";
public const string XamlTableRow = "TableRow";
public const string XamlTableCell = "TableCell";
public const string XamlTableCellBorderThickness = "BorderThickness";
public const string XamlTableCellBorderBrush = "BorderBrush";
public const string XamlTableCellColumnSpan = "ColumnSpan";
public const string XamlTableCellRowSpan = "RowSpan";
public const string XamlWidth = "Width";
public const string XamlHeight = "Height";
public const string XamlBrushesBlack = "Black";
public const string XamlFontFamily = "FontFamily";
public const string XamlFontSize = "FontSize";
public const string XamlFontSizeXxLarge = "28";
public const string XamlFontSizeXLarge = "20";
public const string XamlFontSizeLarge = "18";
public const string XamlFontSizeMedium = "16";
public const string XamlFontSizeSmall = "14";
public const string XamlFontSizeXSmall = "12";
public const string XamlFontSizeXxSmall = "10";
public const string XamlFontWeight = "FontWeight";
public const string XamlFontWeightBold = "Bold";
public const string XamlFontStyle = "FontStyle";
public const string XamlForeground = "Foreground";
public const string XamlBackground = "Background";
public const string XamlTextDecorations = "TextDecorations";
public const string XamlTextDecorationsUnderline = "Underline";
public const string XamlTextDecorationsStrikethrough = "Strikethrough";
public const string XamlTextIndent = "TextIndent";
public const string XamlTextAlignment = "TextAlignment";
public const string XamlVerticalAlignment = "VerticalAlignment";
public const string XamlLineHeight = "LineHeight";
public const string XamlBaselineAlignment = "BaselineAlignment";
public const string XamlFigure = "Figure";
public const string XamlBlockUIContainer = "BlockUIContainer";
public const string XamlSeparator = "Separator";
public const string XamlStretch = "Stretch";
public const string XamlStretchFill = "Fill";
private readonly string _basePath;
private static readonly string XamlNamespace = "http://schemas.microsoft.com/winfx/2006/xaml/presentation";
private static readonly string XNamespace = "http://schemas.microsoft.com/winfx/2006/xaml";
private static readonly string VisualsNamespace = "http://schemas.kasperskylab.com/common/visuals";
private static XmlElement? _inlineFragmentParentElement;
private HtmlToXamlConverter(string basePath)
{
_basePath = basePath;
}
public static string ConvertHtmlToXaml(string htmlString, bool asFlowDocument, string basePath)
{
return new HtmlToXamlConverter(basePath).ConvertHtmlToXaml(htmlString, asFlowDocument);
}
public string ConvertHtmlToXaml(string htmlString, bool asFlowDocument)
{
//IL_0018: Unknown result type (might be due to invalid IL or missing references)
//IL_001e: Expected O, but got Unknown
XmlElement val = HtmlParser.ParseHtml(htmlString);
string text = (asFlowDocument ? "FlowDocument" : "Section");
XmlDocument val2 = new XmlDocument();
XmlElement val3 = val2.CreateElement((string)null, text, XamlNamespace);
val3.SetAttribute("xmlns:x", XNamespace);
val3.SetAttribute("xmlns:visuals", VisualsNamespace);
CssStylesheet stylesheet = new CssStylesheet(val, _basePath);
List<XmlElement> sourceContext = new List<XmlElement>(10);
_inlineFragmentParentElement = null;
AddBlock(val3, (XmlNode)(object)val, new Hashtable(), stylesheet, sourceContext);
if (!asFlowDocument)
{
val3 = ExtractInlineFragment(val3);
}
val3.SetAttribute("xml:space", "preserve");
return ((XmlNode)val3).OuterXml;
}
public static string GetAttribute(XmlElement element, string attributeName)
{
attributeName = attributeName.ToLowerInvariant();
for (int i = 0; i < ((XmlNamedNodeMap)((XmlNode)element).Attributes).Count; i++)
{
if (((XmlNode)((XmlNode)element).Attributes[i]).Name.ToLowerInvariant() == attributeName)
{
return ((XmlNode)((XmlNode)element).Attributes[i]).Value;
}
}
return null;
}
internal static string GetFullPath(string relativePath, string basePath)
{
Guard.Argument(Uri.IsWellFormedUriString(relativePath, UriKind.Relative), (string)null, "Uri.IsWellFormedUriString(relativePath, UriKind.Relative)");
return Path.Combine(basePath, relativePath);
}
internal static string UnQuote(string value)
{
value = value.Trim();
if ((value.StartsWith("\"") && value.EndsWith("\"")) || (value.StartsWith("'") && value.EndsWith("'")))
{
value = value.Substring(1, value.Length - 2);
}
return value;
}
private XmlNode AddBlock(XmlElement xamlParentElement, XmlNode htmlNode, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_001b: Expected O, but got Unknown
//IL_0057: Unknown result type (might be due to invalid IL or missing references)
//IL_005d: Expected O, but got Unknown
if (htmlNode is XmlComment)
{
DefineInlineFragmentParent((XmlComment)htmlNode, null);
}
else if (htmlNode is XmlText)
{
htmlNode = AddImplicitParagraph(xamlParentElement, htmlNode, inheritedProperties, stylesheet, sourceContext);
}
else if (htmlNode is XmlElement)
{
XmlElement val = (XmlElement)htmlNode;
string localName = ((XmlNode)val).LocalName;
string namespaceURI = ((XmlNode)val).NamespaceURI;
if (namespaceURI != "http://www.w3.org/1999/xhtml")
{
return (XmlNode)(object)val;
}
sourceContext.Add(val);
switch (localName.ToLowerInvariant())
{
case "html":
case "body":
case "div":
case "form":
case "pre":
case "blockquote":
case "caption":
case "center":
case "cite":
AddSection(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
case "p":
case "h1":
case "h2":
case "h3":
case "h4":
case "h5":
case "h6":
case "nsrtitle":
case "textarea":
case "dd":
case "dl":
case "dt":
case "tt":
AddParagraph(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
case "ol":
case "ul":
case "dir":
case "menu":
AddList(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
case "li":
htmlNode = (XmlNode)(object)AddOrphanListItems(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
case "img":
AddImage(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
case "table":
AddTable(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
default:
htmlNode = AddImplicitParagraph(xamlParentElement, (XmlNode)(object)val, inheritedProperties, stylesheet, sourceContext);
break;
case "style":
case "meta":
case "head":
case "title":
case "script":
break;
}
Guard.Assert(sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == val, (string)null, "sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == htmlElement");
sourceContext.RemoveAt(sourceContext.Count - 1);
}
return htmlNode;
}
private static void AddBreak(XmlElement xamlParentElement, string htmlElementName)
{
XmlElement val = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "LineBreak", XamlNamespace);
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val);
if (htmlElementName == "hr")
{
XmlElement val2 = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Figure", XamlNamespace);
XmlElement val3 = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "BlockUIContainer", XamlNamespace);
XmlElement val4 = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Separator", XamlNamespace);
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val2);
((XmlNode)val2).AppendChild((XmlNode)(object)val3);
((XmlNode)val3).AppendChild((XmlNode)(object)val4);
}
}
private void AddSection(XmlElement xamlParentElement, XmlElement htmlElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
bool flag = false;
for (XmlNode val = ((XmlNode)htmlElement).FirstChild; val != null; val = val.NextSibling)
{
if (val is XmlElement)
{
string xmlElementName = ((XmlNode)(XmlElement)val).LocalName.ToLowerInvariant();
if (HtmlSchema.IsBlockElement(xmlElementName))
{
flag = true;
break;
}
}
}
if (!flag)
{
AddParagraph(xamlParentElement, htmlElement, inheritedProperties, stylesheet, sourceContext);
return;
}
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement val2 = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Section", XamlNamespace);
ApplyLocalProperties(val2, localProperties, isBlock: true);
if (!val2.HasAttributes)
{
val2 = xamlParentElement;
}
XmlNode val3;
for (val3 = ((XmlNode)htmlElement).FirstChild; val3 != null; val3 = ((val3 != null) ? val3.NextSibling : null))
{
val3 = AddBlock(val2, val3, elementProperties, stylesheet, sourceContext);
}
if (val2 != xamlParentElement)
{
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val2);
}
}
private void AddParagraph(XmlElement xamlParentElement, XmlElement htmlElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement val = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Paragraph", XamlNamespace);
ApplyLocalProperties(val, localProperties, isBlock: true);
for (XmlNode val2 = ((XmlNode)htmlElement).FirstChild; val2 != null; val2 = val2.NextSibling)
{
AddInline(val, val2, elementProperties, stylesheet, sourceContext);
}
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val);
}
private XmlNode AddImplicitParagraph(XmlElement xamlParentElement, XmlNode htmlNode, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_002f: Unknown result type (might be due to invalid IL or missing references)
//IL_003a: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00bb: Expected O, but got Unknown
XmlElement val = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Paragraph", XamlNamespace);
XmlNode result = null;
while (htmlNode != null)
{
if (htmlNode is XmlComment)
{
DefineInlineFragmentParent((XmlComment)htmlNode, null);
}
else if (htmlNode is XmlText)
{
if (htmlNode.Value.Trim().Length > 0)
{
AddTextRun(val, htmlNode.Value);
}
}
else if (htmlNode is XmlElement)
{
string xmlElementName = ((XmlNode)(XmlElement)htmlNode).LocalName.ToLowerInvariant();
if (HtmlSchema.IsBlockElement(xmlElementName))
{
break;
}
AddInline(val, (XmlNode)(XmlElement)htmlNode, inheritedProperties, stylesheet, sourceContext);
}
result = htmlNode;
htmlNode = htmlNode.NextSibling;
}
if (((XmlNode)val).FirstChild != null)
{
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val);
}
return result;
}
private void AddInline(XmlElement xamlParentElement, XmlNode htmlNode, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_001b: Expected O, but got Unknown
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_005b: Expected O, but got Unknown
if (htmlNode is XmlComment)
{
DefineInlineFragmentParent((XmlComment)htmlNode, xamlParentElement);
}
else if (htmlNode is XmlText)
{
AddTextRun(xamlParentElement, htmlNode.Value);
}
else
{
if (!(htmlNode is XmlElement))
{
return;
}
XmlElement val = (XmlElement)htmlNode;
if (((XmlNode)val).NamespaceURI != "http://www.w3.org/1999/xhtml")
{
return;
}
string text = ((XmlNode)val).LocalName.ToLowerInvariant();
sourceContext.Add(val);
switch (text)
{
case "a":
AddHyperlink(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
case "img":
AddImage(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
break;
case "br":
case "hr":
AddBreak(xamlParentElement, text);
break;
default:
if (HtmlSchema.IsInlineElement(text) || HtmlSchema.IsBlockElement(text))
{
AddSpanOrRun(xamlParentElement, val, inheritedProperties, stylesheet, sourceContext);
}
break;
}
Guard.Assert(sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == val, (string)null, "sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == htmlElement");
sourceContext.RemoveAt(sourceContext.Count - 1);
}
}
private void AddSpanOrRun(XmlElement xamlParentElement, XmlElement htmlElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
bool flag = false;
for (XmlNode val = ((XmlNode)htmlElement).FirstChild; val != null; val = val.NextSibling)
{
if (val is XmlElement)
{
string text = ((XmlNode)(XmlElement)val).LocalName.ToLowerInvariant();
if (HtmlSchema.IsInlineElement(text) || HtmlSchema.IsBlockElement(text) || text == "img" || text == "br" || text == "hr")
{
flag = true;
break;
}
}
}
string text2 = (flag ? "Span" : "Run");
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement val2 = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, text2, XamlNamespace);
ApplyLocalProperties(val2, localProperties, isBlock: false);
for (XmlNode val3 = ((XmlNode)htmlElement).FirstChild; val3 != null; val3 = val3.NextSibling)
{
AddInline(val2, val3, elementProperties, stylesheet, sourceContext);
}
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val2);
}
private static void AddTextRun(XmlElement xamlElement, string textData)
{
for (int i = 0; i < textData.Length; i++)
{
if (char.IsControl(textData[i]))
{
textData = textData.Remove(i--, 1);
}
}
textData = textData.Replace('\u00a0', ' ');
if (textData.Length > 0)
{
((XmlNode)xamlElement).AppendChild((XmlNode)(object)((XmlNode)xamlElement).OwnerDocument.CreateTextNode(textData));
}
}
private void AddHyperlink(XmlElement xamlParentElement, XmlElement htmlElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
string attribute = GetAttribute(htmlElement, "href");
if (attribute == null)
{
AddSpanOrRun(xamlParentElement, htmlElement, inheritedProperties, stylesheet, sourceContext);
return;
}
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement val = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Hyperlink", XamlNamespace);
ApplyLocalProperties(val, localProperties, isBlock: false);
val.SetAttribute("NavigateUri", attribute);
string[] array = attribute.Split(new char[1] { '#' });
if (array.Length == 2 && array[1].Trim().Length > 0)
{
val.SetAttribute("TargetName", array[1].Trim());
}
for (XmlNode val2 = ((XmlNode)htmlElement).FirstChild; val2 != null; val2 = val2.NextSibling)
{
AddInline(val, val2, elementProperties, stylesheet, sourceContext);
}
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val);
}
private static void DefineInlineFragmentParent(XmlComment htmlComment, XmlElement xamlParentElement)
{
if (((XmlNode)htmlComment).Value == "StartFragment")
{
_inlineFragmentParentElement = xamlParentElement;
}
else if (((XmlNode)htmlComment).Value == "EndFragment" && _inlineFragmentParentElement == null && xamlParentElement != null)
{
_inlineFragmentParentElement = xamlParentElement;
}
}
private static XmlElement ExtractInlineFragment(XmlElement xamlFlowDocumentElement)
{
if (_inlineFragmentParentElement != null)
{
if (((XmlNode)_inlineFragmentParentElement).LocalName == "Span")
{
xamlFlowDocumentElement = _inlineFragmentParentElement;
}
else
{
xamlFlowDocumentElement = ((XmlNode)xamlFlowDocumentElement).OwnerDocument.CreateElement((string)null, "Span", XamlNamespace);
while (((XmlNode)_inlineFragmentParentElement).FirstChild != null)
{
XmlNode firstChild = ((XmlNode)_inlineFragmentParentElement).FirstChild;
((XmlNode)_inlineFragmentParentElement).RemoveChild(firstChild);
((XmlNode)xamlFlowDocumentElement).AppendChild(firstChild);
}
}
}
return xamlFlowDocumentElement;
}
private void AddImage(XmlElement xamlParentElement, XmlElement htmlElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
string text = GetAttribute(htmlElement, "src").Trim();
if (!string.IsNullOrEmpty(text))
{
string fullPath = GetFullPath(text, _basePath);
if (File.Exists(fullPath))
{
GetElementProperties(htmlElement, inheritedProperties, out Hashtable localProperties, stylesheet, sourceContext);
XmlElement val = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Image", XamlNamespace);
ApplyLocalProperties(val, localProperties, isBlock: false);
val.SetAttribute("Source", new Uri(fullPath).AbsoluteUri);
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val);
}
}
}
private void AddList(XmlElement xamlParentElement, XmlElement htmlListElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_009b: Unknown result type (might be due to invalid IL or missing references)
//IL_00a5: Expected O, but got Unknown
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Expected O, but got Unknown
string text = ((XmlNode)htmlListElement).LocalName.ToLowerInvariant();
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlListElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement val = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "List", XamlNamespace);
val.SetAttribute("MarkerStyle", (text == "ol") ? "Decimal" : "Disc");
ApplyLocalProperties(val, localProperties, isBlock: true);
for (XmlNode val2 = ((XmlNode)htmlListElement).FirstChild; val2 != null; val2 = val2.NextSibling)
{
if (val2 is XmlElement && val2.LocalName.ToLowerInvariant() == "li")
{
sourceContext.Add((XmlElement)val2);
AddListItem(val, (XmlElement)val2, elementProperties, stylesheet, sourceContext);
Guard.Assert(sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == val2, (string)null, "sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == htmlChildNode");
sourceContext.RemoveAt(sourceContext.Count - 1);
}
}
if (((XmlNode)val).HasChildNodes)
{
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val);
}
}
private XmlElement AddOrphanListItems(XmlElement xamlParentElement, XmlElement htmlLiElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Expected O, but got Unknown
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_007c: Expected O, but got Unknown
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Expected O, but got Unknown
XmlElement result = null;
XmlNode lastChild = ((XmlNode)xamlParentElement).LastChild;
XmlElement val;
if (lastChild != null && lastChild.LocalName == "List")
{
val = (XmlElement)lastChild;
}
else
{
val = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "List", XamlNamespace);
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val);
}
XmlNode val2 = (XmlNode)(object)htmlLiElement;
string text = ((val2 != null) ? val2.LocalName.ToLowerInvariant() : null);
while (val2 != null && text == "li")
{
AddListItem(val, (XmlElement)val2, inheritedProperties, stylesheet, sourceContext);
result = (XmlElement)val2;
val2 = val2.NextSibling;
text = ((val2 != null) ? val2.LocalName.ToLowerInvariant() : null);
}
return result;
}
private void AddListItem(XmlElement xamlListElement, XmlElement htmlLiElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
Guard.Assert(xamlListElement != null, (string)null, "xamlListElement != null");
Guard.Assert(((XmlNode)xamlListElement).LocalName == "List", (string)null, "xamlListElement.LocalName == XamlList");
Guard.Assert(htmlLiElement != null, (string)null, "htmlLiElement != null");
Guard.Assert(((XmlNode)htmlLiElement).LocalName.ToLowerInvariant() == "li", (string)null, "htmlLiElement.LocalName.ToLowerInvariant() == \"li\"");
Guard.Assert(inheritedProperties != null, (string)null, "inheritedProperties != null");
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlLiElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement val = ((XmlNode)xamlListElement).OwnerDocument.CreateElement((string)null, "ListItem", XamlNamespace);
ApplyLocalProperties(val, localProperties, isBlock: false);
XmlNode val2;
for (val2 = ((XmlNode)htmlLiElement).FirstChild; val2 != null; val2 = ((val2 != null) ? val2.NextSibling : null))
{
val2 = AddBlock(val, val2, elementProperties, stylesheet, sourceContext);
}
((XmlNode)xamlListElement).AppendChild((XmlNode)(object)val);
}
private void AddTable(XmlElement xamlParentElement, XmlElement htmlTableElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_0191: Unknown result type (might be due to invalid IL or missing references)
//IL_019b: Expected O, but got Unknown
//IL_019e: Unknown result type (might be due to invalid IL or missing references)
//IL_01af: Expected O, but got Unknown
Guard.Assert(((XmlNode)htmlTableElement).LocalName.ToLowerInvariant() == "table", (string)null, "htmlTableElement.LocalName.ToLowerInvariant() == \"table\"");
Guard.Assert(xamlParentElement != null, (string)null, "xamlParentElement != null");
Guard.Assert(inheritedProperties != null, (string)null, "inheritedProperties != null");
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlTableElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement cellFromSingleCellTable = GetCellFromSingleCellTable(htmlTableElement);
if (cellFromSingleCellTable != null)
{
sourceContext.Add(cellFromSingleCellTable);
XmlNode val;
for (val = ((XmlNode)cellFromSingleCellTable).FirstChild; val != null; val = ((val != null) ? val.NextSibling : null))
{
val = AddBlock(xamlParentElement, val, elementProperties, stylesheet, sourceContext);
}
Guard.Assert(sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == cellFromSingleCellTable, (string)null, "sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == singleCell");
sourceContext.RemoveAt(sourceContext.Count - 1);
return;
}
XmlElement val2 = ((XmlNode)xamlParentElement).OwnerDocument.CreateElement((string)null, "Table", XamlNamespace);
ArrayList arrayList = AnalyzeTableStructure(htmlTableElement, stylesheet);
AddColumnInformation(htmlTableElement, val2, arrayList, elementProperties, stylesheet, sourceContext);
XmlNode val3 = ((XmlNode)htmlTableElement).FirstChild;
while (val3 != null)
{
string text = val3.LocalName.ToLowerInvariant();
if (text == "tbody" || text == "thead" || text == "tfoot")
{
XmlElement val4 = ((XmlNode)val2).OwnerDocument.CreateElement((string)null, "TableRowGroup", XamlNamespace);
((XmlNode)val2).AppendChild((XmlNode)(object)val4);
sourceContext.Add((XmlElement)val3);
Hashtable elementProperties2 = GetElementProperties((XmlElement)val3, elementProperties, out localProperties, stylesheet, sourceContext);
AddTableRowsToTableBody(val4, val3.FirstChild, elementProperties2, arrayList, stylesheet, sourceContext);
if (((XmlNode)val4).HasChildNodes)
{
((XmlNode)val2).AppendChild((XmlNode)(object)val4);
}
Guard.Assert(sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == val3, (string)null, "sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == htmlChildNode");
sourceContext.RemoveAt(sourceContext.Count - 1);
val3 = val3.NextSibling;
}
else if (text == "tr")
{
XmlElement val5 = ((XmlNode)val2).OwnerDocument.CreateElement((string)null, "TableRowGroup", XamlNamespace);
val3 = AddTableRowsToTableBody(val5, val3, elementProperties, arrayList, stylesheet, sourceContext);
if (((XmlNode)val5).HasChildNodes)
{
((XmlNode)val2).AppendChild((XmlNode)(object)val5);
}
}
else
{
val3 = val3.NextSibling;
}
}
if (((XmlNode)val2).HasChildNodes)
{
((XmlNode)xamlParentElement).AppendChild((XmlNode)(object)val2);
}
}
private static XmlElement GetCellFromSingleCellTable(XmlElement htmlTableElement)
{
//IL_01af: Unknown result type (might be due to invalid IL or missing references)
//IL_01b5: Expected O, but got Unknown
//IL_00f3: Unknown result type (might be due to invalid IL or missing references)
//IL_00f9: Expected O, but got Unknown
XmlElement val = null;
for (XmlNode val2 = ((XmlNode)htmlTableElement).FirstChild; val2 != null; val2 = val2.NextSibling)
{
string text = val2.LocalName.ToLowerInvariant();
if (text == "tbody" || text == "thead" || text == "tfoot")
{
if (val != null)
{
return null;
}
for (XmlNode val3 = val2.FirstChild; val3 != null; val3 = val3.NextSibling)
{
if (val3.LocalName.ToLowerInvariant() == "tr")
{
if (val != null)
{
return null;
}
for (XmlNode val4 = val3.FirstChild; val4 != null; val4 = val4.NextSibling)
{
string text2 = val4.LocalName.ToLowerInvariant();
if (text2 == "td" || text2 == "th")
{
if (val != null)
{
return null;
}
val = (XmlElement)val4;
}
}
}
}
}
else if (val2.LocalName.ToLowerInvariant() == "tr")
{
if (val != null)
{
return null;
}
for (XmlNode val5 = val2.FirstChild; val5 != null; val5 = val5.NextSibling)
{
string text3 = val5.LocalName.ToLowerInvariant();
if (text3 == "td" || text3 == "th")
{
if (val != null)
{
return null;
}
val = (XmlElement)val5;
}
}
}
}
return val;
}
private static void AddColumnInformation(XmlElement htmlTableElement, XmlElement xamlTableElement, ArrayList columnStartsAllRows, Hashtable currentProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
//IL_00bc: Expected O, but got Unknown
//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
//IL_00ef: Expected O, but got Unknown
if (columnStartsAllRows != null)
{
for (int i = 0; i < columnStartsAllRows.Count - 1; i++)
{
XmlElement val = ((XmlNode)xamlTableElement).OwnerDocument.CreateElement((string)null, "TableColumn", XamlNamespace);
val.SetAttribute("Width", ((double)columnStartsAllRows[i + 1] - (double)columnStartsAllRows[i]).ToString(CultureInfo.InvariantCulture));
((XmlNode)xamlTableElement).AppendChild((XmlNode)(object)val);
}
return;
}
for (XmlNode val2 = ((XmlNode)htmlTableElement).FirstChild; val2 != null; val2 = val2.NextSibling)
{
if (val2.LocalName.ToLowerInvariant() == "colgroup")
{
AddTableColumnGroup(xamlTableElement, (XmlElement)val2, currentProperties, stylesheet, sourceContext);
}
else if (val2.LocalName.ToLowerInvariant() == "col")
{
AddTableColumn(xamlTableElement, (XmlElement)val2, currentProperties, stylesheet, sourceContext);
}
else if (val2 is XmlElement)
{
break;
}
}
}
private static void AddTableColumnGroup(XmlElement xamlTableElement, XmlElement htmlColgroupElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_003f: Unknown result type (might be due to invalid IL or missing references)
//IL_004d: Expected O, but got Unknown
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlColgroupElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
for (XmlNode val = ((XmlNode)htmlColgroupElement).FirstChild; val != null; val = val.NextSibling)
{
if (val is XmlElement && val.LocalName.ToLowerInvariant() == "col")
{
AddTableColumn(xamlTableElement, (XmlElement)val, elementProperties, stylesheet, sourceContext);
}
}
}
private static void AddTableColumn(XmlElement xamlTableElement, XmlElement htmlColElement, Hashtable inheritedProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties(htmlColElement, inheritedProperties, out localProperties, stylesheet, sourceContext);
XmlElement val = ((XmlNode)xamlTableElement).OwnerDocument.CreateElement((string)null, "TableColumn", XamlNamespace);
((XmlNode)xamlTableElement).AppendChild((XmlNode)(object)val);
}
private XmlNode AddTableRowsToTableBody(XmlElement xamlTableBodyElement, XmlNode htmlTrStartNode, Hashtable currentProperties, ArrayList columnStarts, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_008e: Unknown result type (might be due to invalid IL or missing references)
//IL_0098: Expected O, but got Unknown
//IL_009a: Unknown result type (might be due to invalid IL or missing references)
//IL_00ab: Expected O, but got Unknown
Guard.Assert(((XmlNode)xamlTableBodyElement).LocalName == "TableRowGroup", (string)null, "xamlTableBodyElement.LocalName == XamlTableRowGroup");
Guard.Assert(currentProperties != null, (string)null, "currentProperties != null");
XmlNode val = htmlTrStartNode;
ArrayList activeRowSpans = null;
if (columnStarts != null)
{
activeRowSpans = new ArrayList();
InitializeActiveRowSpans(activeRowSpans, columnStarts.Count);
}
while (val != null && val.LocalName.ToLowerInvariant() != "tbody")
{
if (val.LocalName.ToLowerInvariant() == "tr")
{
XmlElement val2 = ((XmlNode)xamlTableBodyElement).OwnerDocument.CreateElement((string)null, "TableRow", XamlNamespace);
sourceContext.Add((XmlElement)val);
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties((XmlElement)val, currentProperties, out localProperties, stylesheet, sourceContext);
AddTableCellsToTableRow(val2, val.FirstChild, elementProperties, columnStarts, activeRowSpans, stylesheet, sourceContext);
if (((XmlNode)val2).HasChildNodes)
{
((XmlNode)xamlTableBodyElement).AppendChild((XmlNode)(object)val2);
}
Guard.Assert(sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == val, (string)null, "sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == htmlChildNode");
sourceContext.RemoveAt(sourceContext.Count - 1);
val = val.NextSibling;
}
else if (val.LocalName.ToLowerInvariant() == "td")
{
XmlElement val3 = ((XmlNode)xamlTableBodyElement).OwnerDocument.CreateElement((string)null, "TableRow", XamlNamespace);
Guard.Assert(columnStarts == null, (string)null, "columnStarts == null");
val = AddTableCellsToTableRow(val3, val, currentProperties, columnStarts, activeRowSpans, stylesheet, sourceContext);
if (((XmlNode)val3).HasChildNodes)
{
((XmlNode)xamlTableBodyElement).AppendChild((XmlNode)(object)val3);
}
}
else
{
val = val.NextSibling;
}
}
return val;
}
private XmlNode AddTableCellsToTableRow(XmlElement xamlTableRowElement, XmlNode htmlTdStartNode, Hashtable currentProperties, ArrayList columnStarts, ArrayList activeRowSpans, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00ca: Expected O, but got Unknown
//IL_00cc: Unknown result type (might be due to invalid IL or missing references)
//IL_00dd: Expected O, but got Unknown
//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
//IL_00ec: Expected O, but got Unknown
//IL_0194: Unknown result type (might be due to invalid IL or missing references)
//IL_019e: Expected O, but got Unknown
//IL_01aa: Unknown result type (might be due to invalid IL or missing references)
//IL_01b4: Expected O, but got Unknown
Guard.Assert(((XmlNode)xamlTableRowElement).LocalName == "TableRow", (string)null, "xamlTableRowElement.LocalName == XamlTableRow");
Guard.Assert(currentProperties != null, (string)null, "currentProperties != null");
if (columnStarts != null)
{
Guard.Assert(activeRowSpans.Count == columnStarts.Count, (string)null, "activeRowSpans.Count == columnStarts.Count");
}
XmlNode val = htmlTdStartNode;
double num = 0.0;
int i = 0;
int num2 = 0;
while (val != null && val.LocalName.ToLowerInvariant() != "tr" && val.LocalName.ToLowerInvariant() != "tbody" && val.LocalName.ToLowerInvariant() != "thead" && val.LocalName.ToLowerInvariant() != "tfoot")
{
if (val.LocalName.ToLowerInvariant() == "td" || val.LocalName.ToLowerInvariant() == "th")
{
XmlElement val2 = ((XmlNode)xamlTableRowElement).OwnerDocument.CreateElement((string)null, "TableCell", XamlNamespace);
sourceContext.Add((XmlElement)val);
Hashtable localProperties;
Hashtable elementProperties = GetElementProperties((XmlElement)val, currentProperties, out localProperties, stylesheet, sourceContext);
ApplyPropertiesToTableCellElement((XmlElement)val, val2);
if (columnStarts != null)
{
Guard.Assert(i < columnStarts.Count - 1, (string)null, "columnIndex < columnStarts.Count - 1");
for (; i < activeRowSpans.Count && (int)activeRowSpans[i] > 0; i++)
{
activeRowSpans[i] = (int)activeRowSpans[i] - 1;
Guard.Assert((int)activeRowSpans[i] >= 0, (string)null, "(int)activeRowSpans[columnIndex] >= 0");
}
Guard.Assert(i < columnStarts.Count - 1, (string)null, "columnIndex < columnStarts.Count - 1");
num = GetColumnWidth((XmlElement)val);
num2 = CalculateColumnSpan(i, num, columnStarts);
int rowSpan = GetRowSpan((XmlElement)val);
Guard.Assert(num2 > 0, (string)null, "columnSpan > 0");
Guard.Assert(i + num2 < columnStarts.Count, (string)null, "columnIndex + columnSpan < columnStarts.Count");
val2.SetAttribute("ColumnSpan", num2.ToString());
for (int j = i; j < i + num2; j++)
{
Guard.Assert(j < activeRowSpans.Count, (string)null, "spannedColumnIndex < activeRowSpans.Count");
activeRowSpans[j] = rowSpan - 1;
Guard.Assert((int)activeRowSpans[j] >= 0, (string)null, "(int)activeRowSpans[spannedColumnIndex] >= 0");
}
i += num2;
}
AddDataToTableCell(val2, val.FirstChild, elementProperties, stylesheet, sourceContext);
if (((XmlNode)val2).HasChildNodes)
{
((XmlNode)xamlTableRowElement).AppendChild((XmlNode)(object)val2);
}
Guard.Assert(sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == val, (string)null, "sourceContext.Count > 0 && sourceContext[sourceContext.Count - 1] == htmlChildNode");
sourceContext.RemoveAt(sourceContext.Count - 1);
val = val.NextSibling;
}
else
{
val = val.NextSibling;
}
}
return val;
}
private void AddDataToTableCell(XmlElement xamlTableCellElement, XmlNode htmlDataStartNode, Hashtable currentProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
Guard.Assert(((XmlNode)xamlTableCellElement).LocalName == "TableCell", (string)null, "xamlTableCellElement.LocalName == XamlTableCell");
Guard.Assert(currentProperties != null, (string)null, "currentProperties != null");
XmlNode val;
for (val = htmlDataStartNode; val != null; val = ((val != null) ? val.NextSibling : null))
{
val = AddBlock(xamlTableCellElement, val, currentProperties, stylesheet, sourceContext);
}
}
private static ArrayList AnalyzeTableStructure(XmlElement htmlTableElement, CssStylesheet stylesheet)
{
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00e7: Expected O, but got Unknown
//IL_0117: Unknown result type (might be due to invalid IL or missing references)
//IL_0126: Expected O, but got Unknown
Guard.Assert(((XmlNode)htmlTableElement).LocalName.ToLowerInvariant() == "table", (string)null, "htmlTableElement.LocalName.ToLowerInvariant() == \"table\"");
if (!((XmlNode)htmlTableElement).HasChildNodes)
{
return null;
}
bool flag = true;
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
Guard.Assert(arrayList.Count == arrayList2.Count, (string)null, "columnStarts.Count == activeRowSpans.Count");
XmlNode val = ((XmlNode)htmlTableElement).FirstChild;
double num = 0.0;
while (val != null && flag)
{
Guard.Assert(arrayList.Count == arrayList2.Count, (string)null, "columnStarts.Count == activeRowSpans.Count");
switch (val.LocalName.ToLowerInvariant())
{
case "tbody":
{
double num3 = AnalyzeTbodyStructure((XmlElement)val, arrayList, arrayList2, num, stylesheet);
if (num3 > num)
{
num = num3;
}
else if (num3 == 0.0)
{
flag = false;
}
break;
}
case "tr":
{
double num2 = AnalyzeTrStructure((XmlElement)val, arrayList, arrayList2, num, stylesheet);
if (num2 > num)
{
num = num2;
}
else if (num2 == 0.0)
{
flag = false;
}
break;
}
case "td":
flag = false;
break;
}
val = val.NextSibling;
}
if (flag)
{
arrayList.Add(num);
VerifyColumnStartsAscendingOrder(arrayList);
}
else
{
arrayList = null;
}
return arrayList;
}
private static double AnalyzeTbodyStructure(XmlElement htmlTbodyElement, ArrayList columnStarts, ArrayList activeRowSpans, double tableWidth, CssStylesheet stylesheet)
{
//IL_0095: Unknown result type (might be due to invalid IL or missing references)
//IL_00a4: Expected O, but got Unknown
Guard.Assert(((XmlNode)htmlTbodyElement).LocalName.ToLowerInvariant() == "tbody", (string)null, "htmlTbodyElement.LocalName.ToLowerInvariant() == \"tbody\"");
Guard.Assert(columnStarts != null, (string)null, "columnStarts != null");
double num = 0.0;
bool flag = true;
if (!((XmlNode)htmlTbodyElement).HasChildNodes)
{
return num;
}
ClearActiveRowSpans(activeRowSpans);
XmlNode val = ((XmlNode)htmlTbodyElement).FirstChild;
while (val != null && flag)
{
string text = val.LocalName.ToLowerInvariant();
string text2 = text;
if (!(text2 == "tr"))
{
if (text2 == "td")
{
flag = false;
}
}
else
{
double num2 = AnalyzeTrStructure((XmlElement)val, columnStarts, activeRowSpans, num, stylesheet);
if (num2 > num)
{
num = num2;
}
}
val = val.NextSibling;
}
ClearActiveRowSpans(activeRowSpans);
return flag ? num : 0.0;
}
private static double AnalyzeTrStructure(XmlElement htmlTrElement, ArrayList columnStarts, ArrayList activeRowSpans, double tableWidth, CssStylesheet stylesheet)
{
//IL_024a: Unknown result type (might be due to invalid IL or missing references)
//IL_0254: Expected O, but got Unknown
//IL_026f: Unknown result type (might be due to invalid IL or missing references)
//IL_0279: Expected O, but got Unknown
Guard.Assert(((XmlNode)htmlTrElement).LocalName.ToLowerInvariant() == "tr", (string)null, "htmlTrElement.LocalName.ToLowerInvariant() == \"tr\"");
Guard.Assert(columnStarts != null, (string)null, "columnStarts != null");
Guard.Assert(activeRowSpans != null, (string)null, "activeRowSpans != null");
Guard.Assert(columnStarts.Count == activeRowSpans.Count, (string)null, "columnStarts.Count == activeRowSpans.Count");
if (!((XmlNode)htmlTrElement).HasChildNodes)
{
return 0.0;
}
bool flag = true;
double num = 0.0;
XmlNode val = ((XmlNode)htmlTrElement).FirstChild;
int num2 = 0;
double num3 = 0.0;
if (num2 < activeRowSpans.Count)
{
Guard.Assert((double)columnStarts[num2] >= num, (string)null, "(double)columnStarts[columnIndex] >= columnStart");
if ((double)columnStarts[num2] == num)
{
while (num2 < activeRowSpans.Count && (int)activeRowSpans[num2] > 0)
{
activeRowSpans[num2] = (int)activeRowSpans[num2] - 1;
Guard.Assert((int)activeRowSpans[num2] >= 0, (string)null, "(int)activeRowSpans[columnIndex] >= 0");
num2++;
num = (double)columnStarts[num2];
}
}
}
while (val != null && flag)
{
Guard.Assert(columnStarts.Count == activeRowSpans.Count, (string)null, "columnStarts.Count == activeRowSpans.Count");
VerifyColumnStartsAscendingOrder(columnStarts);
string text = val.LocalName.ToLowerInvariant();
string text2 = text;
if (text2 == "td")
{
Guard.Assert(num2 <= columnStarts.Count, (string)null, "columnIndex <= columnStarts.Count");
if (num2 < columnStarts.Count)
{
Guard.Assert(num <= (double)columnStarts[num2], (string)null, "columnStart <= (double)columnStarts[columnIndex]");
if (num < (double)columnStarts[num2])
{
columnStarts.Insert(num2, num);
activeRowSpans.Insert(num2, 0);
}
}
else
{
columnStarts.Add(num);
activeRowSpans.Add(0);
}
double columnWidth = GetColumnWidth((XmlElement)val);
if (columnWidth != -1.0)
{
int rowSpan = GetRowSpan((XmlElement)val);
int nextColumnIndex = GetNextColumnIndex(num2, columnWidth, columnStarts, activeRowSpans);
if (nextColumnIndex != -1)
{
Guard.Assert(nextColumnIndex <= columnStarts.Count, (string)null, "nextColumnIndex <= columnStarts.Count");
for (int i = num2; i < nextColumnIndex; i++)
{
activeRowSpans[i] = rowSpan - 1;
Guard.Assert((int)activeRowSpans[i] >= 0, (string)null, "(int)activeRowSpans[spannedColumnIndex] >= 0");
}
num2 = nextColumnIndex;
num += columnWidth;
if (num2 < activeRowSpans.Count)
{
Guard.Assert((double)columnStarts[num2] >= num, (string)null, "(double)columnStarts[columnIndex] >= columnStart");
if ((double)columnStarts[num2] == num)
{
while (num2 < activeRowSpans.Count && (int)activeRowSpans[num2] > 0)
{
activeRowSpans[num2] = (int)activeRowSpans[num2] - 1;
Guard.Assert((int)activeRowSpans[num2] >= 0, (string)null, "(int)activeRowSpans[columnIndex] >= 0");
num2++;
num = (double)columnStarts[num2];
}
}
}
}
else
{
flag = false;
}
}
else
{
flag = false;
}
}
val = val.NextSibling;
}
return flag ? num : 0.0;
}
private static int GetRowSpan(XmlElement htmlTdElement)
{
string attribute = GetAttribute(htmlTdElement, "rowspan");
if (attribute != null)
{
if (!int.TryParse(attribute, out var result))
{
return 1;
}
return result;
}
return 1;
}
private static int GetNextColumnIndex(int columnIndex, double columnWidth, ArrayList columnStarts, ArrayList activeRowSpans)
{
Guard.Assert(columnStarts != null, (string)null, "columnStarts != null");
Guard.Assert(0 <= columnIndex && columnIndex <= columnStarts.Count, (string)null, "0 <= columnIndex && columnIndex <= columnStarts.Count");
Guard.Assert(columnWidth > 0.0, (string)null, "columnWidth > 0");
double num = (double)columnStarts[columnIndex];
int num2 = columnIndex + 1;
while (num2 < columnStarts.Count && (double)columnStarts[num2] < num + columnWidth && num2 != -1)
{
num2 = (((int)activeRowSpans[num2] <= 0) ? (num2 + 1) : (-1));
}
return num2;
}
private static void ClearActiveRowSpans(ArrayList activeRowSpans)
{
for (int i = 0; i < activeRowSpans.Count; i++)
{
activeRowSpans[i] = 0;
}
}
private static void InitializeActiveRowSpans(ArrayList activeRowSpans, int count)
{
for (int i = 0; i < count; i++)
{
activeRowSpans.Add(0);
}
}
private static double GetNextColumnStart(XmlElement htmlTdElement, double columnStart)
{
Guard.Assert(((XmlNode)htmlTdElement).LocalName.ToLowerInvariant() == "td" || ((XmlNode)htmlTdElement).LocalName.ToLowerInvariant() == "th", (string)null, "htmlTdElement.LocalName.ToLowerInvariant() == \"td\" || htmlTdElement.LocalName.ToLowerInvariant() == \"th\"");
Guard.Assert(columnStart >= 0.0, (string)null, "columnStart >= 0");
double num = -1.0;
double columnWidth = GetColumnWidth(htmlTdElement);
if (columnWidth == -1.0)
{
return -1.0;
}
return columnStart + columnWidth;
}
private static double GetColumnWidth(XmlElement htmlTdElement)
{
string lengthAsString = GetAttribute(htmlTdElement, "width") ?? GetCssAttribute(GetAttribute(htmlTdElement, "style"), "width");
if (!TryGetLengthValue(lengthAsString, out var length) || length == 0.0)
{
return -1.0;
}
return length;
}
private static int CalculateColumnSpan(int columnIndex, double columnWidth, ArrayList columnStarts)
{
Guard.Assert(columnStarts != null, (string)null, "columnStarts != null");
Guard.Assert(columnIndex < columnStarts.Count - 1, (string)null, "columnIndex < columnStarts.Count - 1");
Guard.Assert((double)columnStarts[columnIndex] >= 0.0, (string)null, "(double)columnStarts[columnIndex] >= 0");
Guard.Assert(columnWidth > 0.0, (string)null, "columnWidth > 0");
int num = columnIndex;
double num2 = 0.0;
double num3 = 0.0;
while (num2 < columnWidth && num < columnStarts.Count - 1)
{
num3 = (double)columnStarts[num + 1] - (double)columnStarts[num];
Guard.Assert(num3 > 0.0, (string)null, "subColumnWidth > 0");
num2 += num3;
num++;
}
int num4 = num - columnIndex;
Guard.Assert(num4 > 0, (string)null, "columnSpan > 0");
return num4;
}
private static void VerifyColumnStartsAscendingOrder(ArrayList columnStarts)
{
Guard.Assert(columnStarts != null, (string)null, "columnStarts != null");
double num = -0.01;
foreach (object columnStart in columnStarts)
{
Guard.Assert(num < (double)columnStart, (string)null, "columnStart < (double)t");
num = (double)columnStart;
}
}
private static void ApplyLocalProperties(XmlElement xamlElement, Hashtable localProperties, bool isBlock)
{
//IL_095d: Unknown result type (might be due to invalid IL or missing references)
//IL_097b: Unknown result type (might be due to invalid IL or missing references)
//IL_0d9d: Unknown result type (might be due to invalid IL or missing references)
//IL_0db1: Unknown result type (might be due to invalid IL or missing references)
//IL_0dc5: Unknown result type (might be due to invalid IL or missing references)
//IL_0dd9: Unknown result type (might be due to invalid IL or missing references)
bool flag = false;
string top = "0";
string bottom = "0";
string left = "0";
string right = "0";
bool flag2 = false;
string top2 = "0";
string bottom2 = "0";
string left2 = "0";
string right2 = "0";
string text = null;
bool flag3 = false;
string top3 = "0";
string bottom3 = "0";
string left3 = "0";
string right3 = "0";
IDictionaryEnumerator enumerator = localProperties.GetEnumerator();
while (enumerator.MoveNext())
{
switch ((string)enumerator.Key)
{
case "font-family":
xamlElement.SetAttribute("FontFamily", (string)enumerator.Value);
break;
case "font-style":
xamlElement.SetAttribute("FontStyle", (string)enumerator.Value);
break;
case "font-weight":
SetFontWeight(xamlElement, (string)enumerator.Value);
break;
case "font-size":
SetFontSize(xamlElement, (string)enumerator.Value);
break;
case "color":
SetPropertyValue(xamlElement, TextElement.ForegroundProperty, (string)enumerator.Value);
break;
case "line-height":
xamlElement.SetAttribute("LineHeight", (string)enumerator.Value);
break;
case "background-color":
SetPropertyValue(xamlElement, TextElement.BackgroundProperty, (string)enumerator.Value);
break;
case "text-decoration-underline":
if (!isBlock && (string)enumerator.Value == "true")
{
xamlElement.SetAttribute("TextDecorations", "Underline");
}
break;
case "text-decoration-line-through":
if (!isBlock && (string)enumerator.Value == "true")
{
xamlElement.SetAttribute("TextDecorations", "Strikethrough");
}
break;
case "text-decoration-none":
case "text-decoration-overline":
case "text-decoration-blink":
if (isBlock)
{
}
break;
case "text-indent":
if (isBlock)
{
xamlElement.SetAttribute("TextIndent", (string)enumerator.Value);
}
break;
case "text-align":
if (isBlock)
{
xamlElement.SetAttribute("TextAlignment", (string)enumerator.Value);
}
break;
case "vertical-align":
{
if (isBlock)
{
break;
}
string text3 = (string)enumerator.Value;
string text4 = text3;
BaselineAlignment val2;
if (!(text4 == "sub"))
{
if (text4 == "super")
{
val2 = (BaselineAlignment)7;
xamlElement.SetAttribute("BaselineAlignment", ((object)(BaselineAlignment)(ref val2)).ToString());
}
}
else
{
val2 = (BaselineAlignment)6;
xamlElement.SetAttribute("BaselineAlignment", ((object)(BaselineAlignment)(ref val2)).ToString());
}
break;
}
case "width":
xamlElement.SetAttribute("Width", (string)enumerator.Value);
break;
case "height":
xamlElement.SetAttribute("Height", (string)enumerator.Value);
break;
case "margin-top":
flag = true;
top = (string)enumerator.Value;
break;
case "margin-right":
flag = true;
right = (string)enumerator.Value;
break;
case "margin-bottom":
flag = true;
bottom = (string)enumerator.Value;
break;
case "margin-left":
flag = true;
left = (string)enumerator.Value;
break;
case "padding-top":
flag2 = true;
top2 = (string)enumerator.Value;
break;
case "padding-right":
flag2 = true;
right2 = (string)enumerator.Value;
break;
case "padding-bottom":
flag2 = true;
bottom2 = (string)enumerator.Value;
break;
case "padding-left":
flag2 = true;
left2 = (string)enumerator.Value;
break;
case "border-color-top":
text = (string)enumerator.Value;
break;
case "border-color-right":
text = (string)enumerator.Value;
break;
case "border-color-bottom":
text = (string)enumerator.Value;
break;
case "border-color-left":
text = (string)enumerator.Value;
break;
case "border-width-top":
flag3 = true;
top3 = (string)enumerator.Value;
break;
case "border-width-right":
flag3 = true;
right3 = (string)enumerator.Value;
break;
case "border-width-bottom":
flag3 = true;
bottom3 = (string)enumerator.Value;
break;
case "border-width-left":
flag3 = true;
left3 = (string)enumerator.Value;
break;
case "list-style-type":
if (((XmlNode)xamlElement).LocalName == "List")
{
xamlElement.SetAttribute("MarkerStyle", ((string)enumerator.Value).ToLowerInvariant() switch
{
"disc" => "Disc",
"circle" => "Circle",
"none" => "None",
"square" => "Square",
"box" => "Box",
"lower-latin" => "LowerLatin",
"upper-latin" => "UpperLatin",
"lower-roman" => "LowerRoman",
"upper-roman" => "UpperRoman",
"decimal" => "Decimal",
_ => "Disc",
});
}
break;
case "float":
case "clear":
if (!isBlock)
{
}
break;
case "object-fit":
{
Stretch val;
string text2;
switch ((string)enumerator.Value)
{
case "contain":
case "scale-down":
val = (Stretch)2;
text2 = ((object)(Stretch)(ref val)).ToString();
break;
case "cover":
val = (Stretch)3;
text2 = ((object)(Stretch)(ref val)).ToString();
break;
case "fill":
val = (Stretch)1;
text2 = ((object)(Stretch)(ref val)).ToString();
break;
default:
val = (Stretch)0;
text2 = ((object)(Stretch)(ref val)).ToString();
break;
}
xamlElement.SetAttribute("Stretch", text2);
break;
}
}
}
if (isBlock)
{
if (flag)
{
ComposeThicknessProperty(xamlElement, "Margin", left, right, top, bottom);
}
if (flag2)
{
ComposeThicknessProperty(xamlElement, "Padding", left2, right2, top2, bottom2);
}
if (text != null)
{
xamlElement.SetAttribute("BorderBrush", text);
}
if (flag3)
{
ComposeThicknessProperty(xamlElement, "BorderThickness", left3, right3, top3, bottom3);
}
}
}
private static void SetFontWeight(XmlElement xamlElement, string value)
{
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
if (int.TryParse(value, out var result))
{
FontWeight val = FontWeight.FromOpenTypeWeight(result);
xamlElement.SetAttribute("FontWeight", ((object)(FontWeight)(ref val)).ToString());
}
else
{
xamlElement.SetAttribute("FontWeight", value);
}
}
private static void SetFontSize(XmlElement xamlElement, string value)
{
string text = value switch
{
"xx-small" => "10",
"x-small" => "12",
"small" => "14",
"medium" => "16",
"large" => "18",
"x-large" => "20",
"xx-large" => "28",
"larger" => 1.2048192771084338.ToString().Replace(',', '.') + "em",
"smaller" => "0.83em",
_ => value,
};
string text2 = new string(text.TakeWhile((char c) => char.IsDigit(c) || c == '.').ToArray());
string text3 = text.Substring(text2.Length).Trim();
string text4 = text3;
string text5 = text4;
if (text5 == "em")
{
xamlElement.SetAttribute(TextElement.FontSizeProperty.Name, "{Binding FontSize, RelativeSource={RelativeSource AncestorType={x:Type TextElement}}, Converter={visuals:MultiplierConverter Factor=" + text2 + "}}");
}
else
{
xamlElement.SetAttribute(TextElement.FontSizeProperty.Name, text2);
}
}
private static void ComposeThicknessProperty(XmlElement xamlElement, string propertyName, string left, string right, string top, string bottom)
{
if (left[0] == '0' || left[0] == '-')
{
left = "0";
}
if (right[0] == '0' || right[0] == '-')
{
right = "0";
}
if (top[0] == '0' || top[0] == '-')
{
top = "0";
}
if (bottom[0] == '0' || bottom[0] == '-')
{
bottom = "0";
}
string text = ((!(left == right) || !(top == bottom)) ? (left + "," + top + "," + right + "," + bottom) : ((!(left == top)) ? (left + "," + top) : left));
xamlElement.SetAttribute(propertyName, text);
}
private static void SetPropertyValue(XmlElement xamlElement, DependencyProperty property, string stringValue)
{
TypeConverter converter = TypeDescriptor.GetConverter(property.PropertyType);
try
{
object obj = converter.ConvertFromInvariantString(stringValue);
if (obj != null)
{
xamlElement.SetAttribute(property.Name, stringValue);
}
}
catch (Exception)
{
}
}
private static Hashtable GetElementProperties(XmlElement htmlElement, Hashtable inheritedProperties, out Hashtable localProperties, CssStylesheet stylesheet, List<XmlElement> sourceContext)
{
Hashtable hashtable = new Hashtable();
IDictionaryEnumerator enumerator = inheritedProperties.GetEnumerator();
while (enumerator.MoveNext())
{
hashtable[enumerator.Key] = enumerator.Value;
}
string text = ((XmlNode)htmlElement).LocalName.ToLowerInvariant();
string namespaceURI = ((XmlNode)htmlElement).NamespaceURI;
localProperties = new Hashtable();
switch (text)
{
case "i":
case "italic":
case "em":
case "cite":
case "var":
case "dfn":
localProperties["font-style"] = "italic";
break;
case "b":
case "bold":
case "strong":
localProperties["font-weight"] = "bold";
break;
case "u":
case "underline":
case "ins":
localProperties["text-decoration-underline"] = "true";
break;
case "s":
case "strike":
case "del":
localProperties["text-decoration-line-through"] = "true";
break;
case "font":
{
string attribute2 = GetAttribute(htmlElement, "face");
if (attribute2 != null)
{
localProperties["font-family"] = attribute2;
}
attribute2 = GetAttribute(htmlElement, "size");
if (attribute2 != null)
{
double num = double.Parse(attribute2) * 4.0;
if (num < 1.0)
{
num = 1.0;
}
else if (num > 1000.0)
{
num = 1000.0;
}
localProperties["font-size"] = num.ToString(CultureInfo.InvariantCulture);
}
attribute2 = GetAttribute(htmlElement, "color");
if (attribute2 != null)
{
localProperties["color"] = attribute2;
}
break;
}
case "samp":
localProperties["font-family"] = "Courier New";
localProperties["font-size"] = "10";
localProperties["text-align"] = "Left";
break;
case "sub":
localProperties["font-size"] = "smaller";
localProperties["vertical-align"] = "sub";
break;
case "sup":
localProperties["font-size"] = "smaller";
localProperties["vertical-align"] = "super";
break;
case "pre":
localProperties["font-family"] = "Courier New";
localProperties["text-align"] = "Left";
break;
case "blockquote":
localProperties["margin-left"] = "16";
break;
case "h1":
localProperties["font-size"] = "2em";
localProperties["font-weight"] = "Bold";
break;
case "h2":
localProperties["font-size"] = "1.5em";
localProperties["font-weight"] = "Bold";
break;
case "h3":
localProperties["font-size"] = "1.17em";
localProperties["font-weight"] = "Bold";
break;
case "h4":
localProperties["font-size"] = "1.00em";
localProperties["font-weight"] = "Bold";
break;
case "h5":
localProperties["font-size"] = "0.83em";
localProperties["font-weight"] = "Bold";
break;
case "h6":
localProperties["font-size"] = "0.67em";
localProperties["font-weight"] = "Bold";
break;
case "ul":
localProperties["list-style-type"] = "disc";
break;
case "ol":
localProperties["list-style-type"] = "decimal";
break;
case "big":
localProperties["font-size"] = "larger";
break;
case "small":
localProperties["font-size"] = "smaller";
break;
case "img":
{
string attribute = GetAttribute(htmlElement, "width");
if (attribute != null)
{
localProperties["width"] = attribute;
}
attribute = GetAttribute(htmlElement, "height");
if (attribute != null)
{
localProperties["height"] = attribute;
}
localProperties["object-fit"] = "fill";
break;
}
}
HtmlCssParser.GetElementPropertiesFromCssAttributes(htmlElement, text, stylesheet, localProperties, sourceContext);
enumerator = localProperties.GetEnumerator();
while (enumerator.MoveNext())
{
hashtable[enumerator.Key] = enumerator.Value;
}
return hashtable;
}
private static string GetCssAttribute(string cssStyle, string attributeName)
{
if (cssStyle != null)
{
attributeName = attributeName.ToLowerInvariant();
string[] array = cssStyle.Split(new char[1] { ';' });
string[] array2 = array;
foreach (string text in array2)
{
string[] array3 = text.Split(new char[1] { ':' });
if (array3.Length == 2 && array3[0].Trim().ToLowerInvariant() == attributeName)
{
return array3[1].Trim();
}
}
}
return null;
}
private static bool TryGetLengthValue(string lengthAsString, out double length)
{
length = double.NaN;
if (lengthAsString != null)
{
lengthAsString = lengthAsString.Trim().ToLowerInvariant();
if (lengthAsString.EndsWith("pt"))
{
lengthAsString = lengthAsString.Substring(0, lengthAsString.Length - 2);
if (double.TryParse(lengthAsString, out length))
{
length = length * 96.0 / 72.0;
}
else
{
length = double.NaN;
}
}
else if (lengthAsString.EndsWith("px"))
{
lengthAsString = lengthAsString.Substring(0, lengthAsString.Length - 2);
if (!double.TryParse(lengthAsString, out length))
{
length = double.NaN;
}
}
else if (!double.TryParse(lengthAsString, out length))
{
length = double.NaN;
}
}
return !double.IsNaN(length);
}
private static string GetColorValue(string colorValue)
{
return colorValue;
}
private static void ApplyPropertiesToTableCellElement(XmlElement htmlChildNode, XmlElement xamlTableCellElement)
{
Guard.Assert(((XmlNode)htmlChildNode).LocalName.ToLowerInvariant() == "td" || ((XmlNode)htmlChildNode).LocalName.ToLowerInvariant() == "th", (string)null, "htmlChildNode.LocalName.ToLowerInvariant() == \"td\" || htmlChildNode.LocalName.ToLowerInvariant() == \"th\"");
Guard.Assert(((XmlNode)xamlTableCellElement).LocalName == "TableCell", (string)null, "xamlTableCellElement.LocalName == XamlTableCell");
xamlTableCellElement.SetAttribute("BorderThickness", "1,1,1,1");
xamlTableCellElement.SetAttribute("BorderBrush", "Black");
string attribute = GetAttribute(htmlChildNode, "rowspan");
if (attribute != null)
{
xamlTableCellElement.SetAttribute("RowSpan", attribute);
}
}
}
internal enum HtmlTokenType
{
OpeningTagStart,
ClosingTagStart,
TagEnd,
EmptyTagEnd,
EqualSign,
Name,
Atom,
Text,
Comment,
Eof
}
public interface IThemeManager
{
ThemeName Theme { get; }
ThemeName SystemTheme { get; }
ThemeSource Source { get; }
event ThemeChangedDelegate ThemeChanged;
event ThemeChangedDelegate SystemThemeChanged;
void SetUserTheme(ThemeName theme);
void ResetUserTheme();
}
public interface IThemeManagerDataStorage
{
ThemeName? UserTheme { get; set; }
}
public sealed class ThemeChangedEventArgs
{
public ThemeName NewTheme { get; }
public ThemeName OldTheme { get; }
public ThemeChangedEventArgs(ThemeName oldTheme, ThemeName newTheme)
{
OldTheme = oldTheme;
NewTheme = newTheme;
}
}
public enum ThemeName
{
Light,
Dark
}
public static class ThemeRegistryConstants
{
public const string ThemeRegPath = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
public const string ThemeSubkey = "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
public const string ThemeRegValue = "AppsUseLightTheme";
}
public enum ThemeSource
{
System,
User
}
internal sealed class ThemeManager : IThemeManager, IDisposable
{
private readonly IRegistry _registry;
private readonly IRegistryTracker _registryTracker;
private readonly IThemeManagerDataStorage _storage;
private readonly IWinRTUISettings _winRTUISettings;
private readonly ISystemEvents _systemEvents;
private readonly ComponentTracer _tracer;
private const string ThemeRegPath = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
private const string ThemeRegValue = "AppsUseLightTheme";
private const string ThemeSubkey = "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
private const RegistryHive ThemeHive = RegistryHive.CurrentUser;
private const RegistryView ThemeView = RegistryView.Default;
private CancellationTokenSource? _cancellationTokenSource;
private Task? _trackingTask;
private ThemeSource _source;
private ThemeName _theme;
private ThemeName _systemTheme;
private bool _isInitialized;
private bool _isTracking;
public ThemeName Theme
{
get
{
return _theme;
}
private set
{
if (_theme != value)
{
ThemeName theme = _theme;
_theme = value;
if (_isInitialized)
{
_tracer.TraceInformation(string.Format("{0} changed from {1} to {2}.", "Theme", theme, value));
this.ThemeChanged?.Invoke(this, new ThemeChangedEventArgs(theme, value));
}
}
}
}
public ThemeName SystemTheme
{
get
{
return _systemTheme;
}
private set
{
if (_systemTheme != value)
{
ThemeName systemTheme = _systemTheme;
_systemTheme = value;
if (_isInitialized)
{
_tracer.TraceInformation(string.Format("{0} changed from {1} to {2}.", "SystemTheme", systemTheme, value));
this.SystemThemeChanged?.Invoke(this, new ThemeChangedEventArgs(systemTheme, value));
}
}
}
}
public ThemeSource Source
{
get
{
return _source;
}
private set
{
if (_source != value)
{
ThemeSource source = _source;
_source = value;
if (_isInitialized)
{
_tracer.TraceInformation(string.Format("{0} changed from {1} to {2}.", "Source", source, value));
}
}
}
}
public event ThemeChangedDelegate? ThemeChanged;
public event ThemeChangedDelegate? SystemThemeChanged;
public ThemeManager(IRegistry registry, IRegistryTracker registryTracker, IThemeManagerDataStorage storage, IWinRTUISettings winRTUISettings, ISystemEvents systemEvents)
{
_registry = Guard.EnsureArgumentIsNotNull<IRegistry>(registry, (string)null, "registry");
_registryTracker = Guard.EnsureArgumentIsNotNull<IRegistryTracker>(registryTracker, (string)null, "registryTracker");
_storage = Guard.EnsureArgumentIsNotNull<IThemeManagerDataStorage>(storage, (string)null, "storage");
_winRTUISettings = Guard.EnsureArgumentIsNotNull<IWinRTUISettings>(winRTUISettings, (string)null, "winRTUISettings");
_systemEvents = Guard.EnsureArgumentIsNotNull<ISystemEvents>(systemEvents, (string)null, "systemEvents");
_tracer = ComponentTracer.Get(UIKitComponentTracers.Theme, (object)this, false);
Initialize();
}
public void ResetUserTheme()
{
_tracer.TraceInformation("User theme reset.");
_storage.UserTheme = null;
Source = ThemeSource.System;
UpdateTheme();
}
public void SetUserTheme(ThemeName theme)
{
_tracer.TraceInformation($"User theme set to {theme}.");
_storage.UserTheme = theme;
Source = ThemeSource.User;
UpdateTheme();
}
void IDisposable.Dispose()
{
StopTrackThemeChanges();
}
private void Initialize()
{
_source = (_storage.UserTheme.HasValue ? ThemeSource.User : ThemeSource.System);
StartTrackThemeChanges();
UpdateTheme();
_isInitialized = true;
_tracer.TraceInformation($"Service initialized. Theme: {Theme}. Source: {Source}.");
}
private void UpdateTheme()
{
UpdateThemeFromUserSource();
UpdateThemeFromSystemSource();
}
private void UpdateThemeFromUserSource()
{
if (Source == ThemeSource.User)
{
ThemeName? userTheme = _storage.UserTheme;
if (!userTheme.HasValue)
{
_tracer.TraceMethodError("User theme is unset in storage. Fallback to system theme.", "UpdateThemeFromUserSource");
ResetUserTheme();
}
else
{
_tracer.TraceInformation($"Theme '{userTheme.Value}' provided from user storage.");
Theme = userTheme.Value;
}
}
}
private void UpdateThemeFromSystemSource()
{
SystemTheme = GetThemeFromSystemSource();
if (Source == ThemeSource.System)
{
Theme = SystemTheme;
}
}
private ThemeName GetThemeFromSystemSource()
{
ThemeName themeName = ThemeName.Light;
bool flag = false;
if (!flag)
{
ThemeName? themeFromWinRT = GetThemeFromWinRT();
if (themeFromWinRT.HasValue)
{
themeName = themeFromWinRT.Value;
_tracer.TraceInformation($"Theme '{themeName}' provided from WinRT.");
flag = true;
}
}
if (!flag)
{
ThemeName? themeFromRegistry = GetThemeFromRegistry();
if (themeFromRegistry.HasValue)
{
themeName = themeFromRegistry.Value;
_tracer.TraceInformation($"Theme '{themeName}' provided from Registry.");
flag = true;
}
}
if (!flag)
{
themeName = GetThemeFromSystemProperties();
_tracer.TraceInformation($"Theme '{themeName}' provided from System Properties.");
}
return themeName;
}
private void StartTrackThemeChanges()
{
if (!_isTracking)
{
_isTracking = true;
if (_winRTUISettings.IsAvailable)
{
StartTrackChangesFromWinRT();
}
else if (GetThemeFromRegistry().HasValue)
{
StartTrackChangesFromRegistry();
}
else
{
StartTrackChangesFromSystemColors();
}
}
}
private void StopTrackThemeChanges()
{
if (_isTracking)
{
StopTrackChangesFromWinRT();
StopTrackChangesFromRegistry();
StopTrackChangesFromSystemColors();
_isTracking = false;
}
}
private void StartTrackChangesFromWinRT()
{
_winRTUISettings.ColorValuesChanged -= OnThemeChangedFromWinRT;
_winRTUISettings.ColorValuesChanged += OnThemeChangedFromWinRT;
_tracer.TraceInformation("Tracking of theme changes from WinRT API started.");
}
private void StopTrackChangesFromWinRT()
{
_winRTUISettings.ColorValuesChanged -= OnThemeChangedFromWinRT;
_tracer.TraceInformation("Tracking of theme changes from WinRT API stopped.");
}
private void StartTrackChangesFromRegistry()
{
_cancellationTokenSource = new CancellationTokenSource();
_trackingTask = _registryTracker.TrackChangesAsync(RegistryHive.CurrentUser, RegistryView.Default, "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", _cancellationTokenSource.Token, (Action)OnThemeChangedFromRegistry);
_tracer.TraceInformation("Tracking of theme changes from registry started.");
}
private void StopTrackChangesFromRegistry()
{
if (_cancellationTokenSource != null)
{
_cancellationTokenSource.Cancel();
if (_trackingTask != null)
{
CancellationTokenSource cancellationTokenSource = _cancellationTokenSource;
_cancellationTokenSource = null;
_trackingTask.ContinueWith(delegate
{
cancellationTokenSource.Dispose();
});
_trackingTask = null;
}
else
{
_cancellationTokenSource.Dispose();
_cancellationTokenSource = null;
}
}
_tracer.TraceInformation("Tracking of theme changes from registry stopped.");
}
private void StartTrackChangesFromSystemColors()
{
ExecutorExtensions.WhenAvailable((IExecutor)(object)Executers.DispatcherExecutor, (Action)delegate
{
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0018: Expected O, but got Unknown
//IL_0026: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Expected O, but got Unknown
_systemEvents.UserPreferenceChanged -= new UserPreferenceChangedEventHandler(OnThemeChangedFromSystemColors);
_systemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(OnThemeChangedFromSystemColors);
_tracer.TraceInformation("Tracking of theme changes from system colors started.");
});
}
private void StopTrackChangesFromSystemColors()
{
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0018: Expected O, but got Unknown
_systemEvents.UserPreferenceChanged -= new UserPreferenceChangedEventHandler(OnThemeChangedFromSystemColors);
_tracer.TraceInformation("Tracking of theme changes from system colors stopped.");
}
private void OnThemeChangedFromWinRT(object? sender, EventArgs e)
{
UpdateThemeFromSystemSource();
}
private void OnThemeChangedFromRegistry()
{
UpdateThemeFromSystemSource();
}
private void OnThemeChangedFromSystemColors(object? sender, UserPreferenceChangedEventArgs e)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Invalid comparison between Unknown and I4
if ((int)e.Category == 2)
{
UpdateThemeFromSystemSource();
}
}
private ThemeName? GetThemeFromWinRT()
{
//IL_004e: Unknown result type (might be due to invalid IL or missing references)
if (!_winRTUISettings.IsAvailable)
{
return null;
}
Color? colorValue = _winRTUISettings.GetColorValue((WinRTUIColorType)0);
if (!colorValue.HasValue)
{
return null;
}
return IsDarkColor(colorValue.Value) ? ThemeName.Dark : ThemeName.Light;
}
private ThemeName? GetThemeFromRegistry()
{
try
{
object value = _registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "AppsUseLightTheme", (object)null);
return (value == null) ? null : new ThemeName?((Convert.ToInt32(value) != 1) ? ThemeName.Dark : ThemeName.Light);
}
catch (Exception ex)
{
ExceptionExtensions.TraceExceptionSuppressed(ex, (string)null);
_tracer.TraceWarning("Failed to get theme from registry");
return null;
}
}
private ThemeName GetThemeFromSystemProperties()
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
Color windowColor = SystemColors.WindowColor;
return IsDarkColor(windowColor) ? ThemeName.Dark : ThemeName.Light;
}
private static bool IsDarkColor(Color color)
{
return (0.299 * (double)(int)((Color)(ref color)).R + 0.587 * (double)(int)((Color)(ref color)).G + 0.114 * (double)(int)((Color)(ref color)).B) / 255.0 < 0.5;
}
}
internal sealed class ThemeManagerInMemoryDataStorage : IThemeManagerDataStorage
{
public ThemeName? UserTheme { get; set; }
}
public interface IStatisticsSender
{
void SendMenuItemClicked(MenuItem source);
void SendNotificationViewShown(NotificationView source);
void SendDialogShown(CommonDialog source);
}
internal sealed class EmptyStatisticsSender : IStatisticsSender
{
public void SendMenuItemClicked(MenuItem source)
{
}
public void SendNotificationViewShown(NotificationView source)
{
}
public void SendDialogShown(CommonDialog source)
{
}
}
public class PropertyChangeNotifier<TControl, TProperty> : DependencyObject, IDisposable where TControl : DependencyObject
{
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(TProperty), typeof(PropertyChangeNotifier<TControl, TProperty>), (PropertyMetadata)new FrameworkPropertyMetadata((object)default(TProperty), new PropertyChangedCallback(OnValueChanged)));
private readonly WeakReference<TControl> _propertySource;
public TControl? PropertySource
{
get
{
TControl target;
return _propertySource.TryGetTarget(out target) ? target : default(TControl);
}
}
public TProperty? Value
{
get
{
return (TProperty)((DependencyObject)this).GetValue(ValueProperty);
}
set
{
((DependencyObject)this).SetValue(ValueProperty, (object)value);
}
}
public event Action<TControl, TProperty?, TProperty?> ValueChanged = delegate
{
};
public PropertyChangeNotifier(TControl propertySource, string path)
: this(propertySource, new PropertyPath(path, new object[0]))
{
}//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_0013: Expected O, but got Unknown
public PropertyChangeNotifier(TControl propertySource, DependencyProperty property)
: this(propertySource, property.AsPath())
{
}
public PropertyChangeNotifier(TControl propertySource, PropertyPath property)
{
//IL_0053: Unknown result type (might be due to invalid IL or missing references)
//IL_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Expected O, but got Unknown
Guard.ArgumentIsNotNull<TControl>(propertySource, (string)null, "propertySource");
Guard.ArgumentIsNotNull<PropertyPath>(property, (string)null, "property");
_propertySource = new WeakReference<TControl>(propertySource);
Binding val = new Binding
{
Path = property,
Mode = (BindingMode)1,
Source = propertySource
};
BindingOperations.SetBinding((DependencyObject)(object)this, ValueProperty, (BindingBase)(object)val);
}
public void Dispose()
{
BindingOperations.ClearBinding((DependencyObject)(object)this, ValueProperty);
}
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
PropertyChangeNotifier<TControl, TProperty> propertyChangeNotifier = Guard.EnsureArgumentIsInstanceOfType<PropertyChangeNotifier<TControl, TProperty>>((object)d, (string)null, "d");
TControl propertySource = propertyChangeNotifier.PropertySource;
if (propertySource != null)
{
propertyChangeNotifier.ValueChanged(propertySource, (TProperty)((DependencyPropertyChangedEventArgs)(ref e)).OldValue, (TProperty)((DependencyPropertyChangedEventArgs)(ref e)).NewValue);
}
}
}
public sealed class PropertyChangeNotifier : PropertyChangeNotifier<DependencyObject, object>
{
public PropertyChangeNotifier(DependencyObject propertySource, string path)
: this(propertySource, new PropertyPath(path, new object[0]))
{
}//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_0013: Expected O, but got Unknown
public PropertyChangeNotifier(DependencyObject propertySource, DependencyProperty property)
: this(propertySource, property.AsPath())
{
}
public PropertyChangeNotifier(DependencyObject propertySource, PropertyPath property)
: base(propertySource, property)
{
}
}
public class PropertyChangeNotifierSlim<TControl, TProperty> : IDisposable where TControl : FrameworkElement
{
private readonly DependencyPropertyDescriptor _propertyDescriptor;
private readonly DependencyProperty _property;
private readonly TControl _propertySource;
private TProperty? _value;
public TProperty? Value
{
get
{
return _value;
}
private set
{
ref TProperty reference = ref _value;
TProperty val = default(TProperty);
if (val == null)
{
val = reference;
reference = ref val;
if (val == null)
{
goto IL_0043;
}
}
if (reference.Equals(value))
{
return;
}
goto IL_0043;
IL_0043:
TProperty value2 = _value;
TProperty arg = (_value = value);
this.ValueChanged(_propertySource, value2, arg);
}
}
public event Action<TControl, TProperty?, TProperty?> ValueChanged = delegate
{
};
public PropertyChangeNotifierSlim(TControl propertySource, DependencyProperty property)
{
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_008a: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a7: Expected O, but got Unknown
_propertySource = propertySource;
_property = property;
_propertyDescriptor = DependencyPropertyDescriptor.FromProperty(property, typeof(TControl));
Value = ((DependencyObject)(object)_propertySource).GetValue<TProperty>(_property);
((FrameworkElement)_propertySource).Loaded += new RoutedEventHandler(OnSourceLoaded);
((FrameworkElement)_propertySource).Unloaded += new RoutedEventHandler(OnSourceUnloaded);
}
public void Release()
{
//IL_0013: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Expected O, but got Unknown
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
//IL_003a: Expected O, but got Unknown
((FrameworkElement)_propertySource).Loaded -= new RoutedEventHandler(OnSourceLoaded);
((FrameworkElement)_propertySource).Unloaded -= new RoutedEventHandler(OnSourceUnloaded);
((PropertyDescriptor)(object)_propertyDescriptor).RemoveValueChanged((object)_propertySource, (EventHandler)OnPropertyChanged);
_value = default(TProperty);
}
void IDisposable.Dispose()
{
Release();
}
private void OnSourceLoaded(object sender, RoutedEventArgs e)
{
((PropertyDescriptor)(object)_propertyDescriptor).AddValueChanged(sender, (EventHandler)OnPropertyChanged);
}
private void OnSourceUnloaded(object sender, RoutedEventArgs e)
{
((PropertyDescriptor)(object)_propertyDescriptor).RemoveValueChanged(sender, (EventHandler)OnPropertyChanged);
}
private void OnPropertyChanged(object? sender, EventArgs e)
{
Value = ((DependencyObject)(object)_propertySource).GetValue<TProperty>(_property);
}
}
public sealed class PropertyChangeNotifierSlim : PropertyChangeNotifierSlim<FrameworkElement, object>
{
public PropertyChangeNotifierSlim(FrameworkElement propertySource, DependencyProperty property)
: base(propertySource, property)
{
}
}
[Flags]
public enum TraverseChildrenOptions : uint
{
None = 0u,
IncludeConditionLeaf = 1u
}
[Flags]
public enum TraverseParentOptions : uint
{
None = 0u,
LogicalTraverse = 1u,
VisualTraverse = 2u
}
public sealed class TraverseService
{
public static IEnumerable<DependencyObject> TraverseParents(DependencyObject dependencyObject, Func<DependencyObject, bool>? traverseCondition, TraverseParentOptions options)
{
DependencyObject parent = Guard.EnsureArgumentIsNotNull<DependencyObject>(dependencyObject, (string)null, "dependencyObject");
bool isLogicalTraverse = options.HasFlag(TraverseParentOptions.LogicalTraverse);
bool isVisualTraverse = options.HasFlag(TraverseParentOptions.VisualTraverse);
while (parent != null)
{
DependencyObject nextParent = null;
if (isLogicalTraverse)
{
if (1 == 0)
{
}
Popup popup = (Popup)(object)((parent is Popup) ? parent : null);
UIElement val;
if (popup == null)
{
ContextMenu contextMenu = (ContextMenu)(object)((parent is ContextMenu) ? parent : null);
if (contextMenu == null)
{
ListBoxItem listBoxItem = (ListBoxItem)(object)((parent is ListBoxItem) ? parent : null);
val = (UIElement)((listBoxItem != null) ? ((object)ItemsControl.ItemsControlFromItemContainer((DependencyObject)(object)listBoxItem)) : ((object)((!(parent is NotificationView notificationView)) ? null : notificationView.AssociatedObject)));
}
else
{
val = contextMenu.PlacementTarget;
}
}
else
{
val = popup.PlacementTarget;
}
if (1 == 0)
{
}
nextParent = (DependencyObject)(object)val;
}
else if (isVisualTraverse)
{
if (1 == 0)
{
}
FrameworkContentElement frameworkContentElement = (FrameworkContentElement)(object)((parent is FrameworkContentElement) ? parent : null);
DependencyObject val2 = ((frameworkContentElement == null) ? null : frameworkContentElement.Parent);
if (1 == 0)
{
}
nextParent = val2;
}
if (nextParent == null && isLogicalTraverse)
{
nextParent = LogicalTreeHelper.GetParent(parent);
}
if (nextParent == null && isVisualTraverse)
{
nextParent = VisualTreeHelper.GetParent(parent);
}
parent = nextParent;
if (parent != null && (traverseCondition == null || (traverseCondition?.Invoke(parent) ?? false)))
{
yield return parent;
continue;
}
break;
}
}
public static IEnumerable<DependencyObject> TraverseVisualChildren(DependencyObject dependencyObject, Func<DependencyObject, bool>? traverseCondition, TraverseChildrenOptions options)
{
Guard.ArgumentIsNotNull<DependencyObject>(dependencyObject, (string)null, "dependencyObject");
TextBlock textBlock = (TextBlock)(object)((dependencyObject is TextBlock) ? dependencyObject : null);
if (textBlock != null)
{
ValueSource valueSource = DependencyPropertyHelper.GetValueSource((DependencyObject)(object)textBlock, TextBlock.TextProperty);
if ((int)((ValueSource)(ref valueSource)).BaseValueSource == 1)
{
foreach (Inline item in (TextElementCollection<Inline>)(object)textBlock.Inlines)
{
yield return (DependencyObject)(object)item;
}
}
}
FlowDocument flowDocument = (FlowDocument)(object)((dependencyObject is FlowDocument) ? dependencyObject : null);
if (flowDocument != null)
{
foreach (DependencyObject item2 in TraverseFlowDocumentElements((DependencyObject)(object)flowDocument, traverseCondition, options))
{
yield return item2;
}
}
else
{
if (!(dependencyObject is Visual))
{
yield break;
}
int i = 0;
for (int count = VisualTreeHelper.GetChildrenCount(dependencyObject); i < count; i++)
{
DependencyObject child = VisualTreeHelper.GetChild(dependencyObject, i);
bool? continueTraverse = traverseCondition?.Invoke(child);
if (!continueTraverse.HasValue || continueTraverse.Value)
{
yield return child;
foreach (DependencyObject item3 in TraverseVisualChildren(child, traverseCondition, options))
{
yield return item3;
}
}
else if (options.HasFlag(TraverseChildrenOptions.IncludeConditionLeaf))
{
yield return child;
}
}
}
}
private static IEnumerable<DependencyObject> TraverseFlowDocumentElements(DependencyObject dependencyObject, Func<DependencyObject, bool>? traverseCondition, TraverseChildrenOptions options)
{
Func<DependencyObject, bool> traverseCondition2 = traverseCondition;
Guard.ArgumentIsNotNull<DependencyObject>(dependencyObject, (string)null, "dependencyObject");
yield return dependencyObject;
FlowDocument flowDocument = (FlowDocument)(object)((dependencyObject is FlowDocument) ? dependencyObject : null);
if (flowDocument != null && IsNotEmptyBlockCollection(flowDocument.Blocks))
{
foreach (DependencyObject item in TraverseBlockCollection(flowDocument.Blocks))
{
yield return item;
}
}
Section section = (Section)(object)((dependencyObject is Section) ? dependencyObject : null);
if (section != null && IsNotEmptyBlockCollection(section.Blocks))
{
foreach (DependencyObject item2 in TraverseBlockCollection(section.Blocks))
{
yield return item2;
}
}
List list = (List)(object)((dependencyObject is List) ? dependencyObject : null);
if (list != null)
{
yield return (DependencyObject)(object)list;
foreach (ListItem listItem in (TextElementCollection<ListItem>)(object)list.ListItems)
{
yield return (DependencyObject)(object)listItem;
if (!IsNotEmptyBlockCollection(listItem.Blocks))
{
continue;
}
foreach (DependencyObject item3 in TraverseBlockCollection(listItem.Blocks))
{
yield return item3;
}
}
}
Paragraph paragraph = (Paragraph)(object)((dependencyObject is Paragraph) ? dependencyObject : null);
if (paragraph != null)
{
yield return (DependencyObject)(object)paragraph;
if (IsNotEmptyInlineCollection(paragraph.Inlines))
{
foreach (DependencyObject item4 in TraverseInlineCollection(paragraph.Inlines))
{
yield return item4;
}
}
}
BlockUIContainer uiContainer = (BlockUIContainer)(object)((dependencyObject is BlockUIContainer) ? dependencyObject : null);
if (uiContainer == null)
{
yield break;
}
foreach (DependencyObject item5 in TraverseVisualChildren((DependencyObject)(object)uiContainer.Child, traverseCondition2, options))
{
yield return item5;
}
static bool IsNotEmptyBlockCollection(BlockCollection blockCollection)
{
return ((IEnumerable<Block>)blockCollection).Any();
}
static bool IsNotEmptyInlineCollection(InlineCollection inlineCollection)
{
return ((IEnumerable<Inline>)inlineCollection).Any();
}
IEnumerable<DependencyObject> TraverseBlockCollection(BlockCollection blockCollection)
{
Guard.ArgumentIsNotNull<BlockCollection>(blockCollection, (string)null, "blockCollection");
foreach (Block block in (TextElementCollection<Block>)(object)blockCollection)
{
foreach (DependencyObject item6 in TraverseFlowDocumentElements((DependencyObject)(object)block, traverseCondition2, options))
{
yield return item6;
}
}
}
static IEnumerable<DependencyObject> TraverseInlineCollection(InlineCollection inlineCollection)
{
Guard.ArgumentIsNotNull<InlineCollection>(inlineCollection, (string)null, "inlineCollection");
foreach (Inline inlineElement in (TextElementCollection<Inline>)(object)inlineCollection)
{
yield return (DependencyObject)(object)inlineElement;
Span span = (Span)(object)((inlineElement is Span) ? inlineElement : null);
if (span != null && IsNotEmptyInlineCollection(span.Inlines))
{
foreach (DependencyObject item7 in TraverseInlineCollection(span.Inlines))
{
yield return item7;
}
}
}
}
}
}
public static class UnityContainerBuilder
{
public static void BuildUiKitServices(this IUnityContainer container)
{
Guard.ArgumentIsNotNull<IUnityContainer>(container, (string)null, "container");
UnityContainerExtensions.RegisterDefault<IRegionViewFactory, RegionViewFactory>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IRegionBehaviorsRegistry, RegionBehaviorRegistry>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<ISecureClipboard, SecureClipboard>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<ISecureInputManager, EmptySecureInputManager>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IStatisticsSender, EmptyStatisticsSender>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<INativeDialogLauncher, NativeDialogLauncher>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IAnimationManager, AnimationManager>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IAnimationManagerDataStorage, AnimationManagerInMemoryDataStorage>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IRenderCapability, RenderCapability>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<ITextScaleService, TextScaleService>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IInteractionObjects, InteractionObjects>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IThemeManager, ThemeManager>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
UnityContainerExtensions.RegisterDefault<IThemeManagerDataStorage, ThemeManagerInMemoryDataStorage>(container, (LifetimeType)0, (InjectionMember[])(object)new InjectionMember[0]);
container.RegisterType<AnimatedBindingFactory>((LifetimeType)0);
container.RegisterType<Regions>((LifetimeType)0);
UnityContainerBuilder.BuildFrameworkServices(container);
}
}
[MarkupExtensionReturnType(typeof(Brush))]
public abstract class UIKitPaletteExtension<TPaletteEnum> : MarkupExtension where TPaletteEnum : struct, Enum
{
private sealed class PaletteExtension : BaseLocalizationMarkupExtension
{
public bool IsColor { get; set; }
public PaletteExtension()
: base(string.Empty)
{
}
protected override object? ProvideValue()
{
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
//IL_0042: Unknown result type (might be due to invalid IL or missing references)
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
object resource = ProvideLocalizer<IXamlLocalizer>().GetResource(base.Key);
if (resource is Color val)
{
if (IsColor)
{
return val;
}
return ((Freezable)new SolidColorBrush(val)).GetAsFrozen();
}
return resource;
}
protected override ILocalizer PrepareLocalizer()
{
return LocalizationManager.GetLocalizer<IXamlLocalizer>(base.Scope);
}
}
public UIKitPaletteExtensionMode Mode { get; set; }
public TPaletteEnum Id { get; set; }
public override object? ProvideValue(IServiceProvider serviceProvider)
{
return ((MarkupExtension)new PaletteExtension
{
IsColor = (Mode == UIKitPaletteExtensionMode.Color),
Key = Map(Id),
Scope = UIKitConstants.PaletteScope
}).ProvideValue(serviceProvider);
}
protected virtual string Map(TPaletteEnum id)
{
return UIKitPaletteMetadataStorage.Get(id).ResourceKey;
}
}
public enum UIKitPaletteExtensionMode
{
Brush,
Color
}
internal sealed class UIKitPaletteMetadata
{
public Enum Scope { get; }
public string ResourceKey { get; }
public UIKitPaletteMetadata(Enum scope, string resourceKey)
{
Scope = scope;
ResourceKey = resourceKey;
}
}
internal sealed class UIKitPaletteMetadataStorage
{
private static readonly IDictionary<Enum, UIKitPaletteMetadata> _storage = new Dictionary<Enum, UIKitPaletteMetadata>();
public static void Register(Enum color, Enum scope, string resourceId)
{
Guard.Argument(!_storage.ContainsKey(color), $"Duplicate registration of '{color.GetType().Name}.{color}' color metadata", "!_storage.ContainsKey(color)");
_storage.Add(color, new UIKitPaletteMetadata(scope, resourceId));
}
public static UIKitPaletteMetadata Get(Enum color)
{
if (_storage.TryGetValue(color, out UIKitPaletteMetadata value))
{
return value;
}
throw new InvalidOperationException($"Color '{color.GetType().Name}.{color}' is not registered in storage.");
}
}
public interface INotificationAnimatable
{
void OnOpening(Action? completedCallback = null);
void OnClosing(Action? completedCallback = null);
}
[StyleTypedProperty(Property = "ContentPanelStyle", StyleTargetType = typeof(Control))]
[DefaultProperty("Content")]
[ContentProperty("Content")]
public sealed class NotificationAction : TriggerAction<FrameworkElement>
{
public static readonly DependencyProperty ContentTemplateProperty = DependencyProperty.Register("ContentTemplate", typeof(DataTemplate), typeof(NotificationAction), new PropertyMetadata((object)null));
public static readonly DependencyProperty DisplayModeProperty = DependencyProperty.Register("DisplayMode", typeof(NotificationDisplayMode), typeof(NotificationAction), new PropertyMetadata((object)NotificationDisplayMode.Modal));
public static readonly DependencyProperty LayerNameProperty = DependencyProperty.Register("LayerName", typeof(string), typeof(NotificationAction), new PropertyMetadata((object)"RootLayer"));
private readonly ComponentTracer _tracer;
[Bindable(true)]
public object Content
{
get
{
return ((DependencyObject)this).GetValue(ContentControl.ContentProperty);
}
set
{
((DependencyObject)this).SetValue(ContentControl.ContentProperty, value);
}
}
public DataTemplate ContentTemplate
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
return (DataTemplate)((DependencyObject)this).GetValue(ContentTemplateProperty);
}
set
{
((DependencyObject)this).SetValue(ContentTemplateProperty, (object)value);
}
}
public NotificationDisplayMode DisplayMode
{
get
{
return (NotificationDisplayMode)((DependencyObject)this).GetValue(DisplayModeProperty);
}
set
{
((DependencyObject)this).SetValue(DisplayModeProperty, (object)value);
}
}
public string LayerName
{
get
{
return (string)((DependencyObject)this).GetValue(LayerNameProperty);
}
set
{
((DependencyObject)this).SetValue(LayerNameProperty, (object)value);
}
}
public NotificationAction()
{
_tracer = ComponentTracer.Get(UIKitComponentTracers.Notification, (object)this, false);
}
protected override void Invoke(object parameter)
{
//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
//IL_00e6: Expected O, but got Unknown
//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
//IL_00fe: Expected O, but got Unknown
_tracer.TraceMethodCall("Invoke");
InteractionObject interactionObject = Guard.EnsureArgumentIsInstanceOfType<InteractionRequestedEventArgs>(parameter, (string)null, "parameter").InteractionObject;
Guard.Assert(!interactionObject.IsDecided, (string)null, "interactionObject.IsDecided == false");
Guard.IsNotNull<FrameworkElement>(base.AssociatedObject, (string)null, "AssociatedObject");
Guard.AssertIsUiThread();
NotificationDisplaySettings displaySettings = new NotificationDisplaySettings
{
LayerName = LayerName,
DisplayMode = DisplayMode
};
NotificationView view = NotificationLauncher.Create(base.AssociatedObject, Content ?? interactionObject.GetDataContext(), ContentTemplate, displaySettings);
interactionObject.Decided += delegate
{
OnDecided(view);
};
view.Opening += (RoutedEventHandler)delegate
{
OnOpening(interactionObject);
};
view.Closing += (RoutedEventHandler)delegate
{
OnClosing(interactionObject);
};
view.SetInteractionObject(interactionObject);
view.Show();
}
private void OnOpening(InteractionObject interactionObject)
{
interactionObject.InteractionStarted();
}
private void OnClosing(InteractionObject interactionObject)
{
if (!interactionObject.IsDecided)
{
interactionObject.Handle();
}
interactionObject.InteractionCompleted();
}
private void OnDecided(NotificationView notificationView)
{
if (ObjectExtensions.NotIn<NotificationViewState>(notificationView.State, new NotificationViewState[2]
{
NotificationViewState.Closing,
NotificationViewState.Closed
}))
{
notificationView.Close();
}
}
}
public enum NotificationDisplayMode
{
Modal,
ModalTopmost,
NonModal
}
public sealed class NotificationDisplaySettings
{
public NotificationDisplayMode DisplayMode { get; init; }
public string LayerName { get; init; }
public bool IsModal => DisplayMode == NotificationDisplayMode.Modal || DisplayMode == NotificationDisplayMode.ModalTopmost;
public NotificationDisplaySettings()
{
DisplayMode = NotificationDisplayMode.Modal;
LayerName = "RootLayer";
}
}
public static class NotificationLauncher
{
public static NotificationView Create(FrameworkElement associatedObject, object? content = null, DataTemplate? contentTemplate = null, NotificationDisplaySettings? displaySettings = null, Action<NotificationView>? onClosed = null, Action<NotificationView>? onOpened = null)
{
//IL_009a: Unknown result type (might be due to invalid IL or missing references)
//IL_00a4: Expected O, but got Unknown
//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
//IL_00cd: Expected O, but got Unknown
Action<NotificationView> onOpened2 = onOpened;
Action<NotificationView> onClosed2 = onClosed;
Guard.AssertIsUiThread();
Guard.ArgumentIsNotNull<FrameworkElement>(associatedObject, (string)null, "associatedObject");
if (content == null)
{
content = associatedObject.DataContext;
}
else
{
FrameworkElement val = (FrameworkElement)((content is FrameworkElement) ? content : null);
if (val != null && val.DataContext == null)
{
val.DataContext = associatedObject.DataContext;
}
}
NotificationView notificationView = new NotificationView(associatedObject, content, displaySettings);
((ContentControl)notificationView).ContentTemplate = contentTemplate;
NotificationView view = notificationView;
if (onOpened2 != null)
{
view.Opened += (RoutedEventHandler)delegate
{
onOpened2(view);
};
}
if (onClosed2 != null)
{
view.Closed += (RoutedEventHandler)delegate
{
onClosed2(view);
};
}
return view;
}
public static NotificationView Show(FrameworkElement associatedObject, object? content = null, DataTemplate? contentTemplate = null, NotificationDisplaySettings? displaySettings = null, Action<NotificationView>? onClosed = null, Action<NotificationView>? onOpened = null)
{
NotificationView notificationView = Create(associatedObject, content, contentTemplate, displaySettings, onClosed, onOpened);
notificationView.Show();
return notificationView;
}
}
[TemplatePart(Name = "PART_Content", Type = typeof(ContentPresenter))]
public sealed class NotificationLayer : ContentControl
{
private sealed class NotificationViewInfo
{
public INotificationAdorner Adorner { get; }
public NotificationView Notification { get; }
public Action OnAdded { get; }
public Action OnRemoved { get; }
public NotificationViewInfo(NotificationView notification, INotificationAdorner adorner, Action onAdded, Action onRemoved)
{
Notification = notification;
Adorner = adorner;
OnAdded = onAdded;
OnRemoved = onRemoved;
}
}
public const string PART_Content = "PART_Content";
public const string DefaultLayerName = "RootLayer";
public static readonly RoutedEvent TopmostNotificationChangedEvent;
public static readonly RoutedEvent IsModalStateChangedEvent;
public static readonly DependencyProperty LayerNameProperty;
private readonly List<NotificationViewInfo> _visibleNotifications = new List<NotificationViewInfo>();
private readonly List<NotificationViewInfo> _modalNotificationQueue = new List<NotificationViewInfo>();
private readonly List<NotificationViewInfo> _modalNotificationStack = new List<NotificationViewInfo>();
private readonly NotificationAdornerFactory _adornerFactory;
private readonly ComponentTracer _tracer;
private bool _isModalState;
private ContentPresenter? _content;
private NotificationView? _topmostNotification;
public NotificationView? TopmostNotification
{
get
{
return _topmostNotification;
}
internal set
{
//IL_001f: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Expected O, but got Unknown
if (_topmostNotification != value)
{
_topmostNotification = value;
((UIElement)this).RaiseEvent(new RoutedEventArgs(TopmostNotificationChanged));
}
}
}
public bool IsModalState
{
get
{
return _isModalState;
}
private set
{
//IL_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Expected O, but got Unknown
if (_isModalState != value)
{
if (value)
{
EnsureNotificationLayerIsLastInVisualTree();
}
_isModalState = value;
((UIElement)this).RaiseEvent(new RoutedEventArgs(IsModalStateChanged));
}
}
}
public string LayerName
{
get
{
return (string)((DependencyObject)this).GetValue(LayerNameProperty);
}
set
{
((DependencyObject)this).SetValue(LayerNameProperty, (object)value);
}
}
public event RoutedEventHandler TopmostNotificationChanged
{
add
{
((UIElement)this).AddHandler(TopmostNotificationChangedEvent, (Delegate)(object)value);
}
remove
{
((UIElement)this).RemoveHandler(TopmostNotificationChangedEvent, (Delegate)(object)value);
}
}
public event RoutedEventHandler IsModalStateChanged
{
add
{
((UIElement)this).AddHandler(IsModalStateChangedEvent, (Delegate)(object)value);
}
remove
{
((UIElement)this).RemoveHandler(IsModalStateChangedEvent, (Delegate)(object)value);
}
}
public NotificationLayer()
{
_tracer = ComponentTracer.Get(UIKitComponentTracers.Notification, (object)this, false);
_adornerFactory = new NotificationAdornerFactory(this);
((DependencyObject)(object)this).WhenUnloaded(OnUnloaded);
}
public override void OnApplyTemplate()
{
_content = Guard.EnsureIsInstanceOfType<ContentPresenter>((object)((FrameworkElement)this).GetTemplateChild("PART_Content"), (string)null, "GetTemplateChild(PART_Content)");
}
public static NotificationLayer? FindLayer(DependencyObject source, bool isModal, string name = "RootLayer")
{
string name2 = name;
DependencyObject val = Guard.EnsureArgumentIsNotNull<DependencyObject>(source, (string)null, "source");
Window val2 = (Window)(object)((val is Window) ? val : null);
if (val2 != null)
{
DependencyObject val3 = LogicalTreeHelper.GetChildren((FrameworkElement)(object)val2).Cast<DependencyObject>().FirstOrDefault();
if (val3 == null)
{
return isModal ? val.FindVisualChildren<NotificationLayer>().FirstOrDefault() : GuardEnumerableExtensions.GuardedSingleOrDefault<NotificationLayer>(val.FindVisualChildren<NotificationLayer>(), (Func<NotificationLayer, bool>)((NotificationLayer l) => l.LayerName == name2), (string)null);
}
val = val3;
}
return isModal ? val.FindVisualParents<NotificationLayer>().LastOrDefault() : GuardEnumerableExtensions.GuardedSingleOrDefault<NotificationLayer>(val.FindVisualParents<NotificationLayer>(), (Func<NotificationLayer, bool>)((NotificationLayer l) => l.LayerName == name2), (string)null);
}
public override string ToString()
{
return "NotificationLayer (" + LayerName + ")";
}
internal void AddNotification(NotificationView notification, Action? onAdded = null, Action? onRemoved = null)
{
NotificationView notification2 = notification;
Action onAdded2 = onAdded;
Action onRemoved2 = onRemoved;
Action onAdded3 = delegate
{
((DependencyObject)(object)notification2).WhenLoaded(delegate
{
onAdded2?.Invoke();
});
};
Action onRemoved3 = delegate
{
((DependencyObject)(object)notification2).WhenUnloaded(delegate
{
onRemoved2?.Invoke();
});
};
if (_visibleNotifications.Any((NotificationViewInfo i) => i.Notification == notification2) || _modalNotificationQueue.Any((NotificationViewInfo i) => i.Notification == notification2) || _modalNotificationStack.Any((NotificationViewInfo i) => i.Notification == notification2))
{
_tracer.TraceWarning($"Notification is already on {this}. {notification2}");
return;
}
NotificationDisplaySettings displaySettings = notification2.DisplaySettings;
INotificationAdorner adorner = _adornerFactory.GetAdorner(displaySettings);
NotificationViewInfo notificationViewInfo = new NotificationViewInfo(notification2, adorner, onAdded3, onRemoved3);
if (displaySettings.DisplayMode == NotificationDisplayMode.Modal)
{
if (_visibleNotifications.Any((NotificationViewInfo n) => n.Notification.DisplaySettings.IsModal))
{
_modalNotificationQueue.Add(notificationViewInfo);
_tracer.TraceInformation($"Notification added notification queue of {this}. {notification2}");
return;
}
}
else if (displaySettings.DisplayMode == NotificationDisplayMode.ModalTopmost)
{
_modalNotificationStack.Add(notificationViewInfo);
}
ProcessAddNotification(notificationViewInfo);
}
internal void RemoveNotification(NotificationView notification)
{
NotificationView notification2 = notification;
NotificationViewInfo notificationViewInfo = _visibleNotifications.SingleOrDefault((NotificationViewInfo i) => i.Notification == notification2) ?? _modalNotificationQueue.SingleOrDefault((NotificationViewInfo i) => i.Notification == notification2) ?? _modalNotificationStack.SingleOrDefault((NotificationViewInfo i) => i.Notification == notification2);
if (notificationViewInfo == null)
{
_tracer.TraceWarning($"Notification is not found in {this}. {notification2}");
}
else
{
ProcessRemoveNotification(notificationViewInfo);
}
}
internal AdornerLayer GetAdornerLayer()
{
return AdornerLayer.GetAdornerLayer((Visual)(object)_content);
}
internal UIElement GetContentElement()
{
return (UIElement)(object)Guard.EnsureIsNotNull<ContentPresenter>(_content, (string)null, "_content");
}
private void ProcessAddNotification(NotificationViewInfo notificationInfo)
{
if (!_visibleNotifications.Contains(notificationInfo))
{
_visibleNotifications.Add(notificationInfo);
NotificationView notification = notificationInfo.Notification;
if (notification.DisplaySettings.IsModal)
{
SuppressBackwardInteraction();
}
notificationInfo.Adorner.AddNotification(notification);
notificationInfo.OnAdded();
_tracer.TraceInformation($"Notification added on {this}. {notification}");
}
}
private void ProcessRemoveNotification(NotificationViewInfo notificationInfo)
{
if (_modalNotificationQueue.Contains(notificationInfo))
{
_modalNotificationQueue.Remove(notificationInfo);
}
if (_modalNotificationStack.Contains(notificationInfo))
{
_modalNotificationStack.Remove(notificationInfo);
}
if (!_visibleNotifications.Contains(notificationInfo))
{
return;
}
_visibleNotifications.Remove(notificationInfo);
NotificationView notification = notificationInfo.Notification;
if (notification.DisplaySettings.IsModal)
{
RestoreBackwardInteraction();
}
notificationInfo.Adorner.RemoveNotification(notification);
notificationInfo.OnRemoved();
if (EnumerableExtensions.None<NotificationViewInfo>((IEnumerable<NotificationViewInfo>)_modalNotificationStack))
{
NotificationViewInfo notificationViewInfo = _modalNotificationQueue.FirstOrDefault();
if (notificationViewInfo != null)
{
_modalNotificationQueue.Remove(notificationViewInfo);
ProcessAddNotification(notificationViewInfo);
}
}
_tracer.TraceInformation($"Notification removed from {this}. {notification}");
}
private void EnsureNotificationLayerIsLastInVisualTree()
{
IEnumerable<NotificationLayer> source = ((DependencyObject)(object)this).FindVisualParents<NotificationLayer>();
if (source.Any())
{
Guard.Fail("Modal state can be set only on last NotificationLayer in visual tree", new object[0]);
}
}
private void SuppressBackwardInteraction()
{
//IL_005a: Unknown result type (might be due to invalid IL or missing references)
//IL_0064: Expected O, but got Unknown
NotificationViewInfo[] array = _visibleNotifications.Where((NotificationViewInfo n) => n.Notification.DisplaySettings.IsModal).ToArray();
DependencyObject val = (DependencyObject)(object)((array.Length == 1) ? ((NotificationView)(object)_content) : array[^2].Notification);
AccessKeyManager.AddAccessKeyPressedHandler(val, new AccessKeyPressedEventHandler(HandleAccessKey));
KeyboardNavigation.SetTabNavigation(val, (KeyboardNavigationMode)3);
KeyboardNavigation.SetDirectionalNavigation(val, (KeyboardNavigationMode)3);
NotificationView notification = array.Last().Notification;
if (EnumerableExtensions.None<UIElement>(((DependencyObject)(object)notification).FindVisualChildren<UIElement>(), (Func<UIElement, bool>)((UIElement o) => o.IsFocused)))
{
((DependencyObject)(object)notification).WhenLoaded(delegate
{
((UIElement)notification).Focus();
});
}
IsModalState = array.Length != 0;
}
private void RestoreBackwardInteraction()
{
//IL_0051: Unknown result type (might be due to invalid IL or missing references)
//IL_005b: Expected O, but got Unknown
NotificationViewInfo[] array = _visibleNotifications.Where((NotificationViewInfo n) => n.Notification.DisplaySettings.IsModal).ToArray();
DependencyObject val = (DependencyObject)(object)((array.Length == 0) ? ((NotificationView)(object)_content) : array.Last().Notification);
AccessKeyManager.RemoveAccessKeyPressedHandler(val, new AccessKeyPressedEventHandler(HandleAccessKey));
KeyboardNavigation.SetTabNavigation(val, (KeyboardNavigationMode)0);
KeyboardNavigation.SetDirectionalNavigation(val, (KeyboardNavigationMode)0);
IsModalState = array.Length != 0;
}
private void OnUnloaded()
{
_tracer.TraceInformation($"{this} unloaded.");
HashSet<NotificationView> hashSet = new HashSet<NotificationView>();
CollectionExtension.AddRange<NotificationView>((ICollection<NotificationView>)hashSet, _visibleNotifications.Select((NotificationViewInfo n) => n.Notification));
CollectionExtension.AddRange<NotificationView>((ICollection<NotificationView>)hashSet, _modalNotificationQueue.Select((NotificationViewInfo n) => n.Notification));
CollectionExtension.AddRange<NotificationView>((ICollection<NotificationView>)hashSet, _modalNotificationStack.Select((NotificationViewInfo n) => n.Notification));
if (hashSet.Any())
{
_tracer.TraceInformation($"Closing {hashSet.Count} notifications.");
EnumerableExtensions.ForEach<NotificationView>((IEnumerable<NotificationView>)hashSet, (Action<NotificationView>)delegate(NotificationView n)
{
n.Close();
});
}
}
private static void HandleAccessKey(object sender, AccessKeyPressedEventArgs e)
{
if (!Keyboard.IsKeyDown((Key)90))
{
e.Scope = sender;
((RoutedEventArgs)e).Handled = true;
}
}
static NotificationLayer()
{
//IL_0066: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Expected O, but got Unknown
TopmostNotificationChanged = EventManager.RegisterRoutedEvent("TopmostNotificationChanged", (RoutingStrategy)1, typeof(RoutedEventHandler), typeof(NotificationLayer));
IsModalStateChanged = EventManager.RegisterRoutedEvent("IsModalStateChanged", (RoutingStrategy)1, typeof(RoutedEventHandler), typeof(NotificationLayer));
LayerNameProperty = DependencyProperty.Register("LayerName", typeof(string), typeof(NotificationLayer), new PropertyMetadata((object)"RootLayer"));
}
}
[TemplatePart(Name = "PART_ContentPresenter", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "PART_BackgroundPresenter", Type = typeof(Border))]
public sealed class NotificationView : ContentControl
{
public const string PART_ContentPresenter = "PART_ContentPresenter";
public const string PART_BackgroundPresenter = "PART_BackgroundPresenter";
public static readonly DependencyProperty BackgroundClipProperty = DependencyProperty.Register("BackgroundClip", typeof(Geometry), typeof(NotificationView), new PropertyMetadata((object)null));
public static readonly RoutedEvent ClosedEvent;
public static readonly RoutedEvent ClosingEvent;
public static readonly RoutedEvent OpenedEvent;
public static readonly RoutedEvent OpeningEvent;
public static readonly RoutedEvent PendingEvent;
private NotificationViewState _state;
private readonly string _contentType;
private readonly Stack<NotificationViewState> _stateStack;
private readonly IStatisticsSender _statisticsSender;
private readonly string _associatedObjectType;
private readonly ComponentTracer _tracer;
public Geometry? BackgroundClip
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
return (Geometry)((DependencyObject)this).GetValue(BackgroundClipProperty);
}
set
{
((DependencyObject)this).SetValue(BackgroundClipProperty, (object)value);
}
}
public FrameworkElement? ContentView => GetContentView();
public FrameworkElement AssociatedObject { get; }
public NotificationLayer? NotificationLayer { get; private set; }
public NotificationDisplaySettings DisplaySettings { get; }
public NotificationViewState State
{
get
{
return _state;
}
private set
{
if (_state != value)
{
_tracer.TraceInformation($"State changed from {_state} to {value}. {this}");
_stateStack.Push(value);
_state = value;
}
}
}
public bool IsOpening => State == NotificationViewState.Opening;
public bool IsOpened => State == NotificationViewState.Opened;
public bool IsClosing => State == NotificationViewState.Closing;
public bool IsClosed => State == NotificationViewState.Closed;
public event RoutedEventHandler Closed
{
add
{
((UIElement)this).AddHandler(ClosedEvent, (Delegate)(object)value);
}
remove
{
((UIElement)this).RemoveHandler(ClosedEvent, (Delegate)(object)value);
}
}
public event RoutedEventHandler Closing
{
add
{
((UIElement)this).AddHandler(ClosingEvent, (Delegate)(object)value);
}
remove
{
((UIElement)this).RemoveHandler(ClosingEvent, (Delegate)(object)value);
}
}
public event RoutedEventHandler Opened
{
add
{
((UIElement)this).AddHandler(OpenedEvent, (Delegate)(object)value);
}
remove
{
((UIElement)this).RemoveHandler(OpenedEvent, (Delegate)(object)value);
}
}
public event RoutedEventHandler Opening
{
add
{
((UIElement)this).AddHandler(OpeningEvent, (Delegate)(object)value);
}
remove
{
((UIElement)this).RemoveHandler(OpeningEvent, (Delegate)(object)value);
}
}
public event RoutedEventHandler Pending
{
add
{
((UIElement)this).AddHandler(PendingEvent, (Delegate)(object)value);
}
remove
{
((UIElement)this).RemoveHandler(PendingEvent, (Delegate)(object)value);
}
}
internal NotificationView(FrameworkElement associatedObject, object content, NotificationDisplaySettings? displaySettings = null)
{
//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Expected O, but got Unknown
//IL_00b5: Unknown result type (might be due to invalid IL or missing references)
//IL_00bf: Expected O, but got Unknown
//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
//IL_00d2: Expected O, but got Unknown
//IL_00db: Unknown result type (might be due to invalid IL or missing references)
//IL_00e5: Expected O, but got Unknown
//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
//IL_00f8: Expected O, but got Unknown
//IL_0101: Unknown result type (might be due to invalid IL or missing references)
//IL_010b: Expected O, but got Unknown
//IL_0114: Unknown result type (might be due to invalid IL or missing references)
//IL_011e: Expected O, but got Unknown
Guard.ArgumentIsNotNull<FrameworkElement>(associatedObject, (string)null, "associatedObject");
Guard.ArgumentIsNotNull<object>(content, (string)null, "content");
_stateStack = new Stack<NotificationViewState>();
_tracer = ComponentTracer.Get(UIKitComponentTracers.Notification, (object)this, false);
_associatedObjectType = ((object)associatedObject).GetType().Name;
_contentType = content.GetType().Name;
_statisticsSender = ServiceLocator.GetService<IStatisticsSender>();
AssociatedObject = associatedObject;
((ContentControl)this).Content = content;
DisplaySettings = displaySettings ?? new NotificationDisplaySettings();
State = NotificationViewState.Initial;
DispositionContext.Initialize((DependencyObject)(object)this);
((FrameworkElement)this).Loaded += (RoutedEventHandler)delegate
{
//IL_003d: Unknown result type (might be due to invalid IL or missing references)
//IL_0042: Unknown result type (might be due to invalid IL or missing references)
//IL_004a: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Expected O, but got Unknown
DependencyObject templateChild = ((FrameworkElement)this).GetTemplateChild("PART_BackgroundPresenter");
Border val = (Border)(object)((templateChild is Border) ? templateChild : null);
if (val != null)
{
val.Background = (Brush)(object)(DisplaySettings.IsModal ? Brushes.Transparent : null);
((FrameworkElement)val).SetBinding(UIElement.ClipProperty, (BindingBase)new Binding
{
Source = this,
Path = BackgroundClipProperty.AsPath()
});
}
_tracer.TraceInformation($"Notification loaded. {this}");
};
((FrameworkElement)this).Unloaded += (RoutedEventHandler)delegate
{
_tracer.TraceInformation($"Notification unloaded. {this}");
};
Pending += (RoutedEventHandler)delegate
{
NotificationLayer = GetNotificationLayer();
NotificationLayer.AddNotification(this, PendingCompleted);
};
Opening += (RoutedEventHandler)delegate
{
LaunchOpeningAnimation();
};
Opened += (RoutedEventHandler)delegate
{
_statisticsSender.SendNotificationViewShown(this);
};
Closing += (RoutedEventHandler)delegate
{
LaunchClosingAnimation();
};
Closed += (RoutedEventHandler)delegate
{
NotificationLayer?.RemoveNotification(this);
NotificationLayer = null;
DispositionContext.Dispose((DependencyObject)(object)this);
};
}
public override string ToString()
{
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append("NotificationView [");
if (((DispatcherObject)this).CheckAccess())
{
stringBuilder.Append("ContentView:" + (((object)ContentView)?.GetType().Name ?? "<null>") + "; ");
}
else
{
stringBuilder.Append(((Control)this).ToString());
}
stringBuilder.Append("ContentType:" + _contentType + "; ");
stringBuilder.Append("AssociatedObjectType:" + _associatedObjectType);
stringBuilder.Append(']');
return stringBuilder.ToString();
}
public void Show()
{
((DependencyObject)(object)AssociatedObject).WhenLoaded(delegate
{
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0048: Expected O, but got Unknown
if (ObjectExtensions.NotIn<NotificationViewState>(State, new NotificationViewState[1]))
{
TraceMethodSkip("Show");
}
else if (EnsureCanShow())
{
State = NotificationViewState.Pending;
((UIElement)this).RaiseEvent(new RoutedEventArgs(Pending));
}
else
{
State = NotificationViewState.Error;
}
});
}
public void Close()
{
//IL_003b: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Expected O, but got Unknown
if (ObjectExtensions.In<NotificationViewState>(State, new NotificationViewState[2]
{
NotificationViewState.Closing,
NotificationViewState.Closed
}))
{
TraceMethodSkip("Close");
return;
}
State = NotificationViewState.Closing;
((UIElement)this).RaiseEvent(new RoutedEventArgs(Closing));
}
internal void CloseForced()
{
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Expected O, but got Unknown
if (ObjectExtensions.In<NotificationViewState>(State, new NotificationViewState[1] { NotificationViewState.Closed }))
{
TraceMethodSkip("CloseForced");
return;
}
State = NotificationViewState.Closed;
((UIElement)this).RaiseEvent(new RoutedEventArgs(Closed));
}
private FrameworkElement? GetContentView()
{
DependencyObject templateChild = ((FrameworkElement)this).GetTemplateChild("PART_ContentPresenter");
ContentPresenter val = (ContentPresenter)(object)((templateChild is ContentPresenter) ? templateChild : null);
if (val != null && VisualTreeHelper.GetChildrenCount((DependencyObject)(object)val) > 0)
{
DependencyObject child = VisualTreeHelper.GetChild((DependencyObject)(object)val, 0);
return (FrameworkElement?)(object)((child is FrameworkElement) ? child : null);
}
return null;
}
private void PendingCompleted()
{
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Expected O, but got Unknown
if (ObjectExtensions.NotIn<NotificationViewState>(State, new NotificationViewState[1] { NotificationViewState.Pending }))
{
TraceMethodSkip("PendingCompleted");
return;
}
State = NotificationViewState.Opening;
((UIElement)this).RaiseEvent(new RoutedEventArgs(Opening));
}
private void ClosingCompleted()
{
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Expected O, but got Unknown
if (ObjectExtensions.In<NotificationViewState>(State, new NotificationViewState[1] { NotificationViewState.Closed }))
{
TraceMethodSkip("ClosingCompleted");
return;
}
State = NotificationViewState.Closed;
((UIElement)this).RaiseEvent(new RoutedEventArgs(Closed));
}
private void OpeningCompleted()
{
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Expected O, but got Unknown
if (ObjectExtensions.NotIn<NotificationViewState>(State, new NotificationViewState[1] { NotificationViewState.Opening }))
{
TraceMethodSkip("OpeningCompleted");
return;
}
State = NotificationViewState.Opened;
((UIElement)this).RaiseEvent(new RoutedEventArgs(Opened));
}
private void LaunchOpeningAnimation()
{
if (ObjectExtensions.NotIn<NotificationViewState>(State, new NotificationViewState[1] { NotificationViewState.Opening }))
{
return;
}
if (!EnsureContentViewReady())
{
State = NotificationViewState.Error;
return;
}
INotificationAnimatable firstAnimatableChild = GetFirstAnimatableChild();
if (firstAnimatableChild != null)
{
_tracer.TraceMethodInfo($"Animatable child found: {firstAnimatableChild}. {this}", "LaunchOpeningAnimation");
firstAnimatableChild.OnOpening(OpeningCompleted);
}
else
{
_tracer.TraceMethodWarning($"Animatable child not found. Skip animation. {this}", "LaunchOpeningAnimation");
OpeningCompleted();
}
}
private void LaunchClosingAnimation()
{
if (ObjectExtensions.NotIn<NotificationViewState>(State, new NotificationViewState[1] { NotificationViewState.Closing }))
{
return;
}
if (!_stateStack.Contains(NotificationViewState.Opening))
{
_tracer.TraceMethodInfo($"Notification has not been opened before. Skip animation. {this}", "LaunchClosingAnimation");
ClosingCompleted();
return;
}
if (!EnsureContentViewReady())
{
State = NotificationViewState.Error;
return;
}
INotificationAnimatable firstAnimatableChild = GetFirstAnimatableChild();
if (firstAnimatableChild != null)
{
_tracer.TraceMethodInfo($"Animatable child found: {firstAnimatableChild}. {this}", "LaunchClosingAnimation");
firstAnimatableChild.OnClosing(ClosingCompleted);
}
else
{
_tracer.TraceMethodWarning($"Animatable child not found. Skip animation. {this}", "LaunchClosingAnimation");
ClosingCompleted();
}
}
private bool EnsureCanShow()
{
string arg = "NotificationLayer with name '" + DisplaySettings.LayerName + "'";
NotificationLayer notificationLayer = TryGetNotificationLayer();
if (notificationLayer == null)
{
_tracer.TraceError($"Failed to show notification {this}. Unable to provide {arg}. {this}");
return false;
}
return true;
}
private NotificationLayer? TryGetNotificationLayer()
{
return KasperskyLab.UI.Framework.UiKit.Notifications.NotificationLayer.FindLayer((DependencyObject)(object)AssociatedObject, DisplaySettings.IsModal, DisplaySettings.LayerName);
}
private NotificationLayer GetNotificationLayer()
{
return Guard.EnsureIsNotNull<NotificationLayer>(TryGetNotificationLayer(), (string)null, "TryGetNotificationLayer()");
}
private INotificationAnimatable? GetFirstAnimatableChild()
{
return ((DependencyObject)(object)this).FindVisualChildren<FrameworkElement>((Func<FrameworkElement, bool>)((FrameworkElement c) => c is INotificationAnimatable && ((UIElement)c).IsVisible)).OfType<INotificationAnimatable>().FirstOrDefault();
}
private bool EnsureContentViewReady()
{
if (ContentView != null)
{
return true;
}
if (((DependencyObject)(object)this).GetWindow() == null)
{
_tracer.TraceWarning(string.Format("{0} is not ready because of notification is detached from visual tree. {1}", "ContentView", this));
return false;
}
if (((FrameworkElement)this).ApplyTemplate())
{
((UIElement)this).UpdateLayout();
}
if (ContentView == null)
{
_tracer.TraceError(string.Format("{0} is not ready. {1}", "ContentView", this));
return false;
}
return true;
}
private void TraceMethodSkip([CallerMemberName] string? methodName = null)
{
_tracer.TraceInformation($"Skip '{methodName}' execution. Current state: {State}. {this}");
}
static NotificationView()
{
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Expected O, but got Unknown
Closed = EventManager.RegisterRoutedEvent("Closed", (RoutingStrategy)1, typeof(RoutedEventHandler), typeof(NotificationView));
Closing = EventManager.RegisterRoutedEvent("Closing", (RoutingStrategy)1, typeof(RoutedEventHandler), typeof(NotificationView));
Opened = EventManager.RegisterRoutedEvent("Opened", (RoutingStrategy)1, typeof(RoutedEventHandler), typeof(NotificationView));
Opening = EventManager.RegisterRoutedEvent("Opening", (RoutingStrategy)1, typeof(RoutedEventHandler), typeof(NotificationView));
Pending = EventManager.RegisterRoutedEvent("Pending", (RoutingStrategy)1, typeof(RoutedEventHandler), typeof(NotificationView));
}
}
public static class NotificationViewBehavior
{
public static readonly DependencyProperty CloseFlagProperty = DependencyProperty.RegisterAttached("CloseFlag", typeof(bool), typeof(NotificationViewBehavior), new PropertyMetadata((object)false, new PropertyChangedCallback(CloseOnFlagChanged)));
public static readonly DependencyProperty IsCloseButtonProperty = DependencyProperty.RegisterAttached("IsCloseButton", typeof(bool), typeof(NotificationViewBehavior), new PropertyMetadata((object)false, new PropertyChangedCallback(OnIsCloseButtonChanged)));
public static readonly DependencyProperty IsConfirmButtonProperty = DependencyProperty.RegisterAttached("IsConfirmButton", typeof(bool), typeof(NotificationViewBehavior), new PropertyMetadata((object)false, new PropertyChangedCallback(OnIsConfirmButtonChanged)));
private static readonly DependencyProperty _interactionObjectProperty = DependencyProperty.RegisterAttached("InteractionObject", typeof(InteractionObject), typeof(NotificationViewBehavior));
internal static void SetInteractionObject(this NotificationView notificationView, InteractionObject interactionObject)
{
Guard.ArgumentIsNotNull<NotificationView>(notificationView, (string)null, "notificationView");
Guard.ArgumentIsNotNull<InteractionObject>(interactionObject, (string)null, "interactionObject");
((DependencyObject)notificationView).SetValue(_interactionObjectProperty, (object)interactionObject);
}
internal static InteractionObject? GetInteractionObject(this NotificationView notificationView)
{
Guard.ArgumentIsNotNull<NotificationView>(notificationView, (string)null, "notificationView");
return ((DependencyObject)notificationView).GetValue(_interactionObjectProperty) as InteractionObject;
}
public static bool GetCloseFlag(DependencyObject obj)
{
return (bool)obj.GetValue(CloseFlagProperty);
}
public static void SetCloseFlag(DependencyObject obj, bool value)
{
obj.SetValue(CloseFlagProperty, (object)value);
}
public static bool GetIsCloseButton(DependencyObject obj)
{
return (bool)obj.GetValue(IsCloseButtonProperty);
}
public static void SetIsCloseButton(DependencyObject obj, bool value)
{
obj.SetValue(IsCloseButtonProperty, (object)value);
}
private static void OnIsCloseButtonChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Expected O, but got Unknown
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_0034: Expected O, but got Unknown
Button val = (Button)(object)((d is Button) ? d : null);
if (val != null)
{
if ((bool)((DependencyPropertyChangedEventArgs)(ref e)).NewValue)
{
((ButtonBase)val).Click += new RoutedEventHandler(CloseOnClick);
}
else
{
((ButtonBase)val).Click -= new RoutedEventHandler(CloseOnClick);
}
}
}
public static bool GetIsConfirmButton(DependencyObject obj)
{
return (bool)obj.GetValue(IsConfirmButtonProperty);
}
public static void SetIsConfirmButton(DependencyObject obj, bool value)
{
obj.SetValue(IsConfirmButtonProperty, (object)value);
}
private static void OnIsConfirmButtonChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Expected O, but got Unknown
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_0034: Expected O, but got Unknown
Button val = (Button)(object)((d is Button) ? d : null);
if (val != null)
{
if ((bool)((DependencyPropertyChangedEventArgs)(ref e)).NewValue)
{
((ButtonBase)val).Click += new RoutedEventHandler(CloseAndConfirmOnClick);
}
else
{
((ButtonBase)val).Click -= new RoutedEventHandler(CloseAndConfirmOnClick);
}
}
}
private static void CloseAndConfirmOnClick(object sender, RoutedEventArgs routedEventArgs)
{
object sender2 = sender;
Executers.InUiAsync((Action)delegate
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
CloseNotification((DependencyObject)sender2, confirm: true);
}, (DispatcherPriority?)null, (TimeSpan?)null, (CancellationToken?)null);
}
private static void CloseOnClick(object sender, RoutedEventArgs routedEventArgs)
{
object sender2 = sender;
Executers.InUiAsync((Action)delegate
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
CloseNotification((DependencyObject)sender2);
}, (DispatcherPriority?)null, (TimeSpan?)null, (CancellationToken?)null);
}
private static void CloseOnFlagChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
if (((DependencyPropertyChangedEventArgs)(ref e)).NewValue is int num && num != 0)
{
CloseNotification(d);
}
}
public static void CloseNotification(DependencyObject dependencyObject, bool confirm = false)
{
NotificationView notificationView = dependencyObject.FindVisualParent<NotificationView>();
if (notificationView != null)
{
if (confirm && notificationView.GetInteractionObject() is ConfirmationObject confirmationObject)
{
confirmationObject.IsConfirmed = true;
}
notificationView.Close();
}
}
}
public static class NotificationViewExtensions
{
public static void WhenOpened(this NotificationView notificationView, Action action)
{
NotificationView notificationView2 = notificationView;
EventSubscriber.OnceOrNow<NotificationView>(notificationView2, (Func<NotificationView, bool>)((NotificationView notificationView) => notificationView.IsOpened), (Action<RoutedEventHandler>)delegate(RoutedEventHandler eh)
{
notificationView2.Opened += eh;
}, (Action<RoutedEventHandler>)delegate(RoutedEventHandler eh)
{
notificationView2.Opened -= eh;
}, action);
}
public static void WhenClosed(this NotificationView notificationView, Action action)
{
NotificationView notificationView2 = notificationView;
EventSubscriber.OnceOrNow<NotificationView>(notificationView2, (Func<NotificationView, bool>)((NotificationView notificationView) => notificationView.IsClosed), (Action<RoutedEventHandler>)delegate(RoutedEventHandler eh)
{
notificationView2.Closed += eh;
}, (Action<RoutedEventHandler>)delegate(RoutedEventHandler eh)
{
notificationView2.Closed -= eh;
}, action);
}
}
public enum NotificationViewState
{
Initial,
Pending,
Error,
Closed,
Closing,
Opened,
Opening
}
internal sealed class GridAdorner : NotificationAdorner<Grid>
{
public GridAdorner(Grid panel, NotificationLayer notificationLayer)
: base(panel, notificationLayer)
{
}
protected override void AddNotification(Grid element, NotificationView view)
{
((Panel)element).Children.Add((UIElement)(object)view);
}
protected override void RemoveNotification(Grid element, NotificationView view)
{
((Panel)element).Children.Remove((UIElement)(object)view);
}
}
internal interface INotificationAdorner
{
void AddNotification(NotificationView view);
void RemoveNotification(NotificationView view);
}
internal sealed class ItemsControlAdorner : NotificationAdorner<ItemsControl>
{
public ItemsControlAdorner(ItemsControl panel, NotificationLayer notificationLayer)
: base(panel, notificationLayer)
{
}
protected override void AddNotification(ItemsControl element, NotificationView view)
{
element.Items.Add((object)view);
}
protected override void RemoveNotification(ItemsControl element, NotificationView view)
{
element.Items.Remove((object)view);
}
}
internal abstract class NotificationAdorner<TElement> : Adorner, INotificationAdorner where TElement : FrameworkElement
{
private TElement? _element;
private readonly VisualCollection _visualCollection;
private readonly NotificationLayer _notificationLayer;
private readonly List<NotificationView> _notifications;
protected override int VisualChildrenCount => _visualCollection.Count;
public NotificationAdorner(TElement element, NotificationLayer notificationLayer)
: base(Guard.EnsureArgumentIsNotNull<NotificationLayer>(notificationLayer, (string)null, "notificationLayer").GetContentElement())
{
//IL_003f: Unknown result type (might be due to invalid IL or missing references)
//IL_0044: Unknown result type (might be due to invalid IL or missing references)
//IL_005b: Expected O, but got Unknown
//IL_0076: Unknown result type (might be due to invalid IL or missing references)
//IL_007b: Unknown result type (might be due to invalid IL or missing references)
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_0090: Unknown result type (might be due to invalid IL or missing references)
//IL_00a6: Expected O, but got Unknown
//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
//IL_00bc: Unknown result type (might be due to invalid IL or missing references)
//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
//IL_00e7: Expected O, but got Unknown
//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
//IL_00fa: Expected O, but got Unknown
_element = Guard.EnsureArgumentIsNotNull<TElement>(element, (string)null, "element");
_notificationLayer = Guard.EnsureArgumentIsNotNull<NotificationLayer>(notificationLayer, (string)null, "notificationLayer");
VisualCollection val = new VisualCollection((Visual)(object)this);
val.Add((Visual)(object)_element);
_visualCollection = val;
_notifications = new List<NotificationView>();
((FrameworkElement)_element).SetBinding(FrameworkElement.WidthProperty, (BindingBase)new Binding
{
Source = _notificationLayer,
Mode = (BindingMode)1,
Path = FrameworkElement.ActualWidthProperty.AsPath()
});
((FrameworkElement)_element).SetBinding(FrameworkElement.HeightProperty, (BindingBase)new Binding
{
Source = _notificationLayer,
Mode = (BindingMode)1,
Path = FrameworkElement.ActualHeightProperty.AsPath()
});
((FrameworkElement)this).Unloaded += (RoutedEventHandler)delegate
{
_visualCollection.Clear();
_element = default(TElement);
};
}
public void AddNotification(NotificationView view)
{
if (_element != null)
{
_notifications.Add(view);
_notificationLayer.TopmostNotification = _notifications.LastOrDefault((NotificationView n) => n.DisplaySettings.IsModal);
AddNotification(_element, view);
if (_notifications.Count == 1)
{
ShowAdorner();
}
}
}
public void RemoveNotification(NotificationView view)
{
if (_element != null)
{
_notifications.Remove(view);
_notificationLayer.TopmostNotification = _notifications.LastOrDefault((NotificationView n) => n.DisplaySettings.IsModal);
RemoveNotification(_element, view);
if (_notifications.Count == 0)
{
CloseAdorner();
}
}
}
protected abstract void AddNotification(TElement element, NotificationView view);
protected abstract void RemoveNotification(TElement element, NotificationView view);
protected override Size MeasureOverride(Size constraint)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_003d: Unknown result type (might be due to invalid IL or missing references)
//IL_0042: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Unknown result type (might be due to invalid IL or missing references)
Size result = ((Adorner)this).MeasureOverride(constraint);
if (_element == null)
{
return result;
}
((UIElement)(object)_element).Measure(constraint);
return ((UIElement)(object)_element).DesiredSize;
}
protected override Size ArrangeOverride(Size finalSize)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_003b: Unknown result type (might be due to invalid IL or missing references)
Size result = ((FrameworkElement)this).ArrangeOverride(finalSize);
if (_element == null)
{
return result;
}
((UIElement)(object)_element).Arrange(new Rect(finalSize));
return finalSize;
}
protected override Visual GetVisualChild(int index)
{
return _visualCollection[index];
}
private void CloseAdorner()
{
GetAdornerLayer().Remove((Adorner)(object)this);
}
private void ShowAdorner()
{
GetAdornerLayer().Add((Adorner)(object)this);
}
private AdornerLayer GetAdornerLayer()
{
return _notificationLayer.GetAdornerLayer() ?? throw new InvalidOperationException("Unable to provide AdornerLayer for element");
}
}
internal sealed class NotificationAdornerFactory
{
private readonly NotificationLayer _notificationLayer;
public NotificationAdornerFactory(NotificationLayer notificationLayer)
{
_notificationLayer = Guard.EnsureArgumentIsNotNull<NotificationLayer>(notificationLayer, (string)null, "notificationLayer");
}
public INotificationAdorner GetAdorner(NotificationDisplaySettings settings)
{
return settings.IsModal ? GetModalAdorner(settings) : GetNonModalAdorner(settings);
}
private INotificationAdorner GetModalAdorner(NotificationDisplaySettings settings)
{
return FindAdorner<GridAdorner>() ?? CreateModalAdorner(settings);
}
private INotificationAdorner GetNonModalAdorner(NotificationDisplaySettings settings)
{
return FindAdorner<ItemsControlAdorner>() ?? CreateNonModalAdorner(settings);
}
private GridAdorner CreateModalAdorner(NotificationDisplaySettings settings)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Expected O, but got Unknown
Grid panel = new Grid
{
Focusable = false
};
return new GridAdorner(panel, _notificationLayer);
}
private ItemsControlAdorner CreateNonModalAdorner(NotificationDisplaySettings settings)
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Expected O, but got Unknown
//IL_004d: Expected O, but got Unknown
FrameworkElementFactory val = new FrameworkElementFactory(typeof(StackPanel));
val.SetValue(FrameworkElement.VerticalAlignmentProperty, (object)(VerticalAlignment)2);
ItemsControl panel = new ItemsControl
{
Focusable = false,
VerticalAlignment = (VerticalAlignment)2,
ItemsPanel = new ItemsPanelTemplate
{
VisualTree = val
}
};
return new ItemsControlAdorner(panel, _notificationLayer);
}
private TNotificationAdorner? FindAdorner<TNotificationAdorner>() where TNotificationAdorner : INotificationAdorner
{
AdornerLayer adornerLayer = _notificationLayer.GetAdornerLayer();
UIElement contentElement = _notificationLayer.GetContentElement();
Adorner[] adorners = adornerLayer.GetAdorners(contentElement);
if (adorners != null)
{
return adorners.OfType<TNotificationAdorner>().FirstOrDefault();
}
return default(TNotificationAdorner);
}
}
public sealed class ActiveViewChangedEventArgs : EventArgs
{
public string RegionName { get; }
public RegionView? OldView { get; }
public RegionView? NewView { get; }
public ActiveViewChangedEventArgs(string regionName, RegionView? oldView, RegionView? newView)
{
RegionName = Guard.EnsureArgumentIsNotNullOrEmpty(regionName, (string)null, "regionName");
OldView = oldView;
NewView = newView;
}
}
public abstract class BaseRegionBehaviorsRegistry : IRegionBehaviorsRegistry
{
private readonly List<Func<IRegionBehavior>> _behaviorFactories = new List<Func<IRegionBehavior>>();
protected void AddBehaviorFactory(Func<IRegionBehavior> factory)
{
Guard.ArgumentIsNotNull<Func<IRegionBehavior>>(factory, (string)null, "factory");
_behaviorFactories.Add(factory);
}
public IList<IRegionBehavior> CreateBehaviors()
{
return _behaviorFactories.Select((Func<IRegionBehavior> f) => f()).ToList();
}
}
public sealed class DisposingRemovedViewsBehavior : RegionBehavior
{
protected override void OnAttach()
{
Guard.IsNotNull<Region>(base.Region, (string)null, "Region");
base.Region.ViewAdded += OnViewAdded;
base.Region.ViewRemoved += OnViewRemoved;
}
private void OnViewAdded(object? sender, ViewAddedEventArgs args)
{
DispositionContext.Initialize((DependencyObject)(object)args.AddedView.View);
}
private void OnViewRemoved(object? sender, ViewRemovedEventArgs args)
{
DispositionContext.Dispose((DependencyObject)(object)args.RemovedView.View);
}
}
public interface INavigationAware<TParam> : INavigationAware
{
void SetParameters(TParam parameter);
}
public interface INavigationAware
{
void OnNavigatedTo(NavigationContext context);
void OnNavigatedFrom(NavigationContext context);
void BuildOptions(NavigationOptionsBuilder builder);
}
public interface IRegionBehavior
{
Region? Region { get; }
void Attach(Region region);
}
public interface IRegionBehaviorsRegistry
{
IList<IRegionBehavior> CreateBehaviors();
}
public interface IRegionViewFactory
{
FrameworkElement CreateView(string viewName);
}
public abstract class NavigatableViewModel<TParams> : NavigatableViewModel, INavigationAware<TParams>, INavigationAware
{
protected NavigatableViewModel()
{
}
protected NavigatableViewModel(string traceComponent)
: base(traceComponent)
{
}
protected NavigatableViewModel(ComponentTracerParameters tracerParameters)
: base(tracerParameters)
{
}
public abstract void SetParameters(TParams parameter);
}
public abstract class NavigatableViewModel : BaseViewModel, INavigationAware
{
protected NavigatableViewModel()
{
}
protected NavigatableViewModel(string traceComponent)
: base(traceComponent)
{
}
protected NavigatableViewModel(ComponentTracer tracer)
: base(tracer)
{
}
protected NavigatableViewModel(ComponentTracerParameters tracerParameters)
: base(tracerParameters)
{
}
public virtual void OnNavigatedFrom(NavigationContext context)
{
}
public virtual void OnNavigatedTo(NavigationContext context)
{
}
public virtual void BuildOptions(NavigationOptionsBuilder builder)
{
}
}
public sealed class NavigateEventArgs : EventArgs
{
public string TargetViewName { get; }
public string ActiveViewName { get; }
public string RegionName { get; }
internal NavigateEventArgs(Region region, string? targetViewName)
{
Guard.ArgumentIsNotNull<Region>(region, (string)null, "region");
TargetViewName = targetViewName ?? "<none>";
ActiveViewName = region.ActiveView?.Name ?? "<none>";
RegionName = region.Name;
}
}
public sealed class NavigationContext
{
public RegionView? ActiveView { get; }
public RegionView? TargetView { get; }
internal NavigationContext(RegionView? targetView, RegionView? activeView)
{
TargetView = targetView;
ActiveView = activeView;
}
}
internal sealed class NavigationHistory : List<string>
{
public void Push(string item)
{
Guard.ArgumentIsNotNull<string>(item, (string)null, "item");
Insert(0, item);
}
public string? Pop()
{
string text = this.FirstOrDefault();
if (text == null)
{
return null;
}
Remove(text);
return text;
}
public IList<string> PopRange(int count)
{
Guard.Argument(count > 0, (string)null, "count > 0");
List<string> range = GetRange(0, count);
RemoveRange(0, count);
return range;
}
}
public sealed class NavigationOptions
{
public bool KeepAlive { get; set; } = false;
public bool SkipOnBackNavigation { get; set; } = false;
public bool CanNavigateFrom { get; set; } = true;
}
public sealed class NavigationOptionsBuilder
{
private readonly NavigationOptions _instance = new NavigationOptions();
public NavigationOptions Build()
{
return _instance;
}
public void CopyFrom(NavigationOptions source)
{
_instance.CanNavigateFrom = source.CanNavigateFrom;
_instance.KeepAlive = source.KeepAlive;
_instance.SkipOnBackNavigation = source.SkipOnBackNavigation;
}
public void SetCanNavigateFrom(bool value)
{
_instance.CanNavigateFrom = value;
}
public void SetKeepAlive(bool value)
{
_instance.KeepAlive = value;
}
public void SetSkipOnBackNavigation(bool value)
{
_instance.SkipOnBackNavigation = value;
}
}
public sealed class Region : IEnumerable<RegionView>, IEnumerable
{
private const string EmptyView = ":EmptyView:";
private RegionView? _activeView;
private RegionView? _pendingView;
private readonly List<RegionView> _views = new List<RegionView>();
private readonly NavigationHistory _history = new NavigationHistory();
private readonly WeakReference<ContentControl> _viewHost = new WeakReference<ContentControl>(null);
private readonly IRegionViewFactory _viewFactory;
private readonly IList<IRegionBehavior>? _behaviors;
private static readonly ComponentTracer _tracer = ComponentTracer.Get(UIKitComponentTracers.Navigation);
public string Name { get; }
public RegionView? ActiveView
{
get
{
return _activeView ?? _pendingView;
}
private set
{
_activeView = value;
}
}
public event EventHandler<ActiveViewChangedEventArgs> ActiveViewChanged = delegate
{
};
public event EventHandler<ViewAddedEventArgs> ViewAdded = delegate
{
};
public event EventHandler<ViewRemovedEventArgs> ViewRemoved = delegate
{
};
public event EventHandler<NavigateEventArgs> Navigating = delegate
{
};
public event EventHandler<NavigateEventArgs> Navigated = delegate
{
};
public Region(string regionName, ContentControl regionHost, IRegionViewFactory viewFactory, IRegionBehaviorsRegistry regionBehaviorsRegistry)
{
Name = Guard.EnsureArgumentIsNotNullOrEmpty(regionName, (string)null, "regionName");
_viewHost = new WeakReference<ContentControl>(Guard.EnsureArgumentIsNotNull<ContentControl>(regionHost, (string)null, "regionHost"));
_viewFactory = Guard.EnsureArgumentIsNotNull<IRegionViewFactory>(viewFactory, (string)null, "viewFactory");
_behaviors = Guard.EnsureArgumentIsNotNull<IRegionBehaviorsRegistry>(regionBehaviorsRegistry, (string)null, "regionBehaviorsRegistry").CreateBehaviors();
EnumerableExtensions.ForEach<IRegionBehavior>((IEnumerable<IRegionBehavior>)_behaviors, (Action<IRegionBehavior>)delegate(IRegionBehavior b)
{
b.Attach(this);
});
ActiveViewChanged += OnActiveViewChanged;
}
public IEnumerator<RegionView> GetEnumerator()
{
return ((IEnumerable<RegionView>)_views.ToList()).GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return ((IEnumerable)_views.ToList()).GetEnumerator();
}
public RegionView? Navigate<TTargetView>() where TTargetView : FrameworkElement
{
return Navigate<TTargetView, object>();
}
public RegionView? Navigate<TTargetView, TParameters>(TParameters? parameters = default(TParameters?)) where TTargetView : FrameworkElement
{
string fullName = typeof(TTargetView).FullName;
return Navigate(fullName, parameters);
}
public RegionView? NavigateForward<TTargetView>() where TTargetView : FrameworkElement
{
return NavigateForward<TTargetView, object>();
}
public RegionView? NavigateForward<TTargetView, TParameters>(TParameters? parameters = default(TParameters?)) where TTargetView : FrameworkElement
{
string fullName = typeof(TTargetView).FullName;
return NavigateForward(fullName, parameters);
}
public RegionView? NavigateBack()
{
return NavigateBack<object>();
}
public RegionView? NavigateBack<TParameters>(TParameters? parameters = default(TParameters?))
{
string targetViewName = _history.Skip(1).FirstOrDefault() ?? string.Empty;
return NavigateBack(targetViewName, parameters);
}
public RegionView? NavigateBack<TTargetView, TParameters>(TParameters? parameters = default(TParameters?)) where TTargetView : FrameworkElement
{
string fullName = typeof(TTargetView).FullName;
return NavigateBack(fullName, parameters);
}
public void Clear()
{
NavigateBack<object>(":EmptyView:", null);
}
public bool CanNavigateForward()
{
RegionView? activeView = ActiveView;
return (activeView != null && activeView.Options.CanNavigateFrom) || ActiveView == null;
}
public bool CanNavigateBack()
{
return ActiveView?.Options.CanNavigateFrom ?? false;
}
private RegionView? Navigate<TParameters>(string targetViewName, TParameters? parameters)
{
if (_history.Contains(targetViewName))
{
return NavigateBack(targetViewName, parameters);
}
return NavigateForward(targetViewName, parameters);
}
private RegionView? NavigateForward<TParameters>(string targetViewName, TParameters? parameters)
{
if (!CanNavigateForwardInternal(targetViewName))
{
return ActiveView;
}
_tracer.TraceInformation("Navigating forward to view " + targetViewName + " in region " + Name + ".");
_history.Push(targetViewName);
RegionView view = FindOrCreateView(targetViewName);
return SetActiveView(view, targetViewName, parameters);
}
private RegionView? NavigateBack<TParameters>(string targetViewName, TParameters? parameters)
{
if (!CanNavigateBackInternal(targetViewName))
{
return ActiveView;
}
_tracer.TraceInformation("Navigating back to view " + targetViewName + " in region " + Name + ".");
string viewName = _history.Pop();
RegionView regionView = TryFindView(viewName);
if (regionView != null)
{
RemoveView(regionView);
}
if (targetViewName == ":EmptyView:")
{
_history.Clear();
_views.Clear();
}
int num = _history.IndexOf(targetViewName);
if (num > 0)
{
EnumerableExtensions.WhereNotNull<RegionView>(_history.PopRange(num).Select(TryFindView)).ToList().ForEach(RemoveView);
}
RegionView view = TryFindView(targetViewName);
return SetActiveView(view, targetViewName, parameters);
}
private RegionView? SetActiveView<TParameters>(RegionView? view, string viewName, TParameters? parameters)
{
string viewName2 = viewName;
RegionView view2 = view;
TParameters parameters2 = parameters;
if (!_viewHost.TryGetTarget(out ContentControl viewHost))
{
_tracer.TraceInformation("ViewHost is not set.");
return ActiveView;
}
if (!((FrameworkElement)viewHost).IsLoaded)
{
_pendingView = view2;
}
((DependencyObject)(object)viewHost).WhenLoaded(delegate
{
_pendingView = null;
NavigateEventArgs e = new NavigateEventArgs(this, viewName2);
ActiveViewChangedEventArgs e2 = new ActiveViewChangedEventArgs(Name, ActiveView, view2);
this.Navigating(this, e);
ActiveView?.OnNavigatedFrom(view2);
ActiveView = view2;
viewHost.Content = ActiveView?.View;
ActiveView?.SetParameters(parameters2);
ActiveView?.OnNavigatedTo(view2);
this.ActiveViewChanged(this, e2);
this.Navigated(this, e);
});
return view2;
}
private bool CanNavigateForwardInternal(string targetViewName)
{
if (!CanNavigateForward())
{
_tracer.TraceInformation("Cant navigate forward from view " + targetViewName + " in region " + Name);
return false;
}
if (ActiveView?.Name == targetViewName)
{
_tracer.TraceInformation("Already navigated to view " + targetViewName + " in region " + Name);
return false;
}
return true;
}
private bool CanNavigateBackInternal(string targetViewName)
{
if (!CanNavigateBack())
{
_tracer.TraceInformation("Cant navigate back to view " + targetViewName + " in region " + Name + ". Back navigation suppressed by Options.");
return false;
}
if (!_history.Contains(targetViewName) && targetViewName != ":EmptyView:")
{
_tracer.TraceInformation("Cant navigate back to view " + targetViewName + " in region " + Name + ". Target view does not present in history.");
return false;
}
if (ActiveView?.Name == targetViewName)
{
_tracer.TraceInformation("Already navigated to view " + targetViewName + " in region " + Name);
return false;
}
return true;
}
private void AddView(RegionView view)
{
_tracer.TraceInformation("Add " + view.Name + " to cache in region " + Name);
_views.Add(view);
this.ViewAdded?.Invoke(this, new ViewAddedEventArgs(Name, view));
}
private void RemoveView(RegionView view)
{
if (_history.Contains(view.Name))
{
_tracer.TraceInformation("Removing " + view.Name + " from cache in region " + Name + " skipped. View present in navigation history.");
}
else if (view.Options.KeepAlive)
{
_tracer.TraceInformation("Removing " + view.Name + " from cache in region " + Name + " skipped. View has KeepAlive option.");
}
else
{
_tracer.TraceInformation("Remove " + view.Name + " from cache in region " + Name);
_views.Remove(view);
this.ViewRemoved?.Invoke(this, new ViewRemovedEventArgs(Name, view));
}
}
private RegionView FindOrCreateView(string viewName)
{
RegionView regionView = TryFindView(viewName);
if (regionView == null)
{
regionView = new RegionView(viewName, _viewFactory, this);
AddView(regionView);
_tracer.TraceInformation("Created new view " + viewName + " in region " + Name);
}
else
{
_tracer.TraceInformation("Found existing view " + viewName + " in region " + Name);
}
return regionView;
}
private RegionView? TryFindView(string? viewName)
{
string viewName2 = viewName;
if (string.IsNullOrEmpty(viewName2))
{
return null;
}
return _views.FirstOrDefault((RegionView view) => view.Name == viewName2);
}
private void OnActiveViewChanged(object? sender, ActiveViewChangedEventArgs e)
{
RegionView oldView = e.OldView;
if (oldView != null && oldView.Options.SkipOnBackNavigation)
{
_history.Remove(oldView.Name);
RemoveView(oldView);
}
}
}
public abstract class RegionBehavior : IRegionBehavior
{
public Region? Region { get; private set; }
public void Attach(Region region)
{
Region = Guard.EnsureArgumentIsNotNull<Region>(region, (string)null, "region");
OnAttach();
}
protected abstract void OnAttach();
}
internal sealed class RegionBehaviorRegistry : BaseRegionBehaviorsRegistry
{
public RegionBehaviorRegistry(Func<DisposingRemovedViewsBehavior> disposingRemovedViewsBehavior)
{
Guard.ArgumentIsNotNull<Func<DisposingRemovedViewsBehavior>>(disposingRemovedViewsBehavior, (string)null, "disposingRemovedViewsBehavior");
AddBehaviorFactory(disposingRemovedViewsBehavior);
}
}
public sealed class RegionCreatedEventArgs : EventArgs
{
public Region Region { get; }
internal RegionCreatedEventArgs(Region region)
{
Region = Guard.EnsureArgumentIsNotNull<Region>(region, (string)null, "region");
}
}
public sealed class RegionView
{
private readonly Lazy<FrameworkElement> _view;
private readonly Region _region;
private readonly IRegionViewFactory _viewFactory;
private static readonly ComponentTracer _tracer = ComponentTracer.Get(UIKitComponentTracers.Navigation);
public string Name { get; }
public FrameworkElement View => _view.Value;
public object? ViewModel
{
get
{
FrameworkElement value = _view.Value;
return (value != null) ? value.DataContext : null;
}
}
public NavigationOptions Options => GetOptions();
public RegionView(string viewName, IRegionViewFactory viewFactory, Region region)
{
string viewName2 = viewName;
base..ctor();
RegionView regionView = this;
Name = Guard.EnsureArgumentIsNotNullOrEmpty(viewName2, (string)null, "viewName");
_region = Guard.EnsureArgumentIsNotNull<Region>(region, (string)null, "region");
_viewFactory = Guard.EnsureArgumentIsNotNull<IRegionViewFactory>(viewFactory, (string)null, "viewFactory");
_view = new Lazy<FrameworkElement>((Func<FrameworkElement>)(() => Guard.EnsureIsNotNull<FrameworkElement>(regionView._viewFactory.CreateView(viewName2), (string)null, "_viewFactory.CreateView(viewName)")));
}
public override string ToString()
{
return Name;
}
internal void SetParameters<TParameters>(TParameters? parameters)
{
TParameters parameters2 = parameters;
if (parameters2 != null)
{
Guard.Assert(View is INavigationAware<TParameters> || ViewModel is INavigationAware<TParameters>, "View or ViewModel must implement INavigationAware when navigating to this View with parameters.", "View is INavigationAware<TParameters> ||\r\n ViewModel is INavigationAware<TParameters>");
Execute(View, delegate(INavigationAware<TParameters> v)
{
v.SetParameters(parameters2);
});
Execute(ViewModel, delegate(INavigationAware<TParameters> vm)
{
vm.SetParameters(parameters2);
});
}
}
internal void OnNavigatedTo(RegionView? targetView)
{
NavigationContext context = new NavigationContext(targetView, _region.ActiveView);
_tracer.TraceInformation("Notifying view " + Name + " about navigation to it");
Execute(View, delegate(INavigationAware v)
{
v.OnNavigatedTo(context);
});
Execute(ViewModel, delegate(INavigationAware vm)
{
vm.OnNavigatedTo(context);
});
}
internal void OnNavigatedFrom(RegionView? targetView)
{
NavigationContext context = new NavigationContext(targetView, _region.ActiveView);
_tracer.TraceInformation("Notifying view " + Name + " about navigation from it");
Execute(View, delegate(INavigationAware v)
{
v.OnNavigatedFrom(context);
});
Execute(ViewModel, delegate(INavigationAware vm)
{
vm.OnNavigatedFrom(context);
});
}
private NavigationOptions GetOptions()
{
NavigationOptionsBuilder builder = new NavigationOptionsBuilder();
Execute(View, delegate(INavigationAware v)
{
v.BuildOptions(builder);
});
Execute(ViewModel, delegate(INavigationAware vm)
{
vm.BuildOptions(builder);
});
return builder.Build();
}
private static void Execute<T>(object? obj, Action<T> action) where T : class
{
if (obj is T obj2)
{
action(obj2);
}
}
}
internal sealed class RegionViewFactory : IRegionViewFactory
{
private readonly IUnityContainer _container;
public RegionViewFactory(IUnityContainer container)
{
_container = Guard.EnsureArgumentIsNotNull<IUnityContainer>(container, (string)null, "container");
}
public FrameworkElement CreateView(string viewName)
{
//IL_0013: Unknown result type (might be due to invalid IL or missing references)
//IL_0019: Expected O, but got Unknown
return (FrameworkElement)_container.Resolve<object>(viewName, (ResolverOverride[])(object)new ResolverOverride[0]);
}
}
public sealed class Regions : IEnumerable<Region>, IEnumerable
{
public static readonly DependencyProperty RegionNameProperty = DependencyProperty.RegisterAttached("RegionName", typeof(string), typeof(Regions), new PropertyMetadata((object)null, new PropertyChangedCallback(OnRegionNameChanged)));
private readonly List<Region> _regions = new List<Region>();
private readonly IRegionViewFactory _regionViewFactory;
private readonly IRegionBehaviorsRegistry _regionBehaviorsRegistry;
private static readonly ComponentTracer _tracer = ComponentTracer.Get(UIKitComponentTracers.Navigation);
public event EventHandler<RegionCreatedEventArgs> RegionCreated = delegate
{
};
public event EventHandler<ActiveViewChangedEventArgs> ActiveViewChanged = delegate
{
};
public event EventHandler<NavigateEventArgs> Navigating = delegate
{
};
public event EventHandler<NavigateEventArgs> Navigated = delegate
{
};
public Regions(IRegionViewFactory regionViewFactory, IRegionBehaviorsRegistry regionBehaviorsRegistry)
{
_regionViewFactory = Guard.EnsureArgumentIsNotNull<IRegionViewFactory>(regionViewFactory, (string)null, "regionViewFactory");
_regionBehaviorsRegistry = Guard.EnsureArgumentIsNotNull<IRegionBehaviorsRegistry>(regionBehaviorsRegistry, (string)null, "regionBehaviorsRegistry");
}
public static string GetRegionName(DependencyObject obj)
{
return (string)obj.GetValue(RegionNameProperty);
}
public static void SetRegionName(DependencyObject obj, string value)
{
obj.SetValue(RegionNameProperty, (object)value);
}
private static void OnRegionNameChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
ServiceLocator.GetService<Regions>().CreateRegion(d);
}
public IEnumerator<Region> GetEnumerator()
{
return ((IEnumerable<Region>)_regions.ToList()).GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return ((IEnumerable)_regions.ToList()).GetEnumerator();
}
private void CreateRegion(DependencyObject control)
{
ContentControl regionHost = Guard.EnsureArgumentIsInstanceOfType<ContentControl>((object)control, (string)null, "control");
string regionName = Guard.EnsureArgumentIsNotNullOrEmpty(GetRegionName(control), (string)null, "GetRegionName(control)");
Region region2 = _regions.FirstOrDefault((Region region) => region.Name == regionName);
if (region2 == null)
{
region2 = new Region(regionName, regionHost, _regionViewFactory, _regionBehaviorsRegistry);
region2.Navigated += OnNavigated;
region2.Navigating += OnNavigating;
region2.ActiveViewChanged += OnActiveViewChanged;
_regions.Add(region2);
_tracer.TraceInformation("Region " + regionName + " created");
this.RegionCreated(this, new RegionCreatedEventArgs(region2));
}
else
{
_tracer.TraceInformation("Region " + regionName + " already exists");
}
}
private void OnNavigating(object? sender, NavigateEventArgs args)
{
_tracer.TraceInformation("Navigating to view " + args.TargetViewName + " in region " + args.RegionName);
this.Navigating(sender, args);
}
private void OnNavigated(object? sender, NavigateEventArgs args)
{
_tracer.TraceInformation("Navigated to view " + args.ActiveViewName + " in region " + args.RegionName);
this.Navigated(sender, args);
}
private void OnActiveViewChanged(object? sender, ActiveViewChangedEventArgs args)
{
_tracer.TraceInformation($"Active view changed in region {args.RegionName}: old view {args.OldView}, new view {args.NewView}");
this.ActiveViewChanged(sender, args);
}
}
public sealed class ViewAddedEventArgs : EventArgs
{
public string RegionName { get; }
public RegionView AddedView { get; }
internal ViewAddedEventArgs(string regionName, RegionView addedView)
{
RegionName = Guard.EnsureArgumentIsNotNullOrEmpty(regionName, (string)null, "regionName");
AddedView = Guard.EnsureArgumentIsNotNull<RegionView>(addedView, (string)null, "addedView");
}
}
public sealed class ViewRemovedEventArgs : EventArgs
{
public string RegionName { get; }
public RegionView RemovedView { get; }
internal ViewRemovedEventArgs(string regionName, RegionView removedView)
{
RegionName = Guard.EnsureArgumentIsNotNullOrEmpty(regionName, (string)null, "regionName");
RemovedView = Guard.EnsureArgumentIsNotNull<RegionView>(removedView, (string)null, "removedView");
}
}
[MarkupExtensionReturnType(typeof(DataTemplate))]
public sealed class DataTemplateExtension : MarkupExtension
{
public Type? Type { get; set; }
public DataTemplateExtension()
{
}
public DataTemplateExtension(Type frameworkElementType)
{
Type = Guard.EnsureArgumentIsNotNull<Type>(frameworkElementType, (string)null, "frameworkElementType");
}
public override object? ProvideValue(IServiceProvider serviceProvider)
{
//IL_004d: Unknown result type (might be due to invalid IL or missing references)
//IL_0053: Expected O, but got Unknown
//IL_0033: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_003f: Unknown result type (might be due to invalid IL or missing references)
//IL_0049: Expected O, but got Unknown
//IL_004b: Expected O, but got Unknown
if (Type != null)
{
Guard.Assert(TypeExtensions.IsAssignableTo(Type, typeof(FrameworkElement)), (string)null, "Type.IsAssignableTo(typeof(FrameworkElement))");
return (object?)new DataTemplate
{
VisualTree = new FrameworkElementFactory(Type)
};
}
return (object?)new DataTemplate();
}
}
public sealed class EnumSourceExtension : MarkupExtension
{
private Type? _enumType;
private IEnumerable<Enum>? _enumValues;
public Type? Type
{
get
{
return _enumType;
}
set
{
Guard.ArgumentIsNotNull<Type>(value, (string)null, "value");
Guard.Assert(value.IsEnum, (string)null, "value.IsEnum");
_enumType = value;
_enumValues = Enum.GetValues(_enumType).Cast<Enum>().ToArray();
}
}
public object? Except { get; set; }
public override object ProvideValue(IServiceProvider serviceProvider)
{
Guard.IsNotNull<Type>(_enumType, (string)null, "_enumType");
Guard.IsNotNull<IEnumerable<Enum>>(_enumValues, (string)null, "_enumValues");
if (Except == null)
{
return _enumValues;
}
Enum[] exceptItems;
if (Except is IEnumerable source)
{
exceptItems = source.Cast<Enum>().Select(EnsureExpectedType).ToArray();
}
else
{
if (!(Except is Enum item))
{
throw new InvalidOperationException("Except must be of type Enum or IEnumerable.");
}
exceptItems = new Enum[1] { EnsureExpectedType(item) };
}
return _enumValues.Where((Enum v) => !exceptItems.Contains(v));
}
private Enum EnsureExpectedType(Enum item)
{
Type type = item.GetType();
if (type != Type)
{
throw new InvalidOperationException($"Except value '{item}' has invalid type. Expected type - {Type}, actual type - {type}.");
}
return item;
}
}
public abstract class ExtendedMarkupExtension : MarkupExtension
{
protected enum TargetType
{
Unknown,
Freezable,
Setter,
Trigger,
ControlTemplate,
Control,
MarkupExtension
}
public sealed override object? ProvideValue(IServiceProvider? serviceProvider)
{
//IL_0042: Unknown result type (might be due to invalid IL or missing references)
//IL_004d: Expected O, but got Unknown
//IL_0054: Unknown result type (might be due to invalid IL or missing references)
//IL_005f: Expected O, but got Unknown
//IL_0066: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Expected O, but got Unknown
//IL_0090: Unknown result type (might be due to invalid IL or missing references)
//IL_009a: Expected O, but got Unknown
//IL_0078: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0088: Expected O, but got Unknown
//IL_0088: Expected O, but got Unknown
//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Expected O, but got Unknown
object targetObject;
object targetProperty;
TargetType targetType = GetTargetType(serviceProvider, out targetObject, out targetProperty);
if (1 == 0)
{
}
object obj = targetType switch
{
TargetType.Unknown => ProvideSelf(serviceProvider),
TargetType.Freezable => ProvideForFreezable(serviceProvider, (Freezable)targetObject, targetProperty),
TargetType.Setter => ProvideForSetter(serviceProvider, (SetterBase)targetObject, targetProperty),
TargetType.Trigger => ProvideForTrigger(serviceProvider, (TriggerBase)targetObject, targetProperty),
TargetType.Control => ProvideForControl(serviceProvider, (DependencyObject)targetObject, (DependencyProperty)targetProperty),
TargetType.ControlTemplate => ProvideForControlTemplate(serviceProvider, targetObject, (DependencyProperty)targetProperty),
TargetType.MarkupExtension => ProvideForMarkupExtension(serviceProvider, (MarkupExtension)targetObject, targetProperty),
_ => null,
};
if (1 == 0)
{
}
object obj2 = obj;
return obj2 ?? ProvideValue(serviceProvider, targetType);
}
protected virtual object? ProvideForFreezable(IServiceProvider serviceProvider, Freezable targetObject, object targetProperty)
{
return null;
}
protected virtual object? ProvideForControl(IServiceProvider serviceProvider, DependencyObject targetObject, DependencyProperty targetProperty)
{
return null;
}
protected virtual object? ProvideForControlTemplate(IServiceProvider serviceProvider, object targetObject, DependencyProperty targetProperty)
{
return null;
}
protected virtual object? ProvideForSetter(IServiceProvider serviceProvider, SetterBase targetObject, object targetProperty)
{
return null;
}
protected virtual object? ProvideForTrigger(IServiceProvider serviceProvider, TriggerBase targetObject, object targetProperty)
{
return null;
}
protected virtual object? ProvideForMarkupExtension(IServiceProvider serviceProvider, MarkupExtension markupExtension, object targetProperty)
{
return null;
}
protected virtual object? ProvideSelf(IServiceProvider? serviceProvider)
{
return this;
}
protected virtual object? ProvideValue(IServiceProvider? serviceProvider, TargetType valueType)
{
return DependencyProperty.UnsetValue;
}
private static bool TryGetTargetInfo(IServiceProvider serviceProvider, [NotNullWhen(true)] out object? targetObject, [NotNullWhen(true)] out object? targetProperty)
{
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Expected O, but got Unknown
targetObject = null;
targetProperty = null;
IProvideValueTarget val = (IProvideValueTarget)serviceProvider.GetService(typeof(IProvideValueTarget));
if (val != null)
{
targetObject = val.TargetObject;
targetProperty = val.TargetProperty;
return true;
}
return false;
}
private static TargetType GetTargetType(IServiceProvider? serviceProvider, out object? targetObject, out object? targetProperty)
{
targetObject = null;
targetProperty = null;
if (serviceProvider == null)
{
return TargetType.Unknown;
}
if (TryGetTargetInfo(serviceProvider, out targetObject, out targetProperty))
{
if (targetObject is Freezable)
{
return TargetType.Freezable;
}
if (targetObject is DependencyObject && targetProperty is DependencyProperty)
{
return TargetType.Control;
}
if (!(targetObject is DependencyObject) && targetProperty is DependencyProperty)
{
return TargetType.ControlTemplate;
}
if (targetObject is SetterBase)
{
return TargetType.Setter;
}
if (targetObject is TriggerBase)
{
return TargetType.Trigger;
}
if (targetObject is MarkupExtension)
{
return TargetType.MarkupExtension;
}
}
return TargetType.Unknown;
}
}
[MarkupExtensionReturnType(typeof(Style))]
public sealed class MultiStyleExtension : MarkupExtension
{
private readonly string[] _resourceKeys;
public MultiStyleExtension(string resourceKeys)
{
Guard.ArgumentIsNotNullOrWhiteSpace(resourceKeys, (string)null, "resourceKeys");
_resourceKeys = resourceKeys.Split(new char[1] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
Guard.Assert(_resourceKeys.Length != 0, "No resource keys specified", "_resourceKeys.Length > 0");
}
public override object ProvideValue(IServiceProvider serviceProvider)
{
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Expected O, but got Unknown
Style style;
if (_resourceKeys.Length == 1)
{
return TryGetStyle(serviceProvider, _resourceKeys[0], out style) ? ((MultiStyleExtension)(object)style) : this;
}
Style val = new Style();
string[] resourceKeys = _resourceKeys;
foreach (string resourceKey in resourceKeys)
{
if (!TryGetStyle(serviceProvider, resourceKey, out Style style2))
{
return this;
}
val.Merge(style2);
}
return val;
}
private static bool TryGetStyle(IServiceProvider serviceProvider, string resourceKey, [NotNullWhen(true)] out Style? style)
{
//IL_0085: Unknown result type (might be due to invalid IL or missing references)
style = null;
object obj = resourceKey;
if (resourceKey == ".")
{
object? service = serviceProvider.GetService(typeof(IProvideValueTarget));
IProvideValueTarget val = (IProvideValueTarget)((service is IProvideValueTarget) ? service : null);
if (val != null)
{
object targetObject = val.TargetObject;
DependencyObject val2 = (DependencyObject)((targetObject is DependencyObject) ? targetObject : null);
if (val2 != null)
{
obj = ((object)val2).GetType();
goto IL_0064;
}
}
return false;
}
goto IL_0064;
IL_0064:
if (serviceProvider.GetService(typeof(IXamlSchemaContextProvider)) != null)
{
object obj2 = ((MarkupExtension)new StaticResourceExtension(obj)).ProvideValue(serviceProvider);
style = (Style?)((obj2 is Style) ? obj2 : null);
}
if (style == null)
{
object? service2 = serviceProvider.GetService(typeof(IProvideValueTarget));
IProvideValueTarget val3 = (IProvideValueTarget)((service2 is IProvideValueTarget) ? service2 : null);
if (val3 != null)
{
object targetObject2 = val3.TargetObject;
FrameworkElement val4 = (FrameworkElement)((targetObject2 is FrameworkElement) ? targetObject2 : null);
if (val4 != null)
{
object obj3 = val4.FindResource(obj);
style = (Style?)((obj3 is Style) ? obj3 : null);
}
}
}
if (style == null)
{
object obj4 = Application.Current.TryFindResource(obj);
style = (Style?)((obj4 is Style) ? obj4 : null);
}
Guard.IsNotNull<Style>(style, "Could not find style with resource key " + resourceKey, "style");
return true;
}
}
public abstract class BaseItemIndexExtension<T> : ExtendedMarkupExtension
{
public T? True { get; set; }
public T? False { get; set; }
public MarkupExtension? TrueSource { get; set; }
public MarkupExtension? FalseSource { get; set; }
public ItemIndexConditionType? Condition { get; set; }
public int ConditionParameter { get; set; }
public MarkupExtension? ConditionParameterSource { get; set; }
protected BaseItemIndexExtension(T? trueValue, T? falseValue)
{
True = trueValue;
False = falseValue;
}
protected override object? ProvideValue(IServiceProvider? serviceProvider, TargetType valueType)
{
return ((MarkupExtension)CreateItemToIndexBinding(serviceProvider)).ProvideValue(serviceProvider);
}
private MultiBinding CreateItemToIndexBinding(IServiceProvider? serviceProvider)
{
//IL_0013: Unknown result type (might be due to invalid IL or missing references)
//IL_0019: Expected O, but got Unknown
//IL_001f: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Expected O, but got Unknown
//IL_003d: Expected O, but got Unknown
//IL_0044: Unknown result type (might be due to invalid IL or missing references)
//IL_004a: Expected O, but got Unknown
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0051: Expected O, but got Unknown
//IL_0095: Unknown result type (might be due to invalid IL or missing references)
//IL_009a: Unknown result type (might be due to invalid IL or missing references)
//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
//IL_012c: Unknown result type (might be due to invalid IL or missing references)
//IL_0132: Expected O, but got Unknown
//IL_013e: Unknown result type (might be due to invalid IL or missing references)
//IL_0148: Expected O, but got Unknown
//IL_014a: Unknown result type (might be due to invalid IL or missing references)
//IL_0150: Expected O, but got Unknown
//IL_0109: Unknown result type (might be due to invalid IL or missing references)
//IL_010e: Unknown result type (might be due to invalid IL or missing references)
Guard.IsNotNull<ItemIndexConditionType>(Condition, (string)null, "Condition");
MultiBinding val = new MultiBinding();
val.Bindings.Add((BindingBase)new Binding
{
RelativeSource = new RelativeSource
{
Mode = (RelativeSourceMode)2
}
});
Collection<BindingBase> bindings = val.Bindings;
Binding val2 = new Binding();
Binding obj = val2;
RelativeSource val3 = new RelativeSource();
val3.Mode = (RelativeSourceMode)3;
val3.AncestorType = typeof(ItemsControl);
obj.RelativeSource = val3;
bindings.Add((BindingBase)(object)val2);
val.Bindings.Add((BindingBase)(((object)ConditionParameterSource?.ExpandTo<Binding>(serviceProvider)) ?? ((object)new Binding
{
Source = ConditionParameter
})));
val.Bindings.Add((BindingBase)(((object)TrueSource?.ExpandTo<Binding>(serviceProvider)) ?? ((object)new Binding
{
Source = True
})));
val.Bindings.Add((BindingBase)(((object)FalseSource?.ExpandTo<Binding>(serviceProvider)) ?? ((object)new Binding
{
Source = False
})));
Collection<BindingBase> bindings2 = val.Bindings;
val2 = new Binding();
val2.Path = new PropertyPath("Items.Count", new object[0]);
Binding obj2 = val2;
val3 = new RelativeSource();
val3.Mode = (RelativeSourceMode)3;
val3.AncestorType = typeof(ItemsControl);
obj2.RelativeSource = val3;
bindings2.Add((BindingBase)(object)val2);
val.Converter = (IMultiValueConverter)(object)new DelegateMultiConverter(delegate(object?[] values)
{
object dataContext = Guard.EnsureArgumentIsInstanceOfType<DependencyObject>(values[0], (string)null, "values[0]").GetDataContext();
ItemsControl val4 = Guard.EnsureArgumentIsInstanceOfType<ItemsControl>(values[1], (string)null, "values[1]");
int expectedIndex = Guard.EnsureArgumentIsInstanceOfType<int>(values[2], (string)null, "values[2]");
T trueValue = Guard.EnsureArgumentIsInstanceOfType<T>(values[3], (string)null, "values[3]");
T falseFalue = Guard.EnsureArgumentIsInstanceOfType<T>(values[4], (string)null, "values[4]");
int num = ((CollectionView)val4.Items).IndexOf(dataContext);
return (num != -1) ? ((object)GetResultValue(trueValue, falseFalue, Condition, expectedIndex, num, 0, ((CollectionView)val4.Items).Count - 1)) : DependencyProperty.UnsetValue;
});
return val;
}
private static T? GetResultValue(T? trueValue, T? falseFalue, ItemIndexConditionType? conditionType, int expectedIndex, int currentIndex, int minIndex, int maxIndex)
{
//IL_0086: Unknown result type (might be due to invalid IL or missing references)
if (1 == 0)
{
}
bool flag = conditionType switch
{
ItemIndexConditionType.First => currentIndex == minIndex,
ItemIndexConditionType.Last => currentIndex == maxIndex,
ItemIndexConditionType.Equals => currentIndex == expectedIndex,
ItemIndexConditionType.MoreThan => currentIndex > expectedIndex,
ItemIndexConditionType.MoreThanOrEquals => currentIndex >= expectedIndex,
ItemIndexConditionType.LessThan => currentIndex < expectedIndex,
ItemIndexConditionType.LessThanOrEquals => currentIndex <= expectedIndex,
_ => throw new UnexpectedValueException((object)conditionType, (string)null, "conditionType"),
};
if (1 == 0)
{
}
return flag ? trueValue : falseFalue;
}
}
public enum ItemIndexConditionType
{
Last,
First,
LessThan,
LessThanOrEquals,
MoreThan,
MoreThanOrEquals,
Equals
}
public sealed class ItemIndexToBooleanExtension : BaseItemIndexExtension<bool>
{
public ItemIndexToBooleanExtension()
: base(trueValue: true, falseValue: false)
{
}
}
public sealed class ItemIndexToDoubleExtension : BaseItemIndexExtension<double>
{
public ItemIndexToDoubleExtension()
: base(0.0, 0.0)
{
}
}
public sealed class ItemIndexToObjectExtension : BaseItemIndexExtension<object>
{
public ItemIndexToObjectExtension()
: base(DependencyProperty.UnsetValue, DependencyProperty.UnsetValue)
{
}
}
public sealed class ItemIndexToThicknessExtension : BaseItemIndexExtension<Thickness>
{
public ItemIndexToThicknessExtension()
: base(default(Thickness), default(Thickness))
{
}//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
}
public sealed class ItemIndexToVisibilityExtension : BaseItemIndexExtension<Visibility>
{
public ItemIndexToVisibilityExtension()
: base((Visibility)0, (Visibility)2)
{
}
}
public sealed class ItemIndexToVisibiltyInverseExtension : BaseItemIndexExtension<Visibility>
{
public ItemIndexToScreen recording
7 frames · screen recording · 130sBehavior summary
ran 130s1 process(es) observed
Evasion / anti-analysis checks
2 checksStatically visible checks (RDTSC/CPUID/red-pill instructions, anti-debug APIs) plus runtime evasion signals. Instruction-level interception at runtime requires hypervisor introspection (VMI).
No WMI attributed to the sample. The WMI-Activity trace was running and recorded 104 operations on the machine during the run; none of them came from the sample's process tree.
Command lines, unwrapped
1 read1 captured text was read and unwrapped locally. No address was recovered from any of them, and none of them was hiding its own contents behind an encoding or a format string. This is a result, not a gap.
No route out of the sandbox
isolated runThis detonation ran on the isolated network, with no route out. Everything below is what the sample attempted: the names it asked the resolver for and the connections it opened. No answer came back and no session could complete, so nothing here means the sample reached the internet. An internet-connected detonation is a paid-plan feature.
Encrypted traffic
no session negotiatedNo encrypted session was negotiated during this run. The capture was read for session handshakes and held none, so this is a measurement and not a gap: there is no protected channel whose contents this report is failing to show. This detonation also had no route out, so a program that would have opened one could not have completed it.
Also watched
no result to show| Observer | Result | What it means |
|---|---|---|
| DNS queries | not captured | No DNS capture was available for this run, so silence here is not evidence. |
| TCP / UDP connections | none | No socket to a remote host was recorded in the guest. |
| TLS handshakes | none | No TLS session was negotiated, so there is no JA3/JA4 fingerprint to compare. |
| Beaconing analysis | not run | Interval analysis had no traffic to work from. |
| DGA scoring | no candidate | No resolved name scored as algorithmically generated. |
| IDS ruleset | 0 alerts | This capture was replayed through the IDS ruleset and matched nothing. |
Inspection coverage
635 records readThe captured traffic was replayed through the rule set a second time, independently of what the guest agent reported. This card says how much of the capture was actually read, so that an empty section below is a measurement rather than a gap.
What the engine emitted, before anything was filtered. A large count here against an empty section below is explained in the table that follows - most often because the records were this platform's own.
| Removed | Records | Why |
|---|---|---|
| This platform's own plumbing | 582 | Traffic between the guest and this platform's own telemetry collector. It is our traffic, not the sample's, and counting it would put our own infrastructure in the analyst's indicators. |
| Known-benign endpoints | dns 50 |
Records whose only endpoint was on the baseline allowlist - operating-system telemetry and vendor update services that every guest contacts. |
| Check | Result | What it means |
|---|---|---|
| Rule matches | none | This capture was replayed through the rule set and no rule matched - including the engine's own decoder rules, so this is a quiet capture rather than a filtered one. |
| Application-protocol layer | 23 sessions | TCP was reassembled, so an empty protocol section below really is an absence of that protocol.
http 23dns_udp 25 |
| Stream gaps | none | No byte was missing from a reassembled stream. |
| Rejected packets | none | A virtual NIC leaves checksums to the host, so a rejected checksum here is normal for this platform and says nothing about the sample. It matters only as the reason a protocol layer can go missing. |
| Columns never filled in | 3 | These optional fields were not produced for this capture, so the matching column below is blank by configuration and not because the value was absent from the traffic.
fileinfo.sha256fileinfo.md5fileinfo.magic |
| Completeness | complete | Nothing was cut: no limit was reached, no section was dropped and no value was shortened. |
| Flow correlation ids | 634 | Every row below carries a version-1 flow identifier, so a row here can be joined to the same flow in another tool's output. |
Flows
2One row per conversation, with the byte count in each direction. Direction is the useful part: a few bytes out and a large reply is a download, the reverse is an upload. A conversation marked no parser was not claimed by any application parser, which is the ordinary answer for multicast discovery - SSDP on port 1900, mDNS on 5353 - and says nothing about the sample.
| Source → Destination | Protocol | Application | Sent | Received | Age | Ended |
|---|---|---|---|---|---|---|
| fe80:0000:0000:0000:fc66:daff:fe1d:0334 → ff02:0000:0000:0000:0000:0000:0000:0002 | IPv6-ICMP | - | 70 bytes | - | 0s | timeout |
| fe80:0000:0000:0000:fc66:daff:fe1d:0334 → ff02:0000:0000:0000:0000:0000:0000:0002 | IPv6-ICMP | - | 70 bytes | - | 0s | shutdown |
Process tree
What ran during the detonation, and what each process did. Select a node to see the activity attributed to it.
kl.ui.framework.uikit.dll
1 processAttributed activity
Nothing in this run was attributed to this process. That is not the same as "it did nothing" - it means no captured operation carried its pid.
Persistence mechanisms
cleanNo persistence established
None of the 90 auto-start methods below were established during this run.
Detection coverage
0 / 90Every auto-start method checked on this sample, grouped by family. A method with no result is reported clean, and one the sample only names in its own strings reads "named" rather than "detected".
- Active Setup Installed Component T1547.014 clean
- Explorer Delay-Load Object T1547.001 clean
- Explorer Run Key T1547.001 clean
- Explorer SharedTaskScheduler T1547.001 clean
- Group Policy Extension DLL T1547.004 clean
- Group Policy Run Key T1547.001 clean
- Logon Script T1037.001 clean
- RDP WDS Startup Program T1547.001 clean
- Registry Run Key T1547.001 clean
- Registry RunEx Key T1547.001 clean
- Registry RunOnce Key T1547.001 clean
- Registry RunOnceEx Key T1547.001 clean
- Registry RunServices Key T1547.001 clean
- Startup Folder Item T1547.001 clean
- Startup Folder Redirection T1547.001 clean
- Terminal Services Initial Program T1547.001 clean
- Winlogon GINA DLL T1547.004 clean
- Winlogon MPNotify Value T1547.004 clean
- Winlogon Notify Package T1547.004 clean
- Winlogon Shell Value T1547.004 clean
- Winlogon Taskman Value T1547.004 clean
- Winlogon Userinit Value T1547.004 clean
- BITS Job T1197 clean
- Print Monitor DLL T1547.010 clean
- Print Processor DLL T1547.012 clean
- Scheduled Task T1053.005 clean
- Scheduled Task Registry Implant T1053.005 clean
- Service Control Manager Security Descriptor T1574.011 clean
- Service DLL Hijack T1543.003 clean
- Time Provider DLL T1547.003 clean
- Windows Service Creation T1543.003 clean
- .NET Managed Debugger T1546.012 clean
- Accessibility Tool Hijack T1546.008 clean
- AeDebug Postmortem Debugger T1546.012 clean
- App Paths Hijack T1546.012 clean
- Application Shim Database T1546.011 clean
- Boot Verification Program T1547.002 clean
- Command Processor AutoRun T1546.011 clean
- Explorer Load Value T1547.001 clean
- Explorer MyComputer Tool Hijack T1546.001 clean
- Registry Image File Execution Options T1546.012 clean
- Screensaver Hijack T1546.002 clean
- Setup ErrorHandler Script T1546 clean
- Shell Open Command Hijack T1546.001 clean
- SilentProcessExit Monitor T1546.012 clean
- Telemetry Controller Command T1546.015 clean
- WER ReflectDebugger T1546.012 clean
- Windows Error Reporting Debugger T1546.012 clean
- .NET CLR Profiler DLL T1574.012 clean
- .NET Startup Hook DLL T1574 clean
- AppCert DLLs T1546.009 clean
- AppInit DLLs T1546.010 clean
- AutodialDLL Winsock Injection T1546.006 clean
- DLL Search-Order Hijack T1574.001 T1574.002 clean
- DNS Server Plugin DLL T1574.001 clean
- HTML Help Helper DLL T1546 clean
- KnownDLLs Manipulation T1574.001 clean
- Natural Language Platform DLL Override T1546 clean
- Netsh Helper DLL T1546.007 clean
- Winsock Layered Service Provider T1546.006 clean
- Browser Extension T1176 clean
- Browser Helper Object T1176 clean
- COM Server Hijack T1546.015 clean
- HTML Help COM Object Hijack T1546.015 clean
- Shell Context Menu Handler T1546.001 clean
- Shell Extension Handler T1546.001 clean
- Account RID Hijack T1098 clean
- AMSI Provider T1562.001 clean
- Credential Provider T1547.014 clean
- DSRM Admin Logon Backdoor T1556 clean
- Hidden Local Account T1136.001 clean
- LSA Authentication Package T1547.002 clean
- LSA Extension DLL T1547.005 clean
- LSA Notification Package T1547.005 clean
- LSA Security Package T1547.005 clean
- Network Provider DLL T1556.008 clean
- Security Support Provider T1547.005 clean
- Netsh Port Proxy T1090.001 clean
- Office Add-in T1137.006 clean
- Office Executable Sideload T1574.002 clean
- Office Startup Template T1137.001 clean
- Office Test Key T1137.002 clean
- Power Automate Flow T1546 clean
- PowerShell Profile T1546.013 clean
- Windows Terminal Startup Action T1546 clean
- WMI Event Subscription T1546.003 clean
- BootExecute Native Image T1547.002 clean
- PlatformExecute Native Image T1547.002 clean
- SetupExecute Native Image T1547.002 clean
- UEFI / Bootkit Artifact T1542.003 T1542.001 clean
File activity summary
Dropped payload analysis
not observedNo payload write was recorded and no capture ran on this run, so nothing here is a measurement about dropped files either way.
File & registry ops
0 file · 0 registry · sample scope
| Operation | Target | Process |
|---|
No file or registry operations captured.
No operations match your filter.
File reputation
6 clear| Source | Checks | Result | Detail | Feed |
|---|---|---|---|---|
| MalwareBazaar | File hash | not found | - | live lookup |
| filescan.io | File hash | no detections | - | live lookup |
| MalwareBazaar hash feed | File hash | clean | not in feed | 3,387 records 49 minutes ago |
| MalwareBazaar ransomware feed | File hash | clean | not in feed | 3,348 records 4 hours ago |
| ThreatFox hash IOCs | File hash | clean | not in feed | 1,689 records 49 minutes ago |
| URLhaus payload hashes | File hash | clean | not in feed | 1,310 records 49 minutes ago |
Hash lookups only - the sample itself is never uploaded to any third party.
Network indicators
nothing of this kind to check| Source | Checks | Result | Detail | Feed |
|---|---|---|---|---|
| blocklist.de | IP / domain / URL | not checked | no IP, domain or URL observed to check | 26.3k records 49 minutes ago |
| CINS Army | IP / domain / URL | not checked | no IP, domain or URL observed to check | 15k records 49 minutes ago |
| Emerging Threats | IP / domain / URL | not checked | no IP, domain or URL observed to check | 511 records 49 minutes ago |
| Feodo Tracker | IP / domain / URL | not checked | no IP, domain or URL observed to check | 5 records 49 minutes ago |
| IPsum | IP / domain / URL | not checked | no IP, domain or URL observed to check | 18.4k records 49 minutes ago |
| Phishing.Database | IP / domain / URL | not checked | no IP, domain or URL observed to check | 391.5k records 4 hours ago |
| ThreatFox | IP / domain / URL | not checked | no IP, domain or URL observed to check | 1,689 records 49 minutes ago |
| URLhaus | IP / domain / URL | not checked | no IP, domain or URL observed to check | no records ingested |
TLS fingerprints
nothing of this kind to check| Source | Checks | Result | Detail | Feed |
|---|---|---|---|---|
| JA3 / JA4 fingerprint blocklists | JA3 / JA4 | not checked | no TLS client fingerprint observed | 97 records 10 hours ago |
| SSL blocklist | Server certificate | not checked | no server certificate fingerprint is extracted to check | live lookup |
Detection rules
2 clear| Source | Checks | Result | Detail | Feed |
|---|---|---|---|---|
| Sigma rules | Behavior log | clean | - | 2,275 records 6 hours ago |
| Signature rules | Sample content | clean | 6 structural rules matched (file properties, not findings) | 110 records 50 minutes ago |
Tooling catalogs
4 clear| Source | Checks | Result | Detail | Feed |
|---|---|---|---|---|
| LOLBAS | Process image paths | clean | 1 process image path, none masqueraded | 245 records 50 minutes ago |
| LOLBootloaders | File hash | clean | not a known vulnerable bootloader | 520 records 49 minutes ago |
| LOLDrivers | File hash | clean | not a known vulnerable driver | 2,346 records 49 minutes ago |
| LOLRMM | Names and domains | clean | 2 name/domain indicators checked, no remote-management tooling | 358 records 49 minutes ago |
Analyst narrative
not producedThe AI layer was not run for this scan
AI analysis is selected per scan and was not requested here. A narrative can still be generated on demand from the Report section, which builds it from this report's derived data. The sample itself never leaves the host.
File indicators
3| Severity | Type | Indicator | Description |
|---|---|---|---|
| info | sample_sha256 | 138db9cb4136f86dab39389722d2f8229dbacd1d6d66ca620d46bdbac4c46298 | Submitted sample (SHA256) |
| info | sample_md5 | 8977e30c26e1dca035cc5f4245d4825c | Submitted sample (MD5) |
| info | imphash | dae02f32a21e03ce65412f6e56942daa | Import table hash (imphash) |
Sigma detections
0 matches of 2275 rulesThe Sigma corpus was evaluated against this run's processes, registry, file, network, DNS and script activity. Nothing matched.
Generated rules
No generated rules
Detection rules are auto-generated after analysis.
Extracted files
What came out of the sample: unpacked payloads, carved objects and captured memory. Each one is stored by content hash, so the same object extracted twice is the same row.
No extracted files
Nothing was unpacked or carved out of this sample. Packed samples, documents with embedded objects and installers are the ones that usually produce artifacts here.
Export & download
/s/2680Structured exports for your SIEM/TIP - ATT&CK Navigator layer, STIX 2.1 bundle, MISP event and a defanged IOC list - are free on every report. The packet capture follows this scan's plan, because a capture is the rawest network output this platform produces.
Analysis report
PDF and DOCX reports are available to signed-in accounts on every plan, free included. Sign in to generate one.
Headers
Body
Headers
Body
You are about to download the raw, live sample. It is real, potentially destructive malware and can harm your machine if opened or run. Only handle it inside an isolated analysis environment.
Delivered as a ZIP encrypted with the password infected so the bytes are never handled unprotected.
Report this analysis
Analysis reports are produced automatically from files, addresses and text submitted by visitors. If this one publishes your material, identifies you, or should not be public for any other reason, tell us why and an administrator will review it.
Public analyses of this file
1 run| Submitted | Environment | Verdict | Score |
|---|---|---|---|
| 2026-10-08 10:02 Shown below | Windows 10 22H2 | No threats detected | 0/100 |