Can someone explain this WPF behaviour?
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<!-- Rounded mask -->
<Border Name="mask" VerticalAlignment="Top" Background="Black" CornerRadius="48" Height="400" Width="400" />
<S...
Hello.
I have a DataGrid that two of its columns are ComboBoxes (one contains few but not this is the problem).
I want, that when the user changes the first Combo's value, the ComboBox in the other column should bind to a property of its (this property is a collection). Say the First ComboBox is Category, I want that when the user chan...
what could be done if i want to get the removed itema dn added items from a comboBox?
...
I have tow DocumentPaginator classes that creates two separate documents how would i append these two DocumentPaginator together to create one document.
class ListInfoPaginator : DocumentPaginator
{
private IList<string> dt;
private string _name;
// Could be wrapped with public properties that call PaginateData() w...
This is a bit of a difficult problem to explain, but I'm hoping it has a reasonably simple resolution.
I am writing a Listbox control in XAML and most of the layout for the ListBox.ItemTemplate laid out in a grid is the same throughout the list. However the listbox is a "Problem Resolver" that picks out anomalies in a list of customer o...
I have an application that replaces a physical function keyboard with keys on the screen. Example of existing application
Now I locate all the buttons in the window with code and it is rather slow. So I wonder if I can solve this with WPF. Unfortunately, I am new to WPF and wondering how I should proceed.
Requirements
Location of th...
I'm creating a class library that makes available some XAML windows (in theory). To create the XAML, I right clicked on the project and then clicked Add->New Item, and then specified Window (WPF). I then created my XAML, which I had already prototyped in a stand alone application. However, when I go to build my project, I get the followi...
Tricky one to explain this. I have a custom built properties grid. The left hand column has the property labels. Sometimes depending on the property, I want a little elipsis button to show the user that they can launch a dialog. I want the buttons to be inline vertically to make the UI look neat. The labels vary in width depending o...
My XAML is as follows
<Button.IsEnabled >
<MultiBinding Converter="{StaticResource IsEnabledConverter}" >
<Binding Path="aaa"/>
<Binding Path="bbb"/>
<Binding Path="ccc"/>
<Binding Path="ddd"/>
<Binding Path="eee"/>
<Binding Path="fff"/>
<Binding Path="ggg"/>
<Binding P...
I have a .Net 3.5 WPF application that works fine on many windows 7 computers but on a few it hangs directly on startup before the window is displayed.
The machines are running 64-bit win 7 and .Net 4 is installed. There are other machines with the same configuration that works.
No error message is displayed and nothing is written in t...
Hi
I have to rewind and forward smoothly the movie using Media Element. It seems to be the player position has to be changed with the timer to do forward and rewind. Any better alternatives.
Thanks and Regards
Raju
...
I'm trying to integrate a WinForms Form inside a WPF XAML page.
I have seen examples of putting Windows Forms controls using WindowsFormsHost, but not for integrating a whole form.
Is there a way to do it? The Windows form is hosted inside the WPF application and I'm currently able to load it as a new window but not inside the XAML page...
I created a button. My basic requirements are rounded thicker border, with more than one color (i.e. for Buy/Sell buttons)
I was hoping that i could create the template once, and than just override the border brush like this:
<Style x:Key="BorderButton">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate T...
Hi, I have a simple template for a combobox structured in this way:
<ComboBox DockPanel.Dock="Left" MinWidth="100" MaxHeight="24"
ItemsSource="{Binding Actions}">
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
...
What would be the cleanest way to have a Save state for an application so that whenever a property or content was updated the "Save" options would become enabled.
For example, there is a menu and toolbar "Save" buttons. When the WPF app first opens both buttons are disabled. When the user updates the properties or document, the buttons ...
I am trying to figure out the best way to create a style/trigger to set foreground to Red, when value is < 0. what is the best way to do this? I'm assuming DataTrigger, but how can I check for negative value, do i have to create my own IValueConverter?
...
Hello
I have a UserControl that I have successfully been using as a header for presentations that involve a list which can be headered, using the xaml below:
<DockPanel >
<uc:ListSubjectHeader Subject="{Binding DisplayName}"
AddNewItemCommand="{Binding AddCommand}"
ImageSource="...
I made a small program in c# with a button that is supposed to open another .exe file.
It works fine if I use:
private void start_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start(@"path to file");
}
But not if I want it to run an .exe from the same folder, i basically wanted somet...
In WPF I can specify that a control container is a Focus Scope and that tab navigation should cycle through the controls (i.e. when I tab out of the final control, focus will return to the first):
<Border FocusManager.IsFocusScope="True" KeyboardNavigation.TabNavigation="Cycle">
<ItemsControl ItemsSource="{Binding}">
<ItemsContr...
Soon to be a professional .NET developer (I hope) I start to dig into Windows Presentation Foundation (WPF). Looking into several video tutorials, I find design of GUI a daunting task. Having to specify every color, on every element, in every situation, to every platform seems a bit too much. How can you make this process simpler, and mo...