File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,15 @@ public struct WinUIBackend: AppBackend {
64
64
_ = application. resources. insert ( " ToggleSwitchPreContentMargin " , 0.0 as Double )
65
65
_ = application. resources. insert ( " ToggleSwitchPostContentMargin " , 0.0 as Double )
66
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
+
67
76
callback ( )
68
77
}
69
78
WinUIApplication . main ( )
You can’t perform that action at this time.
0 commit comments