I am considering building a application using PRISM (Composite WPF Guidance/Library). The application modules will be vertically partitioned (i.e. Customers, Suppliers, Sales Orders, etc). This is still all relatively easy... I also have a Shell with a main region were all the work will happen but now I need the following behavior: I nee...
I think this is a fun engineering-level question.
I need to design a control which displays a line chart. What I want to be able to do is use a designer to add multiple Pens which actually describe the data and presentation so that it ends up with Xaml something along these lines:
<Chart>
<Pen Name="SalesData" Color="Green" Data=".....
I have several wpf pages with update/delete/add buttons. I want to display to the user messages like "successful delete", etc. How can I best implement this so the message is defined in a single place (similar to an asp.net master page) and I can update this message from anywhere?
...
Hi,
I need a Datepicker for a WPF application. What is considered to be the best one?
Thank you
...
I'm working on moving a client/server application created with C# and WinForms into the SOA/WPF/Silverlight world. One of the big hurdles is the design of the UI. My current UI is MDI driven and users rely heavily on child windows, having many open at the same time and toggling back and forth between them.
What might be the best way to...
So I was reading those Windows Vista UI guidelines someone linked to in another question, and they mentioned that you should be able to survive a switch to 120 DPI. Well, I fire up my handy VM with my app installed, and what do we get... AAAAGH!!! MASSIVE UI FAIL!
Everything's all jumbled: some containers aren't big enough for their tex...
The rich presentational capabilities of WPF and Silverlight mean developers like me will be working closely with graphic designers more often these days, as is the case in my next project.
Does anyone out there have any tips and experience (from both points of view) on making this go more smoothly?
For example, when I mentioned sou...
In WPF, is it possible for a DataTrigger to bind to an attached property?
I essentially want to use a converter on an attached property to provide a style when a particular validation rule has been broken. I am using markup like the following:
<DataTrigger Binding="{Binding Path=Validation.Errors,
RelativeSource...
A GUI driven application needs to host some prebuilt WinForms based components.
These components provide high performance interactive views using a mixture of GDI+ and DirectX.
The views handle control input and display custom graphical renderings.
The components are tested in a WinForms harness by the supplier.
Can a commericial applic...
Hi,
I want to add the selected item from the TreeView to the ListBox control using DataBinding (If it can work with Databinding).
<TreeView HorizontalAlignment="Left" Margin="30,32,0,83" Name="treeView1" Width="133" >
</TreeView>
<ListBox Margin="208,36,93,0" Name="listBox1" Height="196" VerticalAlignment="Top"> ...
Hi,
Any ideas how to open a PDF file in a WPF Windows Application?
...
Does anyone have any experience with a good wpf pivot table control?
...
I am following the M-V-VM pattern for my WPF UI. I would like to hook up a command to the TextChanged event of a TextBox to a command that is in my ViewModel class. The only way I can conceive of completing this task is to inherit from the TextBox control, and implement ICommandSource. I can then instruct the command to be fired from the...
In my WPF application, I have a number of databound TextBoxes. The UpdateSourceTrigger for these bindings is LostFocus. The object is saved using the File menu. The problem I have is that it is possible to enter a new value into a TextBox, select Save from the File menu, and never persist the new value (the one visible in the TextBox) be...
Most restrictions and tricks with windows forms are common to most programmers. But since .NET 3.0 there is also WPF available, the Windows Presentation Foundation. It is said that you can make "sexy applications" more easy with it and with .NET 3.5 SP1 it got a good speed boost on execution.
But on the other side a lot of things are wo...
Using win forms with an MVC/MVP architecture, I would normally use a class to wrap a view to test the UI while using mocks for the model and controller/presenter. The wrapper class would make most everything in the UI an observable property for the test runner through properties and events.
Would this be a viable approach to testing a ...
I have a simple WPF application which I am trying to start. I am following the Microsoft Patterns and Practices "Composite Application Guidance for WPF". I've followed their instructions however my WPF application fails immediately with a "TypeInitializationException".
The InnerException property reveals that "The type initializer for...
What should every WPF developer know?
Entry Level
Strong .NET 2.0 Background & willing to learn!
Explain dependency properties?
What's a style?
What's a template?
Binding
Differences between base classes: Visual, UIElement, FrameworkElement, Control
Visual vs Logical tree?
Property Change Notification (INotifyPropertyChange and Observ...
As an example take the following code:
public enum ExampleEnum { FooBar, BarFoo }
public class ExampleClass : INotifyPropertyChanged
{
private ExampleEnum example;
public ExampleEnum ExampleProperty
{ get { return example; } { /* set and notify */; } }
}
I want a to databind the property ExampleProperty to a ComboBox, s...
Visually both of the following snippets produce the same UI. So why are there 2 controls..
Snippet1
<TextBlock>Name:</TextBlock>
<TextBox Name="nameTextBox" />
Snippet2
<Label>Name:</Label>
<TextBox Name="nameTextBox" />
(Well I am gonna answer this myself... thought this is a useful tidbit I learnt today from Programming WPF)
...