I have setup a property and implement INotifyPropertyChanged
like so...
public event PropertyChangedEventHandler PropertyChanged;
public FlowProcess LastSelectedFlowProcess
{
get { return _lastSelectedFlowProcess; }
set
{
_lastSelectedFlowProcess = value;
Notify("LastSelectedFlowProcess");
UpdateFlo...
In a VS Package (Visual Studio Extensibility), I have a custom extension registered (for ex ".custx") with XamlLanguageService, so that in Visual Studio when the user opens .custx, it opens up in Xaml Designer/editor just like a .xaml file.
However when I compile it as "Page" (BuildAction), the WINFX targets / Compiler errors out with ...
I have VS2008 with .net 3.5 SP1 installed on my machine, I have written one simple application with two listviews and databinding, My application compiles fine and I am able to run it, but when I try to open designer to edit controls, I get following error.
I am not getting why this is happening. Any idea...see xaml below this error mes...
I put two controls in a grid column and make either the first or the second control visible. Since the width of the grid column is set to auto it will resize itself according to the width of the visible child... unless I change the width of column using a grid splitter.
Now the column does not resize itself to its content anymore if I to...
I'm in need of a WPF layer control that does the following
1) Have multiple layers of content on top of each other.
2) Ability to turn layers on/off at design and runtime, ie we need a UI maybe something like a tabbed control
3) Move layers up/down the stack
4) Change opacity for layers
Now I know all of the above is possible in Xam...
The following example successfully binds objects with a list box to display them.
However, I would like to create all the objects in one class and then from another class query them with LINQ to fill my XAML Listbox, what would I need to add this example:
XAML:
<Window x:Class="WpfApplication15.Window1"
xmlns="http://schemas.mi...
When databinding my xaml to some data I often use the "get" part of a property to do some logic. Like giving to sum of totals of a list or a check if something is positive.
For example:
public List<SomeClass> ListOfSomeClass{get;set;}
public double SumOfSomeClass
{
get
{
return ListOfSomeClass.Sum(s => s.Totals);
}
}
public...
I'm getting an error for this content template within a style: "Must specify both Property and Value for Setter." Aren't I doing that?
<Style x:Key="LinkButton" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<ContentPresenter/>
</ControlTemplate>
...
Is there a way for me to have the Window of my WPF application resize dynamically with the content? I tried setting the width and height to auto, but no go.
...
A bit new with WPF...It seems like not matter what I change with horizontal and vertical alignment, WPF has a mind of its own when resizing my controls in design time. I created a new Window, placed a couple of buttons and text boxes and whenever i change the size of the window all the controls get resized. Is there a way to lock it do...
When I drag a control from the toolbox on to the Visual Studio 2008 WPF design surface, it sets a margin based on where I dropped it and a default size.
Is there any way to prevent VS setting those? When I drop a control on a stackpanel I want it to flow in to the existing controls in the panel.
Thanks!
...
I am currently looking into learning WPF and Silverlight. So far I have been developing in Delphi and C# (Winforms). While looking at some books about WPF and watching some introductory videos online, I am getting the impression that this XAML thing is quite a step backwards in terms of efficiency and usability (for the developer). Espec...
I am writing my first application in WPF and want to have the user input some data on a modal dialog window. Apparently, this is not simple to do in WPF, because the parent window stays fully enabled, and the method that created the new child window doesn't stop and wait for the child window to call Close(). Instead it just keeps going...
Hi
I use next solusion:
How do I move a wpf window into a negitive top value?
http://stackoverflow.com/questions/328127/how-do-i-move-a-wpf-window-into-a-negitive-top-value
But if I use my program via Remote desktop then if in code is
wp.flags = wp.flags | 2; //SWP_NOMOVE
moving window (drag) does not work at all.
???
...
I'm using a controlTemplate of the ListBox to show a collection.
I want to display all the items with a border like in a grid (all lines same size).
When I give every listBoxItem a border, the line between 2 items has a double size.
(made from the bottom border of the first item, and the top border of the second item)
So the question...
Hi..
I'm using the following .. but the underline does nothing.. thanks in advance
...
Hello - I am wondering if anyone has attempted the following or has an idea as to how to do it.
I have a WPFToolkit DataGrid which is bound to an ObservableCollection of items. As such, the DataGrid is shown with as many rows in the ObservableCollection, and as many columns as I have defined in for the DataGrid. That all is good. Wha...
Edit: Matt, that does indeed solves some (most) of my problems, thank you. Now the only lingering issue of how do I do this in WPF? I have a custom part based off of a UserControl but there is no way in WPF to do :
[Import]<my:SomeCustomControl>
so the cascade doesn't work in this instance.
/Edit
I am having an issue [Import]ing...
Can both WPF and Windows forms controls be used within one application? How difficult or practical an idea is this?
...
I'm trying to learn WPF and the MVVM problem, but have hit a snag.
This question is similar but not quite the same as this one (handling-dialogs-in-wpf-with-mvvm)...
I have a "Login" form written using the MVVM pattern.
This form has a ViewModel which holds the Username and Password, which are bound to the view in the XAML using normal...