I have a situation where I need to start a WPF application and have it run using a child window created by my C++ application. So the sequence of events would be -
Start C++ application
C++ application creates a window that it wants WPF app to run in.
Launch WPF using CreateProcess function. Included in create process would be the ha...
Hi,
I have just started using WPF. I'm getting my head around styling system since. I come from a CSS background and I would like to set margin in percentage.
<Style TargetType="TextBlock" x:Key="workflowNameTextBlock">
<Setter Property="Margin" Value="50"/>
</Style>
Currently value is set in p...
Hi:
I have an XBAP (WPF on browser) application that I want to run as a standalone application and also in the browser. How can I do that without making a lot of code changes, since going forward we will be doing a lot of modifications to the code anyway. And it is not a good idea to maintain 2 different codebases for that.
thanks,
PN
...
I am using vs.net 2010.
If I build a simple test wpf application against 3.5 framework the form appears transparent when shown (f5). It is almost like there is a problem updating/refreshing the form.
This problem is only occuring on my workstation (if I copy the wpf 3.5 application to a server it runs fine)
If i change to run against...
Hi,
I'm rather a newbie with WPF and still playing with bindings and such, so this probably a basic question.
Consider the following class:
class DataHolder
{
public List<int> Data;
// Points to one of the items in Data. Thus can be between 0 and Data.Count
public int Pointer;
}
I've set a ListBox's DataContext to be an...
I have a Button in a DataTemplate that is bound to a Command in my ViewModel. The button also has an EventTrigger that kicks off a Storyboard that hides the edit controls (of which the button is a part.)
The Storyboard works fine if I pick up the PreviewMouseDown event, but the Command never gets called. If I pick up the MouseDown event...
Hi there,
I am in the process of customizing a treeview contro, well its actually the treeview items. My understanding of a hierarchical control is more or less teh same as a non-hierarchical control like a listbox. So maybe if I explaing that you can tell me where im going wrong. When customizing a non-hierarchical data control I basic...
Hello,
I am using a base class to my Popup windows on a WPF application. Everything looks and works great beside one thing : I cant map an event handler that is on the base class to the xaml.
Ofcourse i can easily have the event on the implemented class, and use the method to call the base class, but i just wanted to know if there a wa...
Hello
It is need to realize UI settings system - loading/saving some properites of UI elements (which can be modified by user in runtime) from/into persistent storage. For example:
DevExpress grid control - columns width's, visibility, summary area and so on (this control has set of methods pairs like RestoreLayoutFrom/SaveLayoutTo, b...
I've just installed IronPython 2.7 with VS support, and am trying to create a simple prototype WPF application. Something is broken, probably in my installation, and I can't figure out how to diagnose it. I can't get the simplest of bindings to work; they fail with an exception that seems really, really wrong.
I create a WPF applicat...
I recall in Silverlight the ability to place an Attribute on a given property in the Model for an alternate display name when auto generating columns on a data grid. Is this possible in WPF? I don't want to use the event handler to change the names.
...
The background
Maybe it is not necessary, but I am afraid that single line question would be too complex.
So... I had min-max generic range validator (RangeValidator), because XAML does not work with generic classes I created simple derivative IntRangeValidator which would set int as generic type, because in current case I need validat...
I have a WPF Combobox with a ListView + "X"-Button in the Popup-DropDown. I am showing search results in that listview.
How can I make the popup close ONLY when the user clicks my "X"-Button in the popup?
...
I met a problem regarding to WPF window on windows vista SP2.
I create a window with following properties:
WindowStyle="None"
ShowInTaskbar="False"
ResizeMode="NoResize"
Background="Transparent"
The ShowInTaskbar is set to false, which means the window will not show taskbar button, but you can see it in the taskbarlist using Alt+t...
Is there a way to hide the cursor in a WPF textbox? I know there is Cursor="None" but that only affects the mouse cursor. I want to hide the "text cursor".
...
Hello,
I have source-ObservableCollection holding hierarchical data in configuration A, and i want to display it using a treeview in configuration B(add custom parent-nodes, display different types of data on same hierarchy level).
i've managed to to it only by setting the OC (ObservableCollection) hierarchy to match the exact desired o...
I have a Window with seven buttons; I use it as a menu in a simple game I am working on, but I display it as a dialog. How can I know which button user has pressed, since DialogResult in WPF only offers true, false and null?
...
I'm trying to reset data in my object bound to a simple form (some textboxes and a couple of buttons).
I have 2 objects that were created separately, but have the same information. Object 1 is bound to a form using DataBinding. Object 2 is there to be able to reset Object 1 to original values.
Whenever user edits data everything is fine...
Hello:
I have a WPF application that runs on a small database. Using clickonce or any one-click solution the users want to install the application locally and also set up the database at the same time. All users run SQL Server locally, so that is doable.
Can someone tell me how I can do that using a single mouse click?
Thanks
PN
...
I was wondering how to increase the span of a listbox control for a certain criteria in WPF Grid. I have a textbox wherein the user enters a string and based on the presence of the string in a collection, the listbox should become visible and show the results in it by spanning across the columns of the grid. This listbox is actually a pa...