Hi !
When I use a Theme like link text in my WPF App, I notice a difference between the Items of ListBoxes and ComboBoxes: When I add a an object of my own class to their Items Collection, the created item looks themed. If I make my own class inherit from ListBoxItem/ComboBoxItem, the resulting Visualization looks unthemed.
How can I d...
Good day all,
I have written an application that i require to have a certain directory structure/. Nothing complex but it will need an "Images" Folder which contains two other folders "Temp" and "Complete".
These folders are in my solution however upon publishing all the folders are gone and i can not find any way in which to cause the...
I am scanning computers and their scale can not be like 1.5,2,2.5 they should be in whole numbers like 1,2,3,4.
my current code is
ICollection<KeyValuePair<String, int>> data = new Dictionary<String, int>();
data.Add(new KeyValuePair<string, int>(Protocol, protocolCount));
mycolseries = new ColumnSeries
...
I've noticed that if you have anything deriving from UIElement as items in a ListBox in Silverlight it renders the object as is and isn't paying any attention to settings of DisplayMemberPath and/or ListBox.ItemTemplate.
For example if you have XAML like this:
<ListBox Width="200" Height="300" DisplayMemberPath="Tag">
<TextBlock Ta...
I am looking for a way to present short FlowDocument strings in a label-like control.
In WPF the user can input text into a RichTextBox. The result is a FlowDocument string.
I'm looking for a way to present that text in a label, in which:
The user should not be able to edit or select (with the mouse) the text.
There should be no scrol...
Hi,
I have the xps document in WPF, whose properties are BuildAction - Content and Copy to Output directory - Copy always. So whenever i run the exe, i will get these documents in the output directory.When i try to access this document, and want to show in document viewer, it is giving error as above. Can anyone help.
docViewer.Documen...
Hi,
I Have a listbox defined like below :
<ListBox x:Name="lstMedias" ItemsSource="{Binding Medias}" Width="Auto" Height="Auto">
<ListBox.ItemTemplate>
<DataTemplate>
<Button Content="{Binding Name}" Tag="{Binding Name}" Click="Button_Click" Command="{Binding Path=LoadSimpleMoviePopupCommand}">
<...
Hi !
In C#, I can do (*):
Button b = new Button();
b.Click += ButtonOnClick;
:
void ButtonOnClick(object sender, RoutedEventArgs e)
{
// do something
}
But in C++/CLI I can't do:
Button ^ b = gcnew Button();
b->Click += ButtonOnClick;
:
void ButtonOnClick(Object ^ sender, RoutedEventAr...
Hi All,
In my model I have lots of properties for different objects and I'm checking the value while setting value for object and if the value is not accepted I will throw an exception this was working perfect with windows forms propertygrid but now I'm trying to design a new interface using WPF .
in WPF when I bound a property to a cont...
I'm trying real hard to make this short and easy to read.
I am creating a custom control that has a DP defined (RandomNumber) in the code-behind. The value of this DP is set from a click event fired by a button in my control.
Here is the relevant code for this:
public partial class Tester
{
public int RandomNumber
{
ge...
I've created a custom control that subclasses TreeView. Right now it's completely empty, doesn't override anything. However when I place an instance in the designer the 'Auto' value for the Width and Height fields is no longer available as it is with the default TreeView. What am I missing?
...
I have a WPF Frame control in an application that I use to load a preview of a page that doesn't exist on the server yet.
Because it doesn't exist, and because it's inside my app, I need to figure out a way to ideally disable the hyperlinks so they can't be clicked. Although, forcing it to load in a new window so it's no longer in my a...
How feasible is it(and some guidance) to build a WPF(Silverlight) app in such a way that it can be flipped back and forth from Web to Desktop?
Maybe some context is in order.
I am a lone developer at a non-profit. I only develop in house apps that have very long life cycles with constant modifications and changes to business rules...
After using a global Linq to Sql DataContext and having unwanted inserts, I decided to use a detached methodology. I did this through a methods class that serves as a abstraction layer from my buisness objects to my DAL. There is one DataContext per each CRUD call so I can call something like this.
using (DatabaseMethods<TEntity> db = ...
I'm building a WPF navigation app, with pages.
I want to ask the user if he want to save the changes when he leaves a page.
Is there a way to do it?
...
I am trying to create a WPF wizard control in visual studio. I am successful except I would like to navigate the pages in design time by clicking the next and previous buttons. The pages are being written in xaml. I can navigate the pages by going to the properties window and changing the selected index, but I would like something more u...
Hi,
I have a ListBox containing a set of images in a C# WPF application. When the image enters the image area, that is, on the MouseEnter event, I want the image to grow approx 10 %. This is to notify the user that the mouse pointer is now on a new "clickable" image. Do anyone know how I can accomplish this?
Thanx in advance!
...
How can I remove a storyboard in XAML (i.e. RemoveStoryboard action in a DataTrigger) but keep the value that was animated. Similar to the Animatable.BeginAnimation:
If the animation's BeginTime is null, any current animations will be removed and the current value of the property will be held.
...
So I have a class structure like this
Store
Owner
Cashier
List of Products
Product Name
Price
List of Vendors
Company Name
Contact Name
So there are 4 objects: Store, Person (Owner and Cashier), Product and Vendor.
I want to find a way to bind this structure into a XAML tree, so each no...
I've tried implementing a readonly grid of items using the WPF ListView.
It appears to me that this is a poorly designed and implemented control. (Unlike most of WPF which I like).
Specific issues I've come across:
Cannot make the last column expand to
fill the width of the control,
without writing extra non-XAML code.
(See this que...