Hello,
I have the following simplified ViewModel
public class UserViewModel : IUserViewModel
{
public DelegateCommand<object> NewUser { get; private set; }
public ObservableCollection<UserInfo> UserList { get; set; }
public UserViewModel( ) {
NewUser = new DelegateCommand<object>( OnNewUser );
this.UserLi...
I have a reportviewer control in a pop up window inside my WPF application. When the report is to be printed, on some client machines it gives the following message "Some parameters or credentials have not been specified".
This error does not come on every client machine even though the machines are identical in every respect.
I have t...
Hello... How can i add validation to a textbox that isnt bound ...
<TextBox BorderThickness="1" Grid.Column="1" HorizontalAlignment="Stretch" Margin="3" x:Name="txtbFirstName" VerticalAlignment="Center" >
<TextBox.Text>
<Binding >
<Binding....
I'm creating attached property. My attached class is helper:FocusDetail and has 2 property. second property DetailBody type is object. I'm using this property on items control
<ItemsControl ItemsSource="{Binding Riches}" BorderThickness="0">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBox Text="{Binding TextInfo}"
...
I am in the process of designing a small WPF based application, and I'd like to define some frequently used vector icons in XAML in a form, that is usable in multiple controls on one view, and recolorable through binding.
For example, I'd like to a small cross icon change from black to gray together with the text in a disabled button, ...
I'm struggling a bit with keyboard navigation in the Telerik WPF RadCarousel. If i click outside an item, but within the carousel-control, keyboard naviation works as expected (I can switch between items using the left and right keyboard arrows), but if I click an item within the RadCarousel, keyboard navigation is gone. How can I get th...
Hello,
I have a TreeView in WPF which I have bound to a collection of categories that itself contains a collection of categories and son on and so forth. Currently, I'm binding the collection successfully and having all of my category names appearing. However, I also have an IsExpanded property on my collection objects that when all set...
In my WPF-application I call new windows in the following way:
_newWin = new WinWorkers_AddWorker();
_newWin.WindowState = this.WindowState;
_newWin.Show();
Where _newWin is a private Window object.
My question is should I assign a null value to _newWin after I call _newWin.Show()?
Will this decrease memory consumption, because garb...
How to raise dependency property every time whenever any value is assigned.
...
How can I create a messagebox with two textboxes inside of it so the user can type in information that I can save?
...
Hello, I have a problem I need to create a desktop WPF application in .NET.
The application receives and sends data from Web- server, and the application can work in offline mode when the Web server isn't available.
For example the application need to calculate how much time the user work on a project, the application connect to the se...
hello,
the title says it all, instead of disabling the button which happens automatically, i would like to hide (or rather collapse the visibility of) the button.
thanks for your help
konstantin
...
I am trying to put a ScrollViewer wrapped around a Canvas (a chart of some signals), but I can't seem to get it to work.
First of all, I have a user control that is a makes 2d line graphs (from a book that I'm following), and I am trying to modify it to customize it for my own uses. The relevant parts are:
My app (Window1.xaml)
<...
I'm not sure why, but none of the solutions are working properly for me from a similar question.
I realize that a TextBox has a property (CharacterCasing) which can be set to Upper to change any lowercase typing into uppercase. It works so great because the user is never interrupted while typing, caps lock and shift don't affect it nega...
I am using .net 4, vs2010 and have created a user control that needs to start collapsed and transparent (opacity 0) and become visible and opaque in response to a button click.
<UserControl x:Class="Ihi.LeadRetrieval.Client.Views.HelpView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
...
How do i get the tabs to stop in the order I want across usercontrol contained elements to local elements in a view, the view is static xaml, not composed ( like with prism ), should this involve code, or can i do this in xaml only? also if you know how to do this in blend that would be very helpful.
...
Can anyone explain to me the relationship between scrollviewer and SizeChanged event? Whenever I put a scrollViewer around a grid, numerous SizeChanged event gets fired. What is the relationship between the two? Thanks a lot.
EDIT:
From mdm20's comment, I noticed that the ActualWidth and ActualHeight of the grid increases continuously ...
how can I handle message box reply example if the user click on yes do something if the user click on NO do another thing ?
...
I have a DataTemplate that needs to set the IsSelected property on an ItemsControl's container (such as TreeViewItem, ListViewItem or ComboBoxItem). However, it doesn't know the type of the container until it's passed in to it. Since IsSelected isn't part of a common base class or interface, nor is it a common dependency property regis...
I ask because if you create a new WPF project in VS 2008 the default generated code is:
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
}
However, commenting out the call to InitializeComponent does not prevent the application running.
Why is this?
...