With an existing grid with content and controls, I am trying to wrap it within a viewbox. It works except that my application opens up larger than my screen. When i take the viewbox out it opens normal size. Any help is appreciated. Just trying to do something like the following in the main window.
....
...
Have a wpf user control with some buttons inside it. I need to intimate the main window when button click happens inside the wpf control. The main window has to initiate some actions upon receiving this message from the button click event inside the user control.
...
I am trying to write a program to dynamically create WPF forms. Is it possible to create XAML file and make .NET framework load them automatically?
I don't know if this is a really dumb question, but I was wondering that it might save me the burden of writing code to create them automatically.
...
I am creating a custom WPF control class which inherits from ComboBox. As I am just defining behavior, the exiting ComboBox templates are fine for my purposes and I don't want to created a whole set of templates to support different themes. Is there a way to specify that my control uses the existing ComboBox templates?
...
I have a VB.net WPF application that creates a list from a databind. For each row in the databind, it generates a textblock that displays the information from different fields in the databind. It also generates a button which I would like to run a subroutine when clicked.
When I click the button, I want it to be able to get the informat...
I've got some kind of fundemental misunderstanding of how I should approach this problem.
I've got a Canvas inside a ScrollViewer. I'd like to be able to zoom in and out on that Canvas and have the ScrollViewer adjust appropriately.
Here's the code:
XAML:
<Window x:Class="scrollerProblem.Window1"
xmlns="http://schemas.microsoft....
Is there a "BeforeSelectionChanged" event for the combobox? I want to verify some stuff before the SelectedItem property changes.
...
I have to fulfill below requirement for my display text (assume I am using TextBlock)
Draw white text (8pt 255-255-255 with 0 thickness stroke) over a dark filled text (8pt 69-77-96 with Thickness 5)
How should I implement this? I am flexible to use other controls also.. Appreciate your help!!
...
Hello,
I am looking for a chart control that incluse a scroll bar and can perform data virtualization.
Thank you,
Tali.
...
Hi all
I am making use of a System.Windows.Controls.TreeView in a wpf application.
Basically I need the equivalent of a SelectedItemChanging event so that I can cancel the the selection event of the treeview.
Is there a way to do this? I was not able to find something called SelectedItemschanging event on a treeview.
Thanks!
...
I want to disable the possibility to navigate a ListBox with the keyboard.
My first thought was to set up a PreviewKeyDown handler like so:
private void ListBox_PreviewKeyDown(object sender, KeyEventArgs e)
{
e.Handled = // some logic here ...
}
Unfortunately this also stops my CommandBindings which are declared in my main window ...
Hi,
I have a control with several textbox controls on it.
Now, when I press tab after I edit one of the textboxes, the focus is switched to the next textbox BUT I need to press an additional tab in order for it to enter the "editing" stage.
The first tab simply draws a dotted background on the textbox ... and the second one actually pu...
When the list is dropped down an the mouse hovers over an item in the drop-down list, the item becomes highlighted but the selected value shown in the text box does not change unless the item is clicked. I am looking for a way to modify the mouse over behavior in a control that inherits from ComboBox. I tried overriding function like OnM...
Hi,
I have an image that i want to make it when the user hover with mouse over it, another image next to it will be displayed.
The code below, doesn't work:
<Image Source="volumen.png">
<Image.Style>
<Style>
<Style.Triggers>
<Trigger Pro...
Hi all,
I have a dependency property on a control which is a custom class.
Now is there an event that gets raised BEFORE the value is being changed?
I know that OnPropertyChanged is raised after the property has already changed.
I need some event before so that I can cancel the changing....in order to preserve the state of the contro...
I am using WPF theme BureauBlue, I can only open down items in combobox by clicking the right side arrow on the control. But I should open it clicking any part of combobox. This problem is ruling for all themes. Any idea to solve this issue?
...
Hi All,
I'm trying to create a custom file upload control in WPF 4.0 and I'm stuck in one point.
I'm not able to save file in my solution folder after browsing the file. Below code I'm using for Browsing
private void btnBrowse_Click(object sender, RoutedEventArgs e)
{
// Create OpenFileDialog
Microsof...
Aim:
When the mouse is over on a button then the button height should become double and the button should be displayed on top of other controls. Controls can be present in 'N'number of panels in a screen.
I am using VS 2010, I have a main grid with 2 Rows. Each row have 2 grids. Each grid have buttons. For example Grid 1 yellow have col...
I have reffered one sample posted in codeproject
sample
I tried this sample but splash screen taked 6 to 7 seconds to come up.
I have core 2 duo Processor 2.80GHz with 2 GB ram.
I also refferred to msdn article but it cannot help.
I have to show the splash screen immediately as user click my executable to launch. My application tak...
Is there a way to display the error contents in a TextBlock below the control similar to how the following sets the Tooltip to contain the error text?
<Style x:Key="textBoxInError" TargetType="Control">
<Setter Property="Validation.ErrorTemplate">
<Setter.Value>
<ControlTemplate>
...