This seems to be a problem I struggle with on a recurring basis. I've got a control that has a hierarchy like:
<grid>
<stackpanel>
<expander>
<textbox>
The problem is that when a bunch of text is bound to the textbox, it just expands off into infinity. The behavior I want of course is for the textbox to fill ...
Hi All,
This is a long one . I am adding code so that you can see what I am trying to do. Let me know if anything is not clear
I am trying to get selected items from nested listbox in multiselct mode . Here is code ( removed lot of unwanted stuff)
public class Item
{
public string Name { get; set; }
public IList<Item> SubItem...
I have a simple, horizontal <Line> element. This line has a RotateTransform applied to it, which slants the line at whatever angle I choose. The problem is that the rendered length of the line is calculated before the transformation is applied. The result is that the line no longer fits its parent element after it is rotated.
My curre...
When the following XAML used, the window size is not 5000x5000, but some small window where the button is cropped.
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" >
<Button Width="5000" Heig...
Hi There,
I have downloaded the ribbon control for WPF, I noticed that there are terms for me to follow if I need to use it.
However, I have checked some of the posts saying that the Preview cannot be used for production purposes, however, version 1 of ribbon control will be able to and will be released at Q3/Q4 of 2009, alright, we ar...
Hi
I am about to start a new application. I am bit confused on deciding on wpf or xbap application. I need a list of limitations and advantages of Xbap and Wpf independently.
Looking into these pros/cons, and my requirements, I can take a call.
...
Imagine this: you have a Master-Child window consisting of a list of items (the Master window) and a set of controls where you can edit the currently selected item (the Child Window). The child window has "Apply" and "Cancel" buttons.
A user begins editing values. He then changes the selection, before pressing the "Apply" button.
Your...
How can i get full union bounding box of control with all of its descendant controls, with out display full control,
For example i have a panel in which i am displaying the child item. when panel have control that are visible
VisualTreeHelper.GetDescendantBounds(myPanel);
return the desired result,
but if some items are not visible d...
The title pretty much describes it. If I resize my WPF app so that it stretches over two monitors in a dual monitor setup, and resize it back, there will be a ghost window in the second monitor that does nothing, but is still moved when I move the original window in the first screen.
Has anyone had issues like this? I think its a refres...
I am creating a WPF data grid, and I want to be able to reorder rows by dragging and dropping, like this: I click on a row and drag it up or down. As I do, a marker shows where the row will be dropped if I release the mouse. When I do release the mouse, the dragged row is inserted where indicated by the marker.
Has anyone seen any artic...
I have a scrollbar in wpf around a ItemsControl, which is only visible when the list is longer than the window size. However, when it is hidden, there is a blank white space where the scrollbar should be.
How can I remove this space and "collapse" the scrollbar instead?
<ScrollViewer VerticalScrollBarVisibility="Auto"
Hor...
I am binding some business objects to a WPF ItemsControl. They are displayed using a custom IValueConverter implementation used to produce the Geometry for a Path object in the DataTemplate as shown here:
<ItemsControl x:Name="Display"
Background="White"
HorizontalAlignment="Stretch"
Vertical...
I have textboxes in a Grid with numbers in it. If I resize the window I want to change the fontsize too.
This code works with the actual height of the textbox.
< TextBox FontSize="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}, Converter={StaticResource HeightToFontSizeConverter}}" Text="12345"/>
But now the Fontsize...
Hi there,
Is there a way to disable to Application Menu, the circle thing on the left hand corner, so the user can't click on it?
I have absolutely no use on that, and cannot think of anything I can use that, I can't find any options to disable it.
Please help
Many thanks
...
Hi.
I have a WPF application and I want to play flash movies in it.
I used the WInforms active X control as described in this link
It worked partially, but now whenever I run the application it crashes saying "InvalidActiveXStateException"
does anyone have an idea how to solve this?
...
Hi, all. I have a usercontrol "NumericTextBox" that only allows numeric entries. I need to exhibit another specialized behaviour, that is, I need it to be able to bind it to a VM value OneWayToSource and only have the VM value update when I press enter while focusing the textbox. I already have the an EnterPressed event that fires whe...
I'm adding my hierarchical data to a Menu-Control using the HierarchicalDataTemplate.
<HierarchicalDataTemplate DataType="{x:Type local:MyType}" ItemsSource="{Binding Path=SubItems}">
<StackPanel>
<TextBlock Text="{Binding Name}"/>
</StackPanel>
</HierarchicalDataTemplate>
My Menu is created like this
<Menu>
<Menu...
We need to have non-developers create dozens of input forms with XAML.
The best solution I found was the free XAML Power Toys since you can create and edit grids visually, also create from classes.
I took a look at Blend 3 quickly, dragged a Grid into my Window but found no options to actually create, say, a 4 x 10 grid with labels. I ...
I have created a checkbox column in a WPF DataGrid, and I have set the column header to be a checkmark image. Here is my markup:
<toolkit:DataGridCheckBoxColumn Binding="{Binding Completed}" Width="25" IsReadOnly="false" >
<toolkit:DataGridCheckBoxColumn.Header>
<Image Source="..\Resources\Images\checkmark.png" Height="9" W...
Hi all,
I want to make a graph of several ROC curves in WPF. I've found the WPF Toolkit, but I don't see an out-of-the box solution for what I want, just several basic graphing types. Is it possible to build an ROC curve (preferably, an ROC convex hull curve) in the WPF Toolkit? Once it's built, is there an easy way to get the AUC? O...