how do i create an app that is:
lightweight: i am guessing don't require .NET frameworks maybe?
portable: runs without installing and saves data in the app directory, so i can just move the folder or maybe even the exe?
this is just a personal experiment: i want to try create a simple todo list app that has the above attributes
i a...
Hi,
I have a well defined tree repository. Where I can rename items, move them up, down, etc. Add new and delete.
The data is stored in a table as follows:
Index Parent Label Left Right
1 0 root 1 14
2 1 food 2 7
3 2 cake 3 4
4 2 pie ...
Hi All,
I've been programming C# for a while now (I'm a Computer Science major), and have never had to implement threading.
I am currently building an application for a client that requires threading for a series of operations.
Due to the nature of the client/provider agreement, I cannot release the source I am working with. The code ...
I have WPF application and a window in it. Lets have something like this in my xml:
<Label Name="TitleLabel" Content="Some title" \>
<Label Name="BottomLabel" Content="{Binding ElementName=TitleLabel Path=Content">
Lets say I don't cannot use xml for creation of BottomLabel and TitleLabel. So I have to create the BottomLabel as a prop...
In my application I have a tab control which has several tab items.
The problem is that I want to apply a style to these tab items, but to no other (nested) tab items.
I have tried setting the following style on the tab control, but this also effects all children:
<Style x:Key="tabControlStyle" TargetType="{x:Type TabControl}">
<...
i have a LOB application with 30 fields to put in a form.
I found it very painful to put them in the window with a grid.
is there a productive way to build entry forms in WPF .
Thanks
John
...
I would like to know how to translate the following code to codebehind instead of XAML:
<Style.Triggers>
<Trigger Property="Validation.HasError" Value="true">
<Setter Property="ToolTip"
Value="{Binding RelativeSource={RelativeSource Self},
Path=(Validation.Errors)[0].ErrorContent}"/>
</Trigger>
</Styl...
I have to run a wpf-app in an environment that has all the same dell-pc's with an intel gma 3000 graphics chip (onbard, Q963/Q965). The app renders only with software rendering (Stated so by the RenderCapability.Tier-property and also Perforator of the Performance Toolkit Shows that.
On all of this machines, DirectX 9c is installed and...
Trying to set the start time of the Avalon DateTimePicker, but all I get is the current time.
Anyone had any success with this control. FYI, I am stuck using .Net 3.0.
<wf:DateTimePicker x:Name="DatePickerStartTime"
DateTimeSelected="{Binding Path=StartTime,Mode=TwoWay}" > ...
I am using the following code in my project. The print dialog shows, but it always prints on the default printer regardless of the user's selection. I have read similar topics but none of them seem to use the SerializerWriterCollator. What is the problem?
PrintQueue printQueue = LocalPrintServer.GetDefaultPrintQueue();
...
Hello,
in the ressource-tag of my MainWindowView.xaml I have this markup:
RenderOptions.EdgeMode="Aliased" to get a general sharp look of my whole application.
Using mostly rectangular shapes/controls this works fine.
But for my validation error symbols I use a red ellipse with a white cross or "X" in it.
The ellipse is using now th...
I have a Custom Control which uses some PART controls:
[TemplatePart(Name = "PART_TitleTextBox", Type = typeof(TextBox))]
[TemplatePart(Name = "PART_TitleIndexText", Type = typeof(Label))]
[TemplatePart(Name = "PART_TimeCodeInText", Type = typeof(TextBlock))]
[TemplatePart(Name = "PART_TimeCodeOutText", Type = typeof(TextBl...
Is it possible to put a canvas inside of a ListBox using WPF?
...
I need a custom border that renders a little differently than a normal border. I made a class that inherited from Decorator as follows
class BetterBorder : Decorator
{
protected override Size ArrangeOverride(Size arrangeSize)
{
return arrangeSize;
}
protected override void OnRender(DrawingContext dc)
{
...
Hello,
I do not want to use 3rd party controls because I would have to buy a suite for justing using one control...
So is there any chance I can arrange 3 entities: Subject, Grade and Pupil in that way on a simple DataGrid to show Pivot data like:
...........Math....Sports....
M.Kramer...A.......C.........
B.Jonson...D.......A........
Hi, I'm working on a WPF C# application, and it seems to crash with a few random people.
So eventually I found out it was the 'Region and Language' settings that was responsible.
For example, if I were to set my Format to English (United States) it will work, if I set it to Swedish (Sweden) it will crash from the start.
When I test th...
I would like to create a UserControl that will have some behavior(animated collapsing...) and some Controls in it (Rectangle, Ellipse, mostly for design purposes).
However I need it to be a valid Panel like Grid so I can put more controls in it when designing main window. Controls that will be add to the new USerControl in main window d...
I have a class thats created as a resource:
<Window.Resources>
<Model:MyModel x:Key="model" />
</Window.Resources>
The MyModel class has a cli property named Foo. I want the selected value in a combobox to be bound to this property. I thought I could do this but Im getting errors:
<ComboBox SelectedItem="{Binding Source={StaticRe...
I added an event handler to my code and it broke all access to the CollectionViewSources in the SystemHTA class saying "The calling thread cannot access this object because a different thread owns it". My class was working when "this.systemHTA = new SystemHTA();" was placed outside of the DeviceManager_StateChanged() function.
publ...
I have a list of objects. For each item in the list, I want to create a new user control bound to that item. From what I've read, doing this programmatically is bad practice with WPF (as well as less than straightforward), so I should use data binding as a solution instead. The problem is, I can't figure out how to do this. I don't know ...