Viewbox is FrameworkElement which cannot belong to multiple parents. Every time buttons request a resource {StaticResource SampleViewbox}
they get the same instance.
to change that behavior add x:Shared="False"
attribute
<Viewbox x:Key="SampleViewbox" x:Shared="False">
More Related Contents:
- How to bind an enum to a combobox control in WPF?
- Where can I find a free masked TextBox in WPF? [closed]
- How can I data bind a list of strings to a ListBox in WPF/WP7?
- How to display items in Canvas through Binding
- Should I bind to ICollectionView or ObservableCollection
- Set Item Focus in ListView WPF
- WPF TwoWay Binding to a static class Property
- Problems with binding to Window Height and Width
- Why does WPF databinding swallow exceptions?
- Get the item doubleclick event of listview
- Difference between ObservableCollection and BindingList
- How to make Databinding type safe and support refactoring?
- Is there a good way to convert between BitmapSource and Bitmap?
- Data Binding in WPF User Controls
- Task continuation on UI thread
- Bind TextBox on Enter-key press
- Horizontal scroll for stackpanel doesn’t work
- How to check if another instance of the application is running [duplicate]
- How to hide wpf datagrid columns depending on a property
- WPF: Cannot reuse window after it has been closed
- WPF: The name does not exist in the namespace [duplicate]
- CompositeCollection + CollectionContainer: Bind CollectionContainer.Collection to property of ViewModel that is used as DataTemplates DataType
- Disallow/Block selection of disabled combobox item in wpf
- CanExecuteChanged event of ICommand
- How to create an image of a WPF UserControl at runtime
- Dynamically loading resource dictionary files to a wpf application gives an error
- Prism assembly reference failure: System.Windows.Interactivity
- How do I resolve the value of a databinding inside a MarkupExtension?
- How to Print Preview when using a DocumentPaginator to print?
- WPF + MVVM + RadioButton : How to handle binding with single property?