Hi All,
Please forgive the noob question but I'm going round in circles and need answers...
Anyway, I've been looking at this article WPF: How to bind RadioButtons to an enum? but I just can't get the convertor to be recognised within the XAML file.
<Window x:Class="Widget.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/...
I have a WPF application with
Main Window which is not a tool window
Launch a child window which has WindowStyle="ToolWindow" ShowInTaskbar="False" from main window
Now BOTH Main Window and Child Window are not visible in Alt+Tab. [Child window not appearing in alt+tab is expected behavior,but Main window should be visible]
Any help...
I have an application where when a person types or selects a listbox there's a portion of the screen that dynamically updates to a new view.
The problem is since WPF runs everything in a single thread the displaying of the view can interfer with typing or navigating making the app less responsive. What i'd like to do is run the view por...
Hi !
1.st part of the quesion:
What is the difference between these 2 event registrations ?
_popUp.AddHandler(PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(PopUp_PreviewMouseLeftButtonDown));
_popUp.PreviewMouseLeftButtonDown += new MouseButtonEventHandler(_popUp_PreviewMouseLeftButtonDown);
2.nd part of the question:...
is it possible create a cube with rounded corners in WPF? I found many examples that easily create cubes with hard edges but none with rounded ones. One possible solution would be a pre-rendered object, but that's not easy and controls to be put on the sides must be transformed separately.
...
Since this is WPF, it may look like lots of code, but don't be frightened, the question is really simple!
I have the following XAML:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:hax="clr-namespace:hax" x:Class="hax.MainWindow"
x:Na...
Hi !
Suppose we have a very 'XAML long' ControlTemplate for our Control.
And we want to add just 1 Button to the Template.
MSDN claims that 'There is no way to replace only part of the visual tree of a control'.
Do I really have to copy all that ControlTemplate and add my Button to it?
Or: Is there any possibility how to provide some...
Hi, I'm trying to create fancy looking Listbox. ListBoxItems are supposed to expand after being selected, but the problem is, they're also supposed to contain another ListBox filled with some details about particular item and I have no idea how to put some data into it.
I've tried both accessing it from C# code and binding it in XAML bu...
Hi,
I'm something of a WPF noob so please take it easy on me ;-)
I am trying to create a grouped DataGrid (WPF toolkit version).
I have successfully created the data source, the DataGrid itself, the required CollectionViewSource and the Style for the group header (which uses an expander).
I want to group by a property called 'Assign...
I am creating a user control to display a three-month calendar. The control is based on the WPF Calendar control (WPF Toolkit 2009-06), and I want to pass several of the Calendar's properties through to corresponding properties of my user control. The user control properties are set up as Dependency Properties, and their underlying types...
Hello,
I have a ScrollViewer in WPF. when I make right click to scroll control, context menu is opening and write commands like "Scroll Here, "Scroll Top" vs. vs.
although my ScrollViwer Language is "tr-Tr" , Why Scrollviewer ContextMenu command texts are in English ?
...
I'm looking for some layout panel for WPF which "stacks" its children horizontally, but fits them all into the panel, i.e. not like StackPanel which just keeps on adding them with their full width.
So for example, this magical panel is 1000 points wide. I add a child element to it, which gets the full 1000 point width. I add another one...
In my WPF application, I have a TreeView control defined in my XAML. I've added a TreeView.Resources section that looks like this:
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type local:FileGroup}" ItemsSource="{Binding protXMLFiles}">
<TextBlock Text="{Binding Path=groupName}"/>
</HierarchicalDataTemplat...
When the user clicks on a item in my single-select ListBox, the item is selected.
When the user clicks on a item the second time, the item is not unselected unless they are holding the control key.
What is the recommended way to change #2 to not require the control key?
...
Hi,
Please help me, Im trying to get the value of Cell[0] from the selected row in a SelectionChangedEvent.
I am only managing to get lots of different Microsoft.Windows.Controls and am hoping im missing something daft.
Hoping I can get some help from here...
private void datagrid_SelectionChanged(object sender, SelectionChangedE...
In my app I display images I get from external DLLs, by binding the Source of an Image control to an ImageSource.
This works well, but sometimes I don't get any data from my DLL and I'd like to just show a black image. In that case, how do I create an ImageSource which contains just a solid color?
...
I perform some checks in my Window class constructor, and if they fail I want to display an error message and close the window.
I'm getting crashes when calling Close() from the constructor or from Window_Loaded. Does that sounds normal or am I doing something wrong? If this is normal, when should I call Close()?
...
Is there a way to limit the number of rows that get displayed in items control. ?
I have a observable collection of strings which are bound to Items control. I want to limit the number of rows to display to only one. The collection can have more than one.
Thanks,
...
The system I'm working on uses a large number of custom value types internally. I'm working on a prototype UI using WPF. WPF does not know how to display the custom types. I know that I can write a custom ValueConverter to do this, but I really don't want to have to specify the use of a converter every time I bind to a class in my XAM...
I have a Canvas inside of a StackPanel in my WPF Designer in Visual Studio 2008. At runtime I plan to resize the Canvas so its client rect is a certain size (borders and other parts are just added onto that size). When I resize the Canvas, will the Width/Height of the StackPanel adjust itself accordingly? This is important since I have o...