I have a simple WPF Forms app. I have a DockPanel as my root panel. The first child is a StackPanel that has some controls in it, then the second control is a TabControl. What I want, and the panel types can change all they want is for the TabControl to maintain the fill size of the window except for what the first StackPanel consumes...
I have a ListBox with dates.
Each ListBoxItem (date) have another ListBox with that date's events.
When I select an event it gets highlighted (SelectedIndex/SelectedItem) and I navigate to another Pivot. This works fine.
My problem is that every ListBox has it's own SelectedItem. I want to clear the SelectedItem from each ListBox, but ...
I am working on this WCF-WPF app. I am frequently getting this error on an asynchronous XamDataGrid. Trying to make a WCF call and populate the Grid. I initially thought this is something to do with the large amounts of data returned from WCF and I made the call return data is much small pieces, by calling only for a category only. This ...
Hi there!
I'm having trouble to translate a usercontrol in my project, i'm implementing a drag & drop application.
Here is the layout my program, the Canvas named Buttons holds the Usercontrol that will be dragged and dropped.
When I drop the object, I want to appear in another position defined me.
I've tried to use Canvas.SetLeft(...
How do I stop a video at a specific time using Blend/WPF in C#?
Example:
When I clicked on a "TreeViewItem" called "MONDAY", the video will start to play. But up to 10sec of that video, I want it to stop. As after 10sec, that video will be showing video of another "TreeViewItem" called "TUESDAY". So what is the coding for it?
My codin...
I have a WPF application that has several WindowsFormsHost controls. I'm trying to track the mouse position inside of my application when it is maximized in full-screen mode. If the user puts the mouse near the top screen, I'd like to display a Window with additional menus.
I can use:
Window.PreviewMouseMove
InputManager.PreProcessInp...
Hi,
First of all - i googled the problem, and nothing good related seemed to come up.
Also it will probably seem to you that this question is a newbie one (and i must say i never had this problem when printing files in a directory.
I am pretty new to WPF in C#.
so..
I am having problems to Print all files in directory that has ".xml" f...
Ello all,
In my custom activity, when I drop an activity into the WorkflowItemPresenter, save and compile, my activity suddenly disappears and I have no freakin clue why. I'm probably making some noob mistake somewhere but, I'm not seeing it. I've gone back and made sure my code complies fine and deleted and re-added my assembly contain...
this is my code:
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<ListBox ItemsSource="{Binding Persons}">
<ListBox.ItemContainerStyle>
...
Is there way to create a border that is only on the top, left, and right sides?
...
We are trying to pick a modular programming solution at my work. The choice right now is Prism or ASP.NET Web Parts.
One Boss person asked if you could wrap a Prism Module in an ASP.NET Web Part so they can be used anywhere (kind of a "can I have my cake and eat it too" kind of question.)
While I don't think this is a feasible solutio...
Hi,
I was wondering how I can make a GUI that looks like Media Center, so like this:
I don't know if it can be done with simple c# .net or if I have to use WPF or something. (The app needs to be written in C# style)
I found a couple of tutorials for WPF but nothing I can use to create such an nice looking GUI.
Hope somebody knows so...
Hi,
Is there a way to "hide" the SelectedItem of the DataGrid ?
dataGrid.SelectedItem.Visibility = Visibility.Hidden ???
Regards,
MadSeb
...
Hi, whats the simplest way to make ocx library working in c#? (I'm using wpf project) I tried to use aximp, but when creating Ax[libname]Lib.Ax[libname] object, calling getocx() returns null.
EDIT: I should add, that this lib is for communicating with some specific driver
...
Hi,
I have a WPF DataGrid. The DataGrid is bound to an IList. The list has many many items so the DataGrid MaxHeight is set to a predefined value and the DataGrid automatically displays a scroll bar. The selection mode and unit are set to "single full row".
The form has a button called "New" that adds an item to the list that the data...
Is there a way to declare a tuple in xaml so I can use it as a converterparameter?
...
I have several conditions that need to be met in order to allow a user to edit the details of the selected item.
the conditions are:
if the item is active they are allowed to edit it regardless of security level. No problem there.
if the item is inactive:
users above security level 50 can edit it
users below security level 50 can only...
I am quite new to WPF and I am confused about how Data Bindings should behave.
I have created a class that has 1 property ("status") and three methods that are responsible for changing the status. This class implements the INotifyPropertyChanged interface so that I am able to notify the calling code when the Status changes.
The class l...
I have a project that was created with VS2008. I'm trying to build it with MSBuild 4.0, but still targeting the 3.5 framework. When I do so, I get the exception:
[exec] ResGen : error RG0000: Could not load referenced assembly "C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationUI\v4.0_4.0.0.0__31bf3856ad364e35\PresentationUI.dll". ...
Let's say I have a class defined something like the below:
namespace MyProject.MyConstants
{
public class Constants
{
public class Group1Constants
{
public const string DoIt= "DoIt";
}
}
}
I am trying to use this const, from a separate project, in my xaml. I included the namespace:
xml...