Ok, I'm pulling my hair out over this, so any help will be hugely appreciated!
I'm building a WPF application using the MVVM pattern.
In an attempt to get data in at design time I am using the Ninject dependency injection framework in conjunction with a service locator (much like the example in an article at http://jonas.follesoe.no/Yo...
I am working on a WPF application, using the MVVM Pattern.
Each ViewModel will need access to a security object, that essentially provides information about the rights the user has. Because this object only needs to be populated once at start up, and because populating it is (at least potentially) expensive, I want to keep it in state ...
How can I programatically close a WPF PrintDialog ? I tried to call Finalize on it trough reflection, and that does not close it either. Here is what I tried with:
using System;
using System.Reflection;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
namespace WpfApplication15
{
partial class Window1 : ...
I'm working on an MVVM app and have a view that is used to modify a number of network parameters (IP, SubnetMask, etc).
The view contains a number of text boxes bound to properties in a 'NetworkConfigViewModel':
<TextBox>
<TextBox.Text>
<Binding Path="IP" UpdateSourceTrigger="PropertyChanged"/>
</TextBox.Text>
</TextBox...
I need to display the following using WPF databinding (the values change). Headers must be bold, the info lines are normal text. If info for a given header does not exist, I want to collapse that section, including the header. I prefer all the data (header and info items) be in one formatted string that can line break where I want.
Hea...
I have a WPF tab control with a largu number of tabs and they are presented in a sequential line all across the screen. Which mean that a user needs to scroll sideways in order to view all the tabs.
Is there a way to create two rows of tabs or make the long row of tabs "wrap" into two or more rows?
...
I've tried to search for an answer to this but I'm not having any luck. Basically I have a listview that is bound to a collection returned from a view model. I bind the selected item of the list view to a property in my listview in order to perform validation to ensure that an item is selected. The problem is that sometimes I want to ...
Hello,
I have got an ObservableCollection buttonList; (this can be any other control: Textbox, Textblock or even a UserControl).
I want to bind this List via DataBinding to a parent control (lets say a Grid or a WrapPanel,...)
Is this somehow possible? Children property is read only.
I do not want to do this in the program code -> Dont...
I have a 10x10 grid. And in each space I have added a label to which I added a mousedoubleclick event handler. So when I double click the label it's supposed to show the Row and Column number, but I only get 0 for both properties.
This is the code... (and yes I have set Grid.SetRow and Grid.SetColumn for each label)
private void grid_...
I am experimenting with WPF and re-implementing my old maze screensaver.
My code basically adds a bunch of images to the canvas, building up a grid, 64x64 pixel images side by side, to cover the entire canvas. Then I "animate" movement in the maze, which is supposed to scroll the maze around, by adjusting a translate transformation, and...
I can open a video, play it and get position and set position, but nothing shows up in the video window on one pc. The code works fine a on a couple of PCs, but doesn't work on another. Does any one know or can refer me to what files I need to properly run MediaElement on XP pro.
Thanks,
Rob
...
I have a ListView which i have binded with a List. If i add items to the List i must resize my window for the items to appear in my listview.
Any ideas?
...
I have got a big ListBox with vertical scrolling enabled, my MVVM has New and Edit ICommands.
I am adding new item to the end of the collection but I want the scrollbar also to auto position to the End when I call my MVVM-AddCommand.
I am also making an item editable(By calling EditCommand with a particular row item) from some other part...
I'm trying add Taskbar Icon overlay with text to windows7 application icon, I did manage to add small overlay but unable to add the text.
Does any one know how to add dynamic text as Taskbar Icon overlay?
Using: WPF and C#
...
I have a textbox that binds to an integer property.
What can I do so that when there is nothing no valid text in the textbox that the property gets set to 0.
Really I think this can be extended so that if the binding fails then we set the source to default(T).
I need a nudge in the right direction.
TargetNullValue is the opposite o...
I am hosting a MediaElement in a WinForms application, which I would like to play both images and video through. My images and video are set as embedded resources to the application.
The MediaElement.Source property only accepts a URI.
Any ideas on how to get the MediaElement to play the embedded resourece files without writing them...
Is there a way to host/display a full WinForms form (not just a single control) within some sort of container or wrapper type control within a WPF form? I’m looking for something similar in concept to a virtual include from php or iframe in html. Possibly by compiling it into an OCX or DLL.
...
I Have an ObservableCollection in my class. And further into my class i have a thread. From this thread i would like to add to my ObservableCollection. But i can't do this:
This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.
Note that this is not happening...
Hi,
Can I develop a desktop app in VS2008 that can also run on Mac? What approach?
That is, if I am developing an application (thick client) that runs on a Windows XP/Vista PC, is there an approach to do this such that I could also run it on a Mac? (e.g. silverlight?)
The kind of things my winforms type app needs includes:
HttpWeb...
Is there any way I can manage resources through the GUI? Or the only way possible is through XAML code?
Thanks
...