I have written a custom Bindable RichText Box, so I can bind to the Document property.
However, as soon as I set my document content, the only keyboard input it accepts is the backspace key (???). No other keyboard input is acknowledged (including the arrow keys).
Any ideas?
Here is the code of my BindableRTB class:
Imports System.W...
I have a WPF Window with several TextBoxes on it.
I have an XSD dataset attached to a SQL server database, and the window is bound to a row from the tableadapter:
public partial class PersonForm : Window
{
public PersonForm(int id)
{
InitializeComponent();
MyDatasetTableAdapters.personTableAdapter tableAdapter ...
This is driving me absolutely nuts.
I've got a WPF browser application that is somewhat like a content management system. We're going to use it for internal employees to get troubleshooting documentation. It consists of a Treeview, to hold all the topics, and a documentviewer control to display XPS documents.
Currently, I have XML th...
I have the following datatemplates:
First One:
<DataTemplate DataType="{x:Type WIAssistant:DestinationField}">
<ContentControl Margin="5" MinWidth="60" MinHeight="70" >
<Border BorderThickness="2" BorderBrush="Black" CornerRadius="5">
<!--This text block seems un-needed. But it allows the whole control to be dr...
I'm working to build a .NET program with WPF that will need to be localized. I have looking into localizing the app with LocBaml and by using .resx files. However, both of these options require a specific directory structure to be in place. I would like to deploy the program using IExpress (wikipedia) to allow the end user to download a ...
If have a control that acts like a record selector from a database, say, for example, customers.
The control must act in certain ways allowing the user to type the name, the alias or the code of the customer, and the control will select the correct one, or offer a list of possible candidates, and other behaviors.
I have tried to inheri...
Does anyone know if it's possible to have key combinations for keyboard shortcuts in WPF?
Right now if I want to use CTRL + S as a shortcut I can do the following:
InputGestures.Add( new KeyGesture( Key.S , ModifierKeys.Control ));
But if I want to use CTRL + S, D ... I don't have an overload that takes the "D". Is there a way to ov...
I have a WPF DataGrid. I would like to restrict the values a user may enter in a particular column, such as the following:
Column A values may only increase (new value > old value).
Column B values may only decrease (new value < old value).
If the user-entered value is invalid, I want to revert to the previous valid value.
I thought...
I keep having this problem, solving it, and then when I implement new code it comes back again. It's driving me crazy!
What I finally found was that if you instantiate a Window of any kind, even if you never call Show() or ShowDialog(), when you close your application, it will not terminate. So now I make sure to call Close() when app...
I have a WPF Custom Control inherited from Button.
How do I programatically get the custom control to capture the Click Event (so that I can record the action and do some internal work)
(basically I want to catch the event and set a certain property to a certain value) and make this part of the classes standard functionality.
From my ...
I have the following xaml in my window:
<Border Height="100" BorderBrush="Black" BorderThickness="2" CornerRadius="10" Background="PaleVioletRed" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="17" FontWeight="Bold">Error Message Here</...
Suppose I have 2 tabs with parameters to be set and two buttons under them, one serves to Ok the procedure and do the math, the other clears the values entered by the user to their defaults.
What I'd like to do is to make the Clear button sensitive to whatever tab is currently active. So if I'm in Tab 1 and press "Clear", only the Tab 1...
Hi to all,
I am developing a wpf desktop app with strict MVVM pattern.
Current my app is doing following things:
Showing a Treeview with HierarchicalDataTemplate.
User can expand or collapse Nodes.
User can add add new Nodes(Drag n Drop + double click).
Everytime a new Node is added Model is updated and Treeview ...
I'd like to implement a window much like how the newer versions of IE have the URL bar kind of incased in the Vista/7 aero. I've looked around and not found too much useful information, and was wondering if any of you guys knew of the best way to do it!
...
Hello,
I would like to place some WPF Data Templates in a loose file that I can reference where needed in my UserControl. I do not want the Data Templates to be application wide (use app.config), I only want it to be specific to my library.
Is there a way to do this besides placing the Data Templates in UserControls and then loading the...
We have multiple filters based on the same collection. i.e. we are displaying the same collection in a variety of ways. What i would like to be able to do is ask all of the CollectionViews to refresh when a property changes (as the collection view will only refilter if items get added/removed from the collection). Is there a way to find ...
This is driving me NUTS!!!
I have a ComboBox used to filter a query by employee which works fine but only displays the employees first name. I want to use a MultiValueConverter to display the employees full name (This would be less urgent if we did not have 2 Mikes and 2 Daves)
Below is my working code and the IMultiValueConverter Clas...
<ComboBox Height="23" Margin="52,64,33,0" Name="comboBox1"
IsSynchronizedWithCurrentItem="True"
IsEditable="True"
DisplayMemberPath="Value"
SelectedItem="{Binding Path=Number, Mode=TwoWay}"
/>
public class Number : INotifyPropertyChanged
{
private strin...
guys
as per my understanding about mvvm is.
there is a model (entity class that also implement inotify...), view (xaml code) and some class as vm (kind of controller which normally inherit icommand) to let us make events/commands to be generated on specific event...
m just wondering about difference between viewmodel class and xaml'...
Hi,
I have to do an animation in a WPF project .
That is,one of the windows should display person's photos like an album,
where i should be able to flip the pages to see each person's info.
Each page should contain a header Description of person and a Photo below.
I dont have expression blend.
What is the simple way to do this.I a...