I have some simple WPF with a MediaElement which is, generally, working.
I have some simple AVIs and WMVs which are working.
I have a DivX AVI that works fine in Media Player but doesn't render at all in the WPF MediaElement control. It plays the audio fine, but graphically has zero size and doesn't render any video!
I have tried using...
I have a WPF app that updates my database from an in-code entity model. There may be instances that it updates the DB while there are users connected and I would like to put it in Single-User-Mode to avoid errors.
I would also like to avoid using sql. I am aware that I can run sql using:
DataContext.ExecuteCommand("ALTER DATABASE..."...
The Model-View-ViewModel is very popular with WPF and Silverlight. I've been using this for my most recent projects, and am a very large fan.
I understand that it's a refinement of MVP. However, I am wondering exactly what unique characteristics of WPF (and Silverlight) allow MVVM to work, and prevent (or at least make difficult) this...
Essentially the warning in our case is just a validation, we don't want to mark it as an error just a warning so the user knows. I was hoping to use the same or similar method used for validation. Currently I'm leaning towards implementing IDataErrorInfo. But I'd like to change the style on display and allow saving. Has anyone done a...
I'm not finding much documentation on how to use Windows Authentication in a WPF app. I wouldn't have thought that it would be any different than in any non-WPF app, but it seems that it is. I want to go into my project Properties -> Application and ensure that Windows Authentication is on, but that option is not available in a WPF app...
I want to be able to create an instance of the DataContext object for my WPF StartupUri window in XAML, as opposed to creating it code and then setting the DataContext property programmaticly.
The main reason is I don't need to access the object created externally and I don't want to have to write code behind just for setting the data c...
I have a user control that applies a style to button, with the style containing a ControlTemplate section. Within the ControlTemplate, there are various UI elements such as an Ellipse and a Path.
If I give those elements -- the Ellipse and Path -- a name with x:Name, can I access them from code behind?
It appears the style's Ellipse an...
I am working on a program in WPF for the first time. I have a ListView in GridView mode displaying data from a bound dataset (which is grabbed from a database).
In my database, "date of birth" is not a required field. As such, any record without a dob had the value set to DateTime.MinValue. On each of these minimum value dates, the date...
I have an Attached property declared for my custom panel as
public static readonly DependencyProperty WeightProperty = DependencyProperty.RegisterAttached(
"Weight", typeof(double), typeof(WeightedPanel),
new FrameworkPropertyMetadata(1.0,
FrameworkPropertyMetadataOptions.AffectsParentMeasur...
I am mulling over various ways to provide both navigation and general functionality in a WPF/MVVM/Unity application (the app is effectively database front-end, with usual record editing, reports, etc).
I have an expander-type vertical bar to select views which is fine. But, I now feel I need a toolbar (perhaps ribbon style) to be visibl...
Hi there!
I am pretty new to the whole DI/IoC thing, so bear with me...
I have this kind of setting:
interface IA
interface IB
interface IC
abstract class A : IA
class B : A, IB
class C : A, IC
interface IX
interface IY
interface IZ
abstract class X : IX
class Y : X, IY
class Z : X, IZ
B and C's constructors look like this:
public...
Hi, I'm trying to Use a Header Style for my WPF DataGrid that sits in a UserControl. but i get this:
Cannot find resource named '{DataGridRowHeaderBackgroundStyle}'. Resource names are case sensitive. Error at object 'Microsoft.Windows.Controls.DataGridTextColumn' in markup file 'WPF;component/view/dashboardview.xaml' Line 17 Position ...
Quick WPF question - on Win 7 (and I assume Vista) in WPF, the default progress bar does a nice little glowing "whoosh"-y animation.
I'm showing progress of about 48 things on one screen, and it's a tad overwhelming to have all of these things whooshing on you - can you disable just these animations without affecting the rest of the def...
Hi,
Somebody can tell me why this trigger doesn't work:
<!--Style-->
<Style x:Key="Test" TargetType="{x:Type Expander}">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="IsExpanded" Value="false"></Setter>
</Trigger>
</Style.Trigg...
How can I select a view for my viewmodel without using code behind? I want to load a ListBox with a lot of data coming from a WCF call. Using Josh Smith's app, the view loads before the data arrives, empty. I want to receive all the data and then select the view with spinner showing progress.
// Completed Method
void _background...
Is there any C/C++ codes available to view XPS document
EDIT
Is there any C++ codes available to Edit (add watermark) in XPS document
...
Hello everybody,
please help resolving one look-and-feel inconsistency issue in WPF.
Look at the picture from MSDN Magazine article on Advanced WPF:
MessageBox.Show(message) is called, and why the button on it looks different than buttons on the main window?
The Open File standard WPF dialog has the same problem, only worse: on Vist...
I have a requirement to do the following.
Pass a set of variables from a website to a backend webservice
Apply the variables to a WPF 3D model.
Generate an image and pass back to the website.
Is this possible?
...
When our application is viewed on two particular machines, one is Vista and one XP, we have the effect on some text boxes, when focused, the left and right borders are "soft", and when you type past the right border, it disappears altogether, like this:
On all other machines that we tested it looks fine, however.
For all its worth, b...
Hi Everyone,
I want to do some slightly advanced audio playing using a standard WPF application.
Here is what I need:
ability to smoothly loop
change pitch
play multiple sounds at once
I know the SoundPlayer class in not sufficient because it cannot play multiple sounds at once, so I began looking into the XNA SoundEffect class (an...