Format:
Recent snippets matching tags of ScrollViewer
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Interactivity; using System.Windows.Threading; namespace Behaviors { /// <summary> /// On ListBoxes using CanContentScroll=True (virtualized), WPF layout changes will make the scrollviewer reset to zero.
43 Views
no comments
public static void ExportToJpeg() { prepare(true); SaveFileDialog saveDialog = new SaveFileDialog { Filter = "JPEG Files (*.jpeg)|*.jpeg", DefaultExt = ".jpeg", }; if ((bool)saveDialog.ShowDialog()) { using (Stream fileStream = saveDialog.OpenFile()) { WriteableBitmap bitmap = new WriteableBitmap(containerPanel, null);
823 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
