Comments (2)
from materialdesigninxamltoolkit.
@daigs I am missing a bit of context here, but my first thoughts when looking at the screenshots you provided are:
Who (i.e. what code) creates TestGCViewModel
? Is it added as a transient registration in the ServiceCollection
? If not that may be your issue. I believe the built-in IoC container respects the IDisposable
interface and will invoke Dispose()
on any registered types once they are orphaned. However, since your VM in this case has a reference to it, that won't happen unless your VM is also orphaned; so a kind of chicken and the egg problem. So in conclusion, I believe the IoC container is keeping your VM alive because it cannot dispose the SnackbarMessageQueue
because your VM is holding on to it.
If your VM is also registered as transient in the ServiceCollection
I think the cleanup will happen correctly.
It seems like you've "solved" your issue by simply new'ing up an instance of the SnackbarMessageQueue
yourself, so I will close the issue with this comment. If you have further comments/issues feel free to re-open it.
from materialdesigninxamltoolkit.
Related Issues (20)
- Demo, Information Links URL not correct HOT 1
- Using <WindowChrome.WindowChrome> on WPF Window turns floating hints background black HOT 8
- The Dark Theme cannot be displayed properly HOT 3
- WPF UI Freezes after resuming from lock screen when window contains a Slider HOT 1
- ScrollViewer Padding HOT 4
- Disabled style of the TextBox and ComboBox are different HOT 4
- TreeListView: ArgumentOutOfRange expanding items via the data context HOT 1
- ToggleButton throws Exception with error on ValidatesOnDataErrors/IDataErrorInfo
- New colors don't match old v4.x colors
- Hint in field cut off when not floating
- Context menus are blurry HOT 1
- Transitions don't work when Loaded event is binded to command HOT 3
- MaterialDesignRaisedButton's Indicator is not visible when button initial Visibility="Collapsed" HOT 2
- Input control hints and underline lost when in ColorZone
- IsPasswordRevealed does not work
- Add Custom color and define the color for bundle light and dark (question)
- Blurry `ToggleButton` HOT 11
- Cannot find resource named 'MaterialDesignCharacterCounterTextBlock'. HOT 7
- NumericUpDown style does not align with other controls
- Multiple NumericUpDown controls not displaying correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialdesigninxamltoolkit.