I have a listbox that during development I had the items in the list box hardcoded and styled. This is how the items were styled.
<ComboBoxItem Width="Auto" Height="Auto" Content="ComboBoxItem" >
<ComboBoxItem.Foreground>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"...
I have a WPF App that implements a ListView. I would like to show an image (a small icon) in one of the columns depending on the type of the data that row represents. Sort of like the display you see in Windows Explorer.
I am using DataTriggers elsewhere in my XAML, it seems like a similar method could be used to swap out entire cell c...
Whats the recommended location, to save user preference files? Is there a recommmended method(or should I call it pattern) of dealing with user preferences?
Currently I use the path returned from typeof(MyLibrary).Assembly.Location as a default location to store files generated or required by the app.
EDIT:
Found two related/interestin...
Duplicate : When is Winforms the correct choice vs. WPF?
I’m working for a financial company with the strict business oriented applications. All these fancy multimedia stuff is not really appreciated by the business user. Therefore it is not clear why should I develop a front end client using WPF instead of the old good, easy to use, ...
I have a window with a title on it. When the user selects a choice from a drop down list, the title image can change. The problem is when the image loads, it's a blurred, stretched, and pixelated. These are PNG files I'm working with and they look good prior to setting the source dynamically.
Here's the code I'm using to change the imag...
I have a WPF listbox which displays messages. It contains an avatar on the left side and the username and message stacked vertically to the right of the avatar. The layout is fine until the message text should word wrap, but instead I get a horizontal scroll bar on the listbox.
I've Googled and found solutions to similar issues, but no...
Hi All,
If anybody know how to do the Internationalization and localization in WPF through only XAML. I have already done through WPF .cs file by using Resource Manager class.
I would greatly appericiate, if anybody can guide me and given me the code samples.
Thanks in advance,
Cheers...
Karthikeyan Manickam.
...
Hi
I have a WPF calendar control and the template for the day has a property called
cal.DayTemplate =
I have created a dictionary file contaning my control template for the day of the calendar
But I am not sure how to load it into the DayTemplate property.
I have added my dictionary to the Application.Resources in App.xaml
the x:K...
I've got an enum like this:
public enum MyLovelyEnum
{
FirstSelection,
TheOtherSelection,
YetAnotherOne
};
I got a property in my DataContext:
public MyLovelyEnum VeryLovelyEnum { get; set; }
And I got three RadioButtons in my WPF client.
<RadioButton Margin="3">First Selection</RadioButton>
<RadioButton Margin="3">The Other...
I have a WPF application that I minimize to the system tray through this.Hide() and System.Windows.Forms.NotifyIcon. When it's minimized, I want to have a keyboard hook maximize the application. How do I register a keyboard hook like Windows-Button & T, for example.
Thanks.
...
Here is some XAML
<HierarchicalDataTemplate DataType="{x:Type data:FolderEntity}"
ItemsSource="{Binding Path=FolderEntities,UpdateSourceTrigger=PropertyChanged}">
<Label Content="{Binding FolderName}"/>
</HierarchicalDataTemplate>
<TreeView/>
data:FolderEntity is a LINQ to SQL data class which implements the INotifyPropertyChangi...
I am trying to access .net 2.0 Web Service from WPF. I generated the proxy using Visual Studio and also Credential of the proxy to Default Credentials.
I am getting 401 Unauthorized while accessing the web service. When I output the user name from the default credential it is empty, Am I missing anything?
...
I have a Enum for example...
public enum TypeIdentifier {
NotSet = 0,
Type1= 1,
Type2= 2,
Type3= 3,
Type4= 4,
Type5= 5
}
public class CommonObject
{
TypeIdentifier myTypeIdentifier {get; set;}
}
I have a WPF UserControl that has a generalized object binding.I have a c...
Hi,
I have a listbox with the ItemsPanelTemplate set to UniformGrid rows= 6 cols= 7.
I want the listbox items to fill ther space.
I am using a datatemplete defined in a dictionary.
The outer control of my template is a Border with HorizontalAlignment=Stretch
and VerticalAlignent=Strectch but the templates do not fill the listbox item...
Using xaml ( wpf ) I'm trying to get rid of the line under the tab control as show in the "Illustration A" below so that it ends up looking like "Illustration B":
Illustration A
Illustration B
The line shows up when I define the Tab Item but appears to be attached to the Tab Control, as a result changing BorderThickness on either ...
I've been doing some WPF development for the last few months, and I've recently started Silverlight development.
Most of the time things go OK, especially for the simple stuff, but frequently I get stumped by seemingly simple things - especially in XAML. As an example, yesterday I was trying to use a Grid to lay out the items in a ListB...
I have a custom template for an expander that is close to the code below. I had to change some of the code to take out custom classes, brushes, etc..
<Style TargetType="{x:Type Expander}">
<Setter Property="HorizontalContentAlignment"
Value="Stretch" />
<Setter Property="VerticalContentAlignment"
Value="Top" />
...
Hi,
I am asking this question again because the last one has gone missing, weird.
I still do not have an answer to this.
I want the datatemplate defined to fill the available space of the listbox items.
Any ideas??
Malcolm
<ListBox Grid.Row="2" Name="lstCalender">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<U...
Hi,
I see that Button object has a IsMouseOVer property.
But how do create an effect for the mouse over of a grid or other
element that does not have IsMouseOver??
Thanks
Malcolm
Edit: i figured it out. I was using the wrong method for setting it.
...
Is it possible to play a QuickTime Video in WPF? If yes, can anyone provide me the resources.
...