I am developing an application that displays 16 bit grayscale images. The UI for the application was originally created using Win Forms and since Win Forms does not support 16 bit grayscale I wrote a custom openGL control to display the image. Within the last few months we have convert the UI to WPF, but continued to use the openGL image...
How do I apply effects such as a DropShadowEffect class to a TextBlock Run element in WPF?
Think of it as a way of highlighting certain areas of text in a TextBlock where the Run element is located, but applying an individual effect to that area instead.
...
Can somebody explain what exception bellow means? It occurs when InitializeComponents is executed in my WPF user control constructor. I'm using .net4, in case it's version specific. I realy don't have a clue what should I search for.
Edit:
As you can see XAML code does nothing and exception occurs when I add xmlns:Converters="clr-namesp...
I want to do something like this:
<ControlTemplate.Triggers>
<Trigger Property="Width" Value=">25">
<!-- Set values here -->
</Trigger>
</ControlTemplate.Triggers>
Anyway to do something like this?
...
Hi,
In WPF, I would like to be able to template how my bindings are applied by default.
For instance, I want to write :
Text="{Binding Path=PedigreeName}"
But it would be as if I had typed :
Text="{Binding Path=PedigreeName, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, Valid...
Hi all. Just wondering if anyone knows about what performance is like for the WPF Toolkit DataGrid for inserting rows to the top of the visible area. I know that ListBox and ListView will recreate all new visuals for all of the rows that are pushed down, which is a major impact on performance; I was wondering if the WPF Toolkit DataGri...
I am using the WPF ribbon CTP from Microsoft.
However, there is no sample. I am not sure where to start. The RibbonWindow does not have a property for the Ribbon. Does anyone have a sample that works?
...
I'm developing a Microsoft Word TaskPane containing a WPF ElementHost. The hosted WPF uses a Popup that is intended to behave as a ComboBox's does. I believe you can reproduce my problem like this:
popup.IsOpen = true;
popup.StaysOpen = false;
Mouse.Capture(ancestor_of_popup, CaptureMode.SubTree);
When a region of the Popup lies out...
I have a stream coming from an external host that needs to be authenticated by cookie before the stream will be sent. I have the stream already authenticated, I just need some way to play this stream.
Any ideas?
...
My problem is certainly right on my face but I can't see it...
I am building a very simple user control - a 3D ellipse - and I expose two properties: LightColor and DarkColor. I need to bind these properties to the gradient in my user control, but it is not showing any color at all. Here's my code:
<UserControl
xmlns="http://schemas.mi...
How to set a System.Windows.Window as the Owner of a System.Windows.Forms.Form?
After I searched for this for a while only to realize that I already have the answer in one of my utils classes I decided to put the answer on stackoverflow. Hopefully someone finds this useful.
...
I have a global style for my WPF listbox and want to customize the GroupStyle. However, this code
<Style x:Key="myListBox" TargetType="ListBox">
<!-- ... -->
<Setter Property="GroupStyle">
<Setter.Value>
<!-- ... -->
</Setter.Value>
</Setter>
</Style>
won't compile, because GroupStyle doesn't have a set accessor.
...
Hi people stackoverflow. I'm working with MVVM, I have ViewModel call UserViewModel with a Property Password. In the View have a control PasswordBox.
<PasswordBox x:Name="txtPassword" Password="{Binding Password}" />
But this xaml don't work. How do you do the binding?? Help please!!
...
Recently I made the WPF application and want to publish it for many users but application seems to have problems on some target user machines. It simply crashes when user is starting it. I build app with .NET Framework v.3.0 as target version and user machine has .NET Framework installed. I just want a way to ensure (for instance with in...
Official Websites
Composite Application Guidance for WPF and Silverlight
patterns & practices: Composite WPF and Silverlight
Articles
Composite Web Apps With Prism
Podcasts
PRISM for Silverlight - Connected Show
Videocasts
SlickThought.Net - Jeff Brand
dnrTV
Brian Noyes on Prism
Brian Noyes on Prism Events and Commands
...
I am trying to inherit application-level styles for a certain Window in my WPF application, but I'm having trouble getting it to inherit rather than simply override the existing styles.
In App.xaml (under the App.Resources element) I define a style as such:
<Style TargetType="Button">
<Setter Property="Padding" Value="6"/>
<Set...
Hello,
I'm trying to bind KeyValuePair Elements from a Dictionary to a ItemsControl.
My Dictionary has 15 Elements and the following code shows me 15 TextBoxes:
<WrapPanel Name="PersonsWrapPanel" Grid.Row="0">
<ItemsControl ItemsSource="{Binding Persons}" >
<ItemsControl.ItemsPanel>
<...
I've got a WPF application which calls MessageBox.Show() way back in the ViewModel (to check if the user really wants to delete). This actually works, but goes against the grain of MVVM since the ViewModel should not explicitly determine what happens on the View.
So now I am thinking how can I best implement the MessageBox.Show() functi...
I have a WPF ListView that I am trying to filter within a BackgroundWorker. My code is shown below:
Dim Worker As New BackgroundWorker
AddHandler Worker.DoWork, AddressOf Me.FilterAsync
Me.TextBoxText = Me.TextBox.Text
Worker.RunWorkerAsync(Me.TextBox)
Private Sub FilterAsync(ByVal sender As Object, ByVal e As DoWorkEventArgs)
'
...
I have a WPF page with validation rules. This page has 2 grids - 1 that's shown by default, and another that can be toggled to show via an animation (a button is pressed, and the second grid's height is animated to show over top of the 1st grid, and the 1st grid is disabled).
My problem is this: I have validation rules on the first grid...