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 {
6464 _ = application. resources. insert ( " ToggleSwitchPreContentMargin " , 0.0 as Double )
6565 _ = application. resources. insert ( " ToggleSwitchPostContentMargin " , 0.0 as Double )
6666
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+
6776 callback ( )
6877 }
6978 WinUIApplication . main ( )
You can’t perform that action at this time.
0 commit comments