Hide item on WPF ListView
How I can hide a item, binded on ItemSource of a ListView. I want to hide it dont remove it,. Is Possible??? ...
How I can hide a item, binded on ItemSource of a ListView. I want to hide it dont remove it,. Is Possible??? ...
I have a DataTemplate with a number of layered text and graphic objects. One of them is a glow effect that comes from the RadialGradientBrush Fill property of a Rectangle. At first, I named the Rectangle and bound to the Fill property and changed it using a DataTrigger. This worked fine, but I have a number of RadialGradientBrush objects...
How can I remove the small rectangle that appears when a horizontal and vertical scrollbar appear? ...
As Here on the link is a nice docking application but I need something like Mac OSX dock, It Docks at a side without taking the screen, and when we need it it's there. Please tell me docking solution that does not take up the screen space. Thanks in Advance. ...
I just want to understand the following scenario. Where I am implementing a <TabControl> bound to a ObservableCollection<TabViewModel> No Data Templates When I don't have any DataTemplates, the text WpfApplication1.TabViewModel appears in the Tab Header and Content. Ok I understand this part. Just ItemTemplate When I just have <Ta...
In c#/wpf I added a progressbar and mediaelement to my window. The idea was that progressbar is displaying how much is been played in the mediaelement. I tried it with the following xaml: <Window x:Class="TestApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/...
Possible Duplicate: Binding a WPF ShortCut Key to a Command in the ViewModel On a WPF window I have a menu-item that is bound to a command in the ViewModel: <MenuItem Header="_Edit page" Command="{Binding EditCommand}"/> The command is a RelayCommand which forwards the command to a method: EditCommand = new RelayCommand(()...
Hello, I have a ListBox which has its ViewModel - let's call it ListBoxViewModel. List box has ItemsSource="{Binding MyItems}" attribute which corresponds to ObservableCollection<MyItemType> in ListBoxViewModel. ListBox has its ItemTemplate which creates MyItemControl controls in ListBox. The question is that I expect that MyItemControl ...
In my program I have a string which contains URLs separated by /n (One per line) Let's say the string is called "links". I want to take this string and generate a HTML file that will automatically open in my default browser which will make each URL a hyperlink (one per line). How would I make such a report not using any third party comp...
Hi guys, I have a project in which I'll have to process 100s if not 1000s of messages a second and process/plot this data on graphs accordingly (The user will search for a set of data in which the graph will be plotted in real time, not literally having to plot 1000s of values on a graph). I'm having trouble understanding using dlls fo...
I have a portion of my page dedicated to showing credits and there are three textblocks that scroll vertically. I need each line however to pause when it gets into position (a position in the panel) and then continue after a second or so. Without making this all very complex, I don't know how to do this. I had all three lines scrollin...
Hi, I am newbie in WPF. I have this problem. I binding list items do listBox. I have own style on listbox. ListBox item consist Image and textBlocks. It works good. I need make zoom on listBox item when mouse is over on this item. I try use triggers, but I don’t know how can I resize listBox item. Any advance. Thank you. Sory for my engl...
I have created an object called Project that has different properties (strings and some custom objects), I have bound text fields to these properties to get user input. I have created a method that outputs this object to an XML file. However when I import this XML file back into memory the text fields do not become populated with the tex...
I'm Using MVVM in WPF (.Net 3.5) and I need a control that supports formatted text, bold & italics, and I can bind to easily. When I say easily I mean something like Text ="{Binding FormattedText}" and that's it. RichTextBox blows for binding. Any Ideas? thanks ...
I am creating window in another thread. After closing the thread some of the resources window is not released from the memory. Because of this growing counter GDI Objects and User Objects in windows task manager. Graphics that not released are font and region. I haven't idea what is going on... public class WaitingWindowManager { pr...
Hi, I'm working on a c# wpf application in which I want to validate user input in a textbox. I have a validation rule like this: public class NumericRule : ValidationRule { /// <summary> /// Checks whether a value can be converted to a numeric value. /// </summary> public override ValidationResult Validate(object value,...
I have a WPF ContextMenu that looks like this: <ContextMenu Width="300"> <MenuItem Command="{Binding MainWindowViewModel.NewCommand}"> <MenuItem.Icon> <Image Source="pack://application:,,,/EAV.UI;component/Resources/Icons/MenuNew.png" Width="32" Height="32"/> </MenuItem.Icon> <MenuItem.HeaderTemplate>...
I want to implement functionality that allows a user to move their mouse over a button and a tooltip will appear. The tooltip will display a scaled down preview of a specific ViewModel. I have implemented most of this, but, if I take the simplest approach of basically using a ContentPresenter to present the ViewModel, then every time t...
Consider the following xaml snippet: <ToolBarTray> <ToolBar Band="1" BandIndex="1"> <Button>Go</Button> <Separator></Separator> <Button>Camera 1</Button> <Button>Camera 2</Button> <Button>Camera 3</Button> </ToolBar> </ToolBarTray> How can I set the C...
My windows has many ListBoxes that load their items in the Loaded event. After they are all loaded I have to run a method. I found out that the Grid Loaded event happens before its controls Loaded. What method will fire once after that? ...