I have a WPF Menu and a Tab control. I would like the list of menu items to be generated from the collection of TabItems on my tab control. I am binding my tab control to a collection to generate the TabItems. I have a TabItem style that uses a ContentPresenter to display the TabItem text in a TextBlock. When I bind the tab items to m...
Is it still feasible to use the Current Multi-Touch frameworks .. Breeze, Multi-Touch Vista .. etc. While Native support for multi-touch in Windows 7 + .NET 4.0 and WPF ?
What are the advantages of using the mentioned frameworks over Windows 7 .Net 4.0 Transformation, Scale, Rotate Mechanisms ?
...
I'm using the MaskedTextbox for .NET 3.5 SP1, from the WPF toolkit. I've got a MaskedTextbox on a WPF page, it fills fine from a SQL Server database, but when I tried to edit the value nothing at all happens. I can select anything, but typing over it, or pressing the delete key or anything else I can thing of, does nothing to the value...
Within a Desktop app I have a toggle button:
<ToggleButton x:Name="CFStglBtn" Checked="cfsCBox_Checked"
Unchecked="cfsCBox_Unchecked"
IsChecked="True" HorizontalAlignment="Left" Margin="5,0,0,0">
<StackPanel Orientation="Horizontal">
<Image Source="assets\telephone.png" Margin="3,0,0,0" />
...
I want to suppress Cut, Copy and Paste operations in Text Box.
I don't want user to do any of these operations through keyboard or from default context menu in the text box .
Please let me know how can I restrict these operations?
...
I want to track which character is deleted by the user through Delete or BackSpace Key.
I am handling TextBox_ChangedEvent of textbox.
Can I extract the deleted character from TextChangedEventArgs *e.Changes* and if yes How can I do that?
I want to restrict user to from deleting any characters from the TextBox. I want user can delete ...
I have a label next to a text box which has a short cut key. The XAML for the label looks like:
<Label>Enter your _Name</Label>
Where if you press alt+N it sets focus in the textbox where you would enter your name.
I'd like the letter N to be underlined so that when the user sees the label it looks like:
Enter your Name (well N is b...
Hi all,
I'm developing a WPF GUI framework and have had bad experiences with two way binding and lots of un-needed events being fire(mainly in Flex) so I have gone down the route of having bindings (string that represent object paths) in my controls. When a view is requested to be displayed the controller loads the view, and gets the n...
Hi,
How can I force the mouse to move along a specific axis while the user keeps the left button down?
I would like the user to be able to move the mouse along the X axis while any movement on the Y axis would be "canceled".
thanks
Eden
...
Hello,
The company I work for is looking for a WPF component (commercial or free) that acts like a treeview, but it also has columns and a grid header, so for each item additional details can be displayed on separate columns. Implementing it is our last resort, but for now we would like to use an already complete one.
Do you know of an...
Hi,
If I add a control to a canvas and than removes it, I can not re-add it to the same canvas (or to any other canvas for that matter) any idea how can I reset the parent?
mainCanvas.Children.Add(item);
mainCanvas.Children.Remove(item);
mainCanvas.Children.Add(item); // Will throw an exception that parent was already set.
Thanks,...
I am new to using wpf and want to use expander to allow the user to show and hide text. I want the expander container to be the entire length of the window height 800. I want to have the expander expand to the right and have the text and expander button be in the center of the expander.
I know how to make the expander expand to the ri...
I have just converted my project to wpf 4 , In my previous version I have used the dialog Result set to true when the save but of a showDialog is click but now I don't get the true value of the dialogResult Property . is there any reason or I need to change the code
wndWindow childWindow= new wndWindow();
childWindow.ShowIn...
i want to have xaml drawing brush icons in my tabitem, next to the text.
how should the icons be switched from outside of the style itself?
i know how to do it with images (with Tag) but not sure with drawing brushes.
thanks
...
In a WPF application, you can put your global static resources in app.xaml .. like
<Application.Resources>
<!--Global View Model Locator-->
<vm:ViewModelLocator x:Key="Locator"
d:IsDataSource="True" />
</Application.Resources>
That was from MVVM Light ;). Now, if your project is a wpf ...
I am showing a Tool Tip when Mouse hovers on Help image.
The xaml is given below:
<Image
x:Name="HelpImage"
Width="16"
Height="16"
...
I have an wpf application which has two windows "Window1" has a Button, on click which opens "Window2".
"Window2" have some textbox which has been programmed to jump from one control to another on enter key press. TextBox1 is getting focus after "Window2" initialization. This application shows normal behavior when I click or use "Alt" ke...
I have a custom lookless control derived from Control. The "goal" was to have my custom control be a tab control with two predefined tabs, some controls within each tab, and a contentpresenter within each tab where the developer can put their own stuff. I have a dependency property and binding for each content presenter, and it does work...
I have a custom control which contain a ComboBox control, I'm trying to set back the focus to the ComboBox by using the focus() methode and its not help (focus stays on the custom control)... any idea ???
...
I'm looking for a free WPF control that can show a gird like windows explorer's thumbnail new, rows of images with some info under each thumb, it would be added benefit if it could be switched to detail and list view too but for now the thumbnail view is the most important,
I'm not that familiar with WPF's built-in controls so this migh...