i have a process ta take long time and i want a window to show the progresse but i can't figure how to display the progress
here the code:
if (procced)
{
// the wpf windows :
myLectureFichierEnCour = new LectureFichierEnCour(_myTandemLTEclass);
myLectureFichierEnCour.Show();
...
I'm attempting to bind a Dictionary to a ListView who's item template constist of a grid with 2 textboxes. Ideally I'd like to be able to modify both the key and the value of the KeyValuePair displayed in the ListView . Is that possible?
...
I have this class called Hero that has the following attributes. String is for letters, int for numbers, etc. What can I use if I'm going to be saving an image there?
public class Hero
{
[Hero class's attributes (non-image related]
public byte[] Portrait { get; set; }
public byte[] Screenshot { get; set; }
}
Portrait and S...
I know this works fine:
<TextBox IsEnabled="{Binding ElementName=myRadioButton, Path=IsChecked}" />
...but what I really want to do is negate the result of the binding expression similar to below (psuedocode). Is this possible?
<TextBox IsEnabled="!{Binding ElementName=myRadioButton, Path=IsChecked}" />
...
I have a list box that has a grid in it's template to allow 4 columns. One column is the actual text of the list box. I want that column to fill the available horizontal space.
The column definitions are:
<ControlTemplate TargetType="ListBoxItem">
<Grid ScrollViewer.CanContentScroll="True" Margin="2">
<Grid.ColumnDefini...
The Wpf combo box allows editing, and this is fine if all your combo box items are strings, or have a ToString() method defined on them.
When you select an item, it is displayed as Text, it does not use a DataTemplate, it just calls ToString() on the item that is selected.
I get a list of items in my combo drop down that are formatted...
In WPF, I have a ListBox with a UserControl as its ItemTemplate - all data shown ok. I have now added a text box for input in that user control. In an MVVM design, I want to take some action (re-calculate values) in the main window when the user edits the content of the text box in the user control, in the item template, in the list box....
We have an application that generates around 100 animations at runtime and they are all added to a single storyboard and then played. The problem is that the animation is extremely slow. The objects that are being animated are shapes and splines and a good amount of computation is done in the backend for generating the custom splines. Th...
Hello,
I prepare a WPF project, where I want to implement a more complex search. I use LINQ to entities through the ADO.NET Entity model and plan to do the display in WPFToolkit DataGrid.
My search window should allow search by a few different criteria. My idea is to be able to write in (for example) name, surname and occupation textbo...
I have a grid with 2 rows * 2 columns, and put a TextBlock in left-up cell(row=0, column=0).
then I set Grid.Cursor = "Hand" in XAML. the hand-cursor displayed only when mouse over TextBlock. But I want to display the hand-cursor in entire grid.
How to do it?
...
I have a Parent Canvas which has mutiple paths.
Each Path has a bunch of shapes inside it but all of them refer to ParentCanvas as their parent. When i loop through the children of the parentCanvas i would like to figure out which childElement falls in the boundary of each path. Just wondering if anyone has any suggestions.
Another way ...
Hello,
I am implementing a WPFToolkit datagrid and I want to bind it to it's source. Currently I do it programatically in code-behind through linking the query results to the ItemsSource . Still this is not effective enough, as I want to be able to select which columns to display and also to rename the headers, for which I need binding...
Hi everyone,
I would like to change the content of the main surface (the stuff below the ribbon itself)in a WPF application when a ribbon tab is clicked. I'm using the office ribbon, not that is matters much. So which WPF container control should I use, and how would I do it? Should I just have various controls with visibility hidden, or...
Hi,
My company is to develop a touchscreen application. We have some prior experience with thouchscreen application, not all of which are positive. Our last touchscreen application contains some vast disadvantages:
First, the application is built on a bunch of forms that are loaded each time a user presses a “Next” or “Previous” button...
Hello,
I'm creating a form using WPF with MVVM.
There I have my View with its DataSource bound to my ViewModel object. Great.
In my xaml, I have an ItemsControl with its ItemSource bound to ViewModel.MyCollectionOfFoo.
For every Foo object in this collection, I'm creating a control with bindings to this foo object, but I also need to...
hi ,
i want that at run time i can move any control in using mouseclick, i think i have to apply logic in mousedown and mousemove event but how can i apply this logic in WPF i tried this logic in simple C# desktop application but how can i achive in WPF
...
Hi guys, I have 2 comboboxes which we will call cbo1 and cbo2. Now, there is a relationship between cbo1 and cbo2. when i select an item at cbo1, the cbo2 ItemsSource is updated (since it is bound to the SelectedItem) anyway, below is the sample XAML code for it.
<ComboBox x:Name="cbo1" Grid.Row="0" Grid.Column="1" Margin="5" SelectedIt...
Hi all,
I need to assign a color to the a row that i add at runtime to the DataTable. How can this be done ?
Regards
Abdul khaliq
...
I have ListView with binding on ObservableCollection which has INotifyPropertyChanged implemented. When user open window, data will be displayed but I want to change backgorund on cells where data was changed in meanwhile...
I have been trying with Data triggers, but they can be triggered just on certain values. I want to trigger when v...
NOTE: e.IsRepeat is confirmed to work. The problem exists because I use Remote Desktop from Ubuntu to Windows.
I found a workaround for this Remote Desktop problem:
Disable key repetition in Ubuntu.
In host Windows: Enable FilterKeys with "Turn on Repeat Keys and Slow Keys"
Using regedit go to HKEY_CURRENT_USER\Control Panel\Accessibi...