Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an Additional Tracker Breaks Jot for VB #46

Open
SezMe opened this issue Dec 26, 2020 · 0 comments
Open

Adding an Additional Tracker Breaks Jot for VB #46

SezMe opened this issue Dec 26, 2020 · 0 comments

Comments

@SezMe
Copy link

SezMe commented Dec 26, 2020

This, I think, is a continuation of Issue #45
This code in the TrackerServices module works:

Sub New()
   Trackr.Configure(Of Window)().Id(Function(w) w.Name, SystemInformation.VirtualScreen.Size).Property(Function(w) w.Top).Property(Function(w) w.Left).Property(Function(w) w.Height).Property(Function(w) w.Width).PersistOn(NameOf(Window.Closing)).StopTrackingOn(NameOf(Window.Closing))
End Sub

I have a wpf window in my Project with x:Name = GeoElements and a grid column with x:Name = C0. When I add this line to the above code:

Trackr.Configure(Of GeoElements)().Property(Function(g) New With {Key g.C0.Width}).PersistOn(NameOf(GeoElements.Closing)).StopTrackingOn(NameOf(GeoElements.Closing))

Tracker breaks when opening the MainWindow (the first window to be opened) with this error:

Inner Exception 1:
ArgumentException: Expression must be writeable
Parameter name: left
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant