We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6930b2 commit c1b964fCopy full SHA for c1b964f
Sources/WinUIBackend/WinUIBackend.swift
@@ -64,6 +64,15 @@ public struct WinUIBackend: AppBackend {
64
_ = application.resources.insert("ToggleSwitchPreContentMargin", 0.0 as Double)
65
_ = application.resources.insert("ToggleSwitchPostContentMargin", 0.0 as Double)
66
67
+ // TODO: Read in previously hardcoded values from the application's
68
+ // resources dictionary for future-proofing. Example code for getting
69
+ // property values;
70
+ // let iinspectable =
71
+ // application.resources.lookup("ToggleSwitchPreContentMargin")!
72
+ // as! WindowsFoundation.IInspectable
73
+ // let pv: __ABI_Windows_Foundation.IPropertyValue = try! iinspectable.QueryInterface()
74
+ // let value = try! pv.GetDoubleImpl()
75
+
76
callback()
77
}
78
WinUIApplication.main()
0 commit comments