I need to display the standard "Select Users and Groups" dialog from a .NET/WPF application. I also need to be able to display it under a 64bit OS. I found this CodeProject article, which is quite ancient, dating back to the .NET 1.1 days. It is written in Managed C++ and exposed as a COM object, which will not work for my needs.
Has a...
I have following code:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TextBox Text="{Binding Path=Name,
Mode=OneWayToSource,
...
Both employ the same concept: define some rows and columns and add content into specific positions. But the Grid is the most common WPF layout container, while table based layout in html is very controversial. So why is WPF's grid layout praised and html's table based layout considered "bad" (by some)?
...
Hi,
I am working on a PRISM / CAL solution, but the problem may be WPF specific:
If I create one instance of an control (e.g. TextBlock) and add it as child to a StackPanel, there is no way to add it as "child" to another StackPanel (parent already set error). I kind of understand the reason (it also occurs when using the RegionManager...
I have a combo box that I want to bind to a list of datetime objects, but I want to show the datetime objects in short time format. I'm pretty sure I need to use some form of data template for this, but I can't figure out how to bind to the datetime object's ToShortTime method within the data template.
Can someone point me in the right ...
Hi All,
Im making a custom button called "ShardButton" which uses a Style to control its content as well as its event triggers:
<Style x:Key="ButtonStyle" TargetType="{x:Type obj:ShardButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type obj:ShardButton}">
<Grid>
<Path .../>
<Con...
I'm displaying a very big tree with a lot of items in it. Each of these items shows information to the user through its associated UserControl control, and this information has to be updated every 250 milliseconds, which can be a very expensive task since I'm also using reflection to access to some of their values. My first approach was ...
Hello,
I am attempting to get the Comments Feed from a video entry using the YouTube API for .NET. I am working on a program in WPF and C#, but can't seem for the life of me to figure out how to retrieve this feed.
I tried looking at the YouTube API Developer's Guide, but it seems to be missing some information about Comment Feeds (ne...
I'm trying to bind DXGrid control to an IList. Though binding works perfectly fine some other features of the grid are not working like those of Auto filter row, and In-line editing.
<dxg:GridControl x:Name="grid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataSource="{Binding Path=Model, UpdateSourceTrigger=PropertyChang...
I have some global settings that should come from the ViewModel and should be available to all DataTemplates across all UserControls. It includes things like GlobalButtonMargin, GlobalStrokeWidth or GlobalWorkspaceBackgroundColor. Those things are in the viewmodel because the user can edit these settings at runtime.
How would you go ab...
I have class Products with unknown numbers of properties such as "Name", "Price" and so on. I retreive them only when parsing some txt file.
How should I:
write a Product class to emplement dynimicly adding Properies
Bind this collection of Products with unknonwn numbers of properties to ListView in XAML (or should I build in code be...
I have a WPF application which loads other WPF applications. I want to know at runtime if a particular application is WPF application or non WPF application, so that exception can be raised accordingly for Non WPF application. Any way to figure out if particular solution is WPF or not ?
...
I have a Nationality ComboBox like the one below and want to make it so that the user can type letters to narrow in on the choices. I could solve this the way I started below by adding logic in the NationalityComboBox_KeyDown method.
Is this the best way to build AutoSuggest into a ComboBox or is there a built-in way to do the same thin...
I'd like to use DrawGlyphRun to draw multilingual text.
How do I find the fallback font of the character which is not in the specified FontFamily?
if (glyphTypeface.CharacterToGlyphMap.TryGetValue(text[n], out glyphIndex)){
//draw the character using glyphIndex
} else {
How do I find the fallback font of character text[n]?...
Im developing an app for Microsoft Surface and Im trying to make the most of the libraries that are out there, the functionality Im after if to be able to flick a UI element.
The ScatterView control makes this easy, but I would like to restrict the UI element to only be able to be flicked along a set path. This is where Im having troub...
Hi!
My application uses the WPF DataGrid control with custom columns. Although the property Columns is an ObservableCollection<>, the invocation of the method Move does not effect the order of the columns in any way.
Can I somehow reorder the columns of a WPF Toolkit DataGrid programmatically?
Best Regards
Oliver Hanappi
...
I would like to display an animation gif such as loading... in my XAML as my procedure is progressing. I found out that this cannot be easily done in WPF as I loaded my Gif and it just shows the first frame. What are the best ways to display an animation in WPF.
...
I'm getting a KeyValuePair from a service and some of the values are not sorted, as reproduced below.
How can I resort the KeyValuePair by value so that they display in alphabetical order in the ComboBox:
public NationalityComboBox()
{
InitializeComponent();
Items.Add(new KeyValuePair<string, string>(null, "Please choose..."))...
Hi,
I have a WPF project based upon Prism Feb 2009 release set up as:
Shell exposes a single ContentControl as "MainRegion"
Another view (user control) defined in the Infrastructure project called SplitView exposes two additional regions "LeftRegion" and "RightRegion" also as ContentControl.
Some of my application's modules need to di...
I want to create a Custom Control derived from ComboBox, however if I create custom control from visual studio template, it creates a default style of Control and I have to then open MSDN's control template of ComboBox and then recreate entire combobox style once again an in generic.xaml
What I want to do is, I want to create a custom c...