Questions tagged [wpf-4.5]

Version 4.5 of the Windows Presentation Foundation.

Version 4.5 of the Windows Presentation Foundation.

It contains the following new features:

  1. Ribbon control
  2. Improved performance when displaying large sets of grouped data
  3. New features for the VirtualizingPanel
  4. Binding to static properties
  5. Accessing collections on non-UI Threads
  6. Synchronously and Asynchronously validating data
  7. Automatically updating the source of a data binding
  8. Binding to types that Implement ICustomTypeProvider
  9. Retrieving data binding information from a binding expression
  10. Checking for a valid DataContext object
  11. Repositioning data as the data's values change (Live shaping)
  12. Improved Support for Establishing a Weak Reference to an Event
  13. New methods for the Dispatcher class
  14. Markup Extensions for Events

source

41 questions
21
votes
1 answer

How to properly render large bitmaps in WPF?

I did not expect RenderTargetBitmap.Render(visual) to have any side effects excerpt changing the bitmap data itself. It looks like it is not true. I am unable to repeat it more than 60 times before some ugly rendering artifacts start to…
Dmitry Nogin
  • 3,670
  • 1
  • 19
  • 35
20
votes
1 answer

Window style with WPF Ribbon from Microsoft doesn't match Windows 8 style

I'm using the release Version of Windows 8 and Visual Studio 2012 to create a WPF application with a Ribbon control. I choose the ribbon control that comes with WPF in .Net Framework 4.5. My code to create the ribbon:
Fox32
  • 13,126
  • 9
  • 50
  • 71
14
votes
4 answers

Change Theme of .NET 4.5 WPF Ribbon

I am trying to change the theme of the new WPF Ribbon Control from .NET Framework 4.5 and I am stuck. I only managed to change some brushes (Background, Foreground, Border ...) but I seem to be unable to change the bright overlay and shadows. I am…
user667967
  • 628
  • 1
  • 8
  • 20
8
votes
1 answer

WPF Custom Control: DependencyProperty never Set (on only 1 of many properties)

I have made a custom control called AddressForm, which inherits from Control. The control is used to display the fields for an IAddress object. Originally I made this control in Silverlight, now I am trying to get it working in WPF .net 4.5 The…
Shaboboo
  • 1,347
  • 1
  • 16
  • 35
7
votes
2 answers

ListBox with live shaping/grouping - how to keep selection when item is regrouped?

I have an ObservableCollection in my view-model, and a CollectionViewSource and ListBox in my view. The ListBox binds to the CollectionViewSource. The CollectionViewSource binds to the ObservableCollection, sorting the items and arranging them into…
Chris Kneller
  • 141
  • 1
  • 4
4
votes
2 answers

Caliburn.Micro + MEF + Modern UI: IContent events

I've started a project using Caliburn.Micro and Modern UI (https://mui.codeplex.com) and am having some difficulty getting the navigation events of IContent to fire on my view model. I've already got the two hooked up to work with each other with…
CuddleBunny
  • 1,941
  • 2
  • 23
  • 45
4
votes
1 answer

WPF DataGrid and ITypedList

I tried to implement ITypedList in my ItemsSourcebut PropertyDescriptor.GetValue/SetValue are never invoked. What is wrong about it? XAML looks like this:
Dmitry Nogin
  • 3,670
  • 1
  • 19
  • 35
3
votes
0 answers

WPF Ribbon - Customize the default template

I'm trying to customize the WPF Ribbon control. For some changes I need to access the default template of the ribbon. E.g. to remove the lower border. I used Expression Blend to generate the Ribbon template, but the template I got has errors. There…
iris
  • 31
  • 1
  • 2
3
votes
3 answers

Markup Extensions for Events in .Net 4.5

WPF does not define a markup extension to be used for events, third parties are able to create a markup extension that can be used with events. Now WPF 4.5 supports markup extensions for events. Can anyone help how to achieve this in .Net 4.5 with…
Vimal CK
  • 3,543
  • 1
  • 26
  • 47
3
votes
1 answer

How to improve performance of WPF Grid control (.NET 4.0/4.5)?

Definition: Having 2D-array of string (about 10 columns, 1,600 rows, fixed length of 7-char) serving as a data source for WPF .NET 4.0 Grid control, the following code snippet has been used in order to populate the Grid with labels displaying values…
Alexander Bell
  • 7,842
  • 3
  • 26
  • 42
3
votes
3 answers

WPF 4.5 Microsoft's Ribbon: which control of RibbonApplicationMenu

I am using Microsoft's Ribbon of WPF 4.5 and developing application using VS2012 (C#) on Win 8 machine. I want to make my application show RibbonApplicationMenu like the "File"-menu of Office Word 2010, but I can't find out which control is used for…
MagB
  • 2,131
  • 5
  • 28
  • 54
2
votes
1 answer

WPF Window Top property Won't Change

I just upgraded my WPF App target framework from 3.5 to 4.5 and my code for setting the Top property stopped working, it won't change the top value: this.Top=45; it will always stay the previous value, never changed to 45. I don't have any type of…
Tariq
  • 31
  • 5
2
votes
1 answer

assembly is not found during initialize component for UserControl with DocumentViewer

I have a wpf 4.5 application where I want to use a document viewer in an attempt at creating my own report viewer (based on this example). But if I add a DocumentViewer to one of my user controls I get the following error during the initialize…
J King
  • 4,108
  • 10
  • 53
  • 103
2
votes
2 answers

Prevent controls from forcing parents to resize

I'm going nuts trying to figure this out. I've got a DockPanel with some stuff docked to Top, and an ItemsControl as its center content (which presents itself as a WrapPanel containing more DockPanels). I want the center ItemsControl to expand the…
db2
  • 497
  • 1
  • 3
  • 21
2
votes
1 answer

Facebook video upload Exception "(OAuthException - #1) An unknown error has occurred."

My WPF application i am using facebook C# SDK to upload videos to facebook wall. From last two days, when i upload video through my application, SDK returns "(OAuthException - #1) An unknown error has occurred." exception, but my video file uploaded…
Maniarasu
  • 362
  • 5
  • 15
1
2 3