My WPF application currently only shows a screen with some controls, it doesn't connect to DB or has any other functionality. It's a simple UI screen.
When I was testing in some computers (WinXP SP2), I've detected that it took more than 15 seconds to startup. They were all in our domain.
I've grabbed a similar computer, only with Wind...
I need to create a row in XAML which has a label,two radio buttons.. Based on some operation i need these row to be visible..else i need it to hidden.. I do not want the empty space to be displayed.. Is this possible only through code? If so can anyone help me out please?
...
In WPF, we are using a WebBrowser control to view HTML content. When we place the control on our window, it grows horizontally with the window as it grows/shrinks. However, we have not found a way to make the control grow vertically with the window. We are looking for some sample code that will allow the WebBrowser WPF control to grow...
How to correctly resize scrollbar when underlying collection of a WPF ListView changes?
I have a WPF ListView bound to an observeable collection with several thousand items. When a large number of these are removed the view seems to only show the last item. When I move the position in the view with the thumbbar, the thumbbar resizes t...
I need to be able to specify a command to run when the SelectionChanged event fires. I already know how to implement the ICommandSource interface; what I need to know is how I can just add a command to the column series to handle the SelectionChanged event.
When I inherit from the ColumnBarBaseSeries<...> base class I have to override ...
I'm trying to apply a specific style to a slider control and I'm having trouble figuring out what I need to do for the slider's background. What do I need to do to get something like this triangle to show in the background of my slider?
I initially thought I would define a GeometryDrawing and set something in the tickbar tag to it - bu...
I am trying to make a simple DateTime column, for setting Time values. Playing around like that:
<toolkit:DataGridTextColumn Header="Start" Binding="{Binding Path=StartAt, StringFormat=0:hh:mm:ss tt}"/>
it appears normal but changing the value doesn't work out. I dunno why.
And is there any possibility to make some kind of "mask", wh...
Is it possible to bind something to a property of a control in a data template entirely in XAML? The following code is a simplified version of the problem I'm running into. I'd like the text of the TextBlock (displayName) to be updated as the user types in the TextBox located in the DataTemplate.
<Window x:Class="WpfApplication4.Window1...
Hello,
Does anyone know why I keep getting the "Items collection must be empty before using ItemsSource"-Error?
Here is the code:
<ScrollViewer Margin="8,8,8,8" Grid.Row="3" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">
<WrapPanel Orientation="Vertical">
...
Possible Duplicate:
In WPF, what are the differences between the x:Name and Name attributes?
Hi,
I just stepped into the WPF and I read various texts about it. But what I don't understand is the difference between 'Name' and 'x:Name'? In most cases I can use the 'Name' and it's working ok, but in plenty tutorials is the second ...
How can I avoid Visual Studio designer errors when a WPF resource is defined in separate project?
I have three projects in a composite WPF application: the main application, an "infrastructure" library, and a "module" library. The main application references the other projects via their output DLLs (the projects are not located in a sin...
After importing an older C# file into a new WPF appliction, "using System.Windows;" gives an error message. This wasn't just one C# file, it was a number of them and I put them into a new project.
What reference do I need to locate or change to get using System.Windows to resolve properly?
...
I'm working on a project that involves drawing curved paths between two objects. Currently, I've been writing some test code to play around with bezier curves and animation. The first test is simply to move the endpoint (Point3) from the origin object (a rectangle) to the destination object (another rectangle), in a straight line. her...
Is there a way to make the selectionchanged event fire every time a selection in the listview is clicked, instead of only when it changes?
For example, lets say i have a listview with only one object in it. The user clicks that object, and that object contains information that populates some textboxes below. The user starts changing som...
I mean, I have read features lists of all popular solutions. And they all have export to Excel and ctrl+c to Excel. But what about opposite process?
In my case all the data comes from different sources, mostly in xls and user need to have an easy way for it's input.
...
If I call GetAdornerLayer(control) in a control and then add an adorner to the layer, will calling GetAdornerLayer(adorner) return the same layer? I ask because we have code that adds an adorner in a control, and then need to remove that adorner when the control goes away. You can't call GetAdornerLayer(control) in the control's Unloaded...
Hello,
I have a ListView that I am populating with items from an ObservableCollection. All was working well until I decided to add a second list view to filter some of the items.
What I have setup right now is that the main listview has "ItemGroup" objects as the rendered items, with the item being shown being the first in the item gro...
I have a crash that's happening on Windows7 but not on XP, and was hoping for some insight.
The application has an OpenGL Windows Form control used to display 16 bit grayscale images. This control works well under XP, and has been wrapped with a WindowsFormHost to run under WPF. When I start the application in Windows 7, the applicati...
Kind of a two part question... first let me explain what I am trying to accomplish.
I have a basic window that is laid out as follows
Server (combobox) that pulls a list of sql servers:
<ObjectDataProvider x:Key="SQLServerList" ObjectInstance="{x:Static data:Sql.SqlDataSourceEnumerator.Instance}" MethodName="GetDataSources" IsAsynchro...
Many WPF examples use CollectionViewSource as DataSource for DataBinding. It provides sorting and other useful functions. My question is, shouldn't this be done in Database? I mean in SQL? I bet it's 10times quicker. Isn't CollectionViewSource too slow?
Thanks
...