wpf Questions
2
I have two tabs that is bind to one viewmodel which contain a PlotModel of oxyplot and view model selected through a DataTemplate.
When click on the first tab the viewmodel was bind properly but wh...
5
Solved
I recently tested the WPF UI library (https://wpfui.lepo.co/). I created a sample project, and that project targeted .NET 6.0. The sample project contained some basic Models and ViewModels, and in ...
Matz asked 27/9, 2022 at 9:15
2
Solved
I have a HierarchicalDataTemplate which has some simple Items contained in a horizontal StackPanel.
A context menu is assigned to the root StackPanel container as well:
<HierarchicalDataTemplat...
Ingrained asked 12/9, 2011 at 16:38
2
Solved
I have a TextBlock with TextTrimming = TextTrimming.CharacterEllipsis and I want the dots to appear at the beginging. Is there a property for this?
For example if I have the text "123456789ABCDEF"...
4
Solved
I need to know when a WPF Datagrid has been sorted by the user. Why is there no Sorted event? I can only find a Sorting event.
I also investigated the CollectionView and ListCollectionView that is...
Glasscock asked 5/3, 2012 at 17:32
4
Solved
I am working on a very simple stopwatch using WPF but using the System.Diagnostics stopwatch was very slow and not reliable at all, compared to my system clock every 1 second from my application wa...
1
To avoid this being an X-Y problem I will explain what I want to achieve first, and then what I tried to achieve it and failed.
Problem: I have a bunch of texts which I am searching through. The se...
Kapp asked 10/9 at 3:49
3
I have an unmanaged application which uses a WPF assembly for some of its user interface. Because of this arrangement Application.Current is not created automatically. So when the first WPF window ...
6
Solved
This walkthrough says you can create a WPF datagrid in one line but doesn't give a full example.
So I created an example using a generic list and connected it to the WPF datagrid, but it doesn't s...
6
Solved
I want to change the button content depending on the previous content click. For example, if its Add then it should change to Save, and if it is Save then it should change back to Add.
I know how...
5
This is a continuation of my question here. I am creating an open with list for the type *.bmp.As per the answers for that question,I have created a list of the applications in the open with list f...
3
Solved
I'm trying to put together a tool tip for a simple button. However when the mouse is hovered over the button, the tool tip does not appear below it.
Please see this :
This xaml is as below:
&l...
Danette asked 3/7, 2013 at 13:42
3
Solved
I have two problems with the code below.
Problem 1) In the function MaximizePreview() I want to store the old width of the left column (lastListViewWidth = widthListView) and when calling Maximize...
Alviani asked 6/9, 2016 at 9:36
2
Solved
I'm attempting to create a simple button template in which the button normally looks like a single horizontal line, but when moused over, the button will display a "rectangle" color fill behind it....
9
Solved
Let's say I have the following ListView:
<ListView ScrollViewer.VerticalScrollBarVisibility="Auto">
<ListView.View>
<GridView>
<GridViewColumn Header="Something"
DisplayM...
4
Solved
In my program I have a user control that displays data on a window using a content presenter. I would like to simply set the cursor focus on a certain textBox in my window at startup.
Usually I w...
Nonoccurrence asked 17/10, 2013 at 18:8
5
Solved
I am using a Watermark textbox as in Watermark TextBox in WPF
<Grid Grid.Row="0" Background="{StaticResource brushWatermarkBackground}" Style="{StaticResource EntryFieldStyle}" >
<Text...
Corliss asked 22/10, 2009 at 13:8
3
Solved
I am trying to convert a .NET Framework WPF app to .NET 5
I ran https://github.com/dotnet/try-convert, and removed some incompatible DLL refs.
Now, when I try to compile, I am presented with
NETSDK...
6
Solved
How to read a cell value form a WPF DataGrid?
I search online and try any possible combination and nothing works:
Datagrid.Cells[..], DataGrid.Items.Cells[..], DataGrid.Rows.., DataGrid.Items.Row...
3
Solved
I'm a student learning C# with WPF using the MVVM pattern. Recently I have been working on a [art of my application (a custom splash screen) that should not be closed when I don't want it to.
I hav...
Oakie asked 6/6, 2013 at 22:38
5
Solved
I have created a Window which has a ListView to display a collection of persons. There are also 3 TextBoxes that are supposed to display the person's first and last name, and an age. Finally, there...
Province asked 6/4, 2011 at 20:30
6
Solved
If I have the following code:
Style defaultStyle = (Style)FindResource("MyTestStyle");
Is there a way to get the name of the style (i.e. reverse-lookup)? Something like:
string name = defaultSt...
5
Solved
I've been trying for hours to get to the point where I can start a WPF application and have full control. I want to be able to create a ViewModel, create a View (Window), set the data context of th...
5
Solved
is it possible to bind an itemscontrol with canvas as template to multiple DataTemplates?
I have 2 collections and depending on the type I would like to display a different control on my canvas.
...
Barstow asked 29/3, 2011 at 13:8
7
Solved
I'm trying to follow the MVVM pattern in a WPF application as good as I can, mainly to be able to create unit tests for my ViewModel logic.
In most cases data binding between ViewModel properties ...
Taxicab asked 2/4, 2011 at 16:34
1 Next >
© 2022 - 2024 — McMap. All rights reserved.