I want to have a wpf combobox that displays the dropdown list box with the options grouped under a heading like the <optgroup> behaviour in html. Has anyone seem something like this done before?
...
Hi
I'm making a game of soccer in WPF with C#. A composite pattern sounds like a good idea to control multiple players properties, and such. This is nothing to do with event handlers.
So if there are any good tutorials that anyone knows of - thanks.
...
Let's say I have a datagrid with itemsource binded to property Collection, which is for example IEnumerable. Of course I wrote appropriate getter and setter for it.
Now, when I assign to this property (Collection) just IEnumerable (as the result of some method), like:
Collection = FooMethod(); // FooMethod returns IEnumerable<MyClass>
...
Hi,
Is it possible to make a WPF window as a child to C# MDI winform.
If yes please give me the code.
If no please give me the alternate solution.
Thank you,
Shashi
...
I have a single-instance app (c#, WPF, .net3.51). The check if the app is already instantiated is done via a Mutex. If the app is already running, I open a new window from within the already opened app-instance. This works fine so far.
However due to an app extension, I now must send the e.Args (or at least the first string of it) to t...
Hi,
I have custom usercontrol WPF, that I need to display it as WPF Window (with title bar and all other window features)
...
Hi, i have a TreeView which is binded trough a HierarchicalDataTemplate. Im listing there a List which contains a list of a directories and files.
private void getDirectoryList()
{
using (FileOperations fileOP = new FileOperations())
{
this.DokumentBrowser.ItemsSource = fileOP.list_directory(rpath); //Li...
Hi, I'm developing a user control, and wish to use a routed event. I notice that there are two delegates provided - RoutedEventHandler, and RoutedPropertyChangedEventHandler. The first that doesn't pass along any information, and the second that takes the old and new values of a property change. However, I need to pass just a single p...
Hi, I am reading version information of my wpf application, but I am not getting the correct version as I have write in AssemblyInfo.cs file. In my file there is
[assembly: AssemblyVersion("0.1.001")]
[assembly: AssemblyFileVersion("0.0.001")]
I am reading version information using this code
System.Reflection.Assembly.GetExecutingAs...
So, I have a class, which goes as follows:
public class EditorUserControl : UserControl
{
public EditorUserControl()
: base()
{
this.IsVisibleChanged += new DependencyPropertyChangedEventHandler(
EditorUserControl_IsVisibleChanged);
}
void EditorUserControl_IsVisibleChanged(
object s...
If I have the follow TabControl and everything works properly and when I switch to the second tabitem it just shows without no issues.
<TabControl>
<TabItem> //datagrid </TabItem>
<TabItem> //datagrid2 </TabItem>
<TabControl>
But if i have this xaml, when i click the second tabitem the memory goes out of control
<TabControl>
...
Hi,
I am using the WPF WebBrowser control for displaying data in google maps.
What I am trying to achieve is to listen to mousemove events on an other wpf control an pass this data to the webbrowser control via InvokeScript. in this javascript method i set the innerHTML of an label to the passed value. but the value gets only updated fo...
Hi, Thanks for read my Question..
I have a Report on Crystal Report, and I am using CrystalReport for VS2010, VS2010, SQl Server 2008 and WPF targeting .Net Framework 4.0.
The question is.. I am allready made a Report and I have and App on WPF in which I need to call, embed or whatever it is take to show the report.
How could I ?
Th...
what i want to acheive is similar to the editor in stackoverflow. where if i press bold, it will wrap my selected text with some text (in this case **)
...
what i refer to by "system's default icons" are the icons i see in say apps like office. the open/new/save icons. i wonder if i can somehow reference these? because they seem like a standard icon. or do i have to find those icons from the net and put them into my apps?
...
As per this MSDN link,
There is no way to replace only part
of the visual tree of a control; to
change the visual tree of a control
you must set the Template property of
the control to its new and complete
ControlTemplate
.
I am trying to disable the click behaviour of GridViewColumnHeader ( I need to remove some trigge...
i want to handle the tab keypress in such a way that
if there is no selected text, add 4 spaces at cursor position. if there is selected text, i want to add 4 spaces at the start of each selected lines. something like what ide's like visual studio does. how do i do this?
i am using WPF/C#
...
I am trying to customize the WPF 4.0 DataGrid and need a listing of its control template (also the control template for the nested DataGridColumnHeadersPresenter - PART_ColumnHeadersPresenter). I found this link with provides many control templates, but DataGrid is missing from the list! Is there any place where the control template for ...
I have a binding to an unknown source. All I have is the binding. I have no other way of looking at the bound object. I need to figure out the Type for the bound object, even if the value is null (this is where my problem is).
I was evaluating the binding by binding to an object and then using the object as a way to get the Type, but I ...
Hi guys,
What do I have to do with a Tree in WPF/Silverlight, to have all nodes aligned ar the same level?
I mean I need the root and all childs to be align at the same distance from the left side of the screen. Is that possible?
Actually I am using a Telerik Silverlight RadTreeView.
Any help is welcomed,
Thanks
...