Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

ListView's height in DockPanel is scaling with items and doesn't stop at the window borders - no scrollbar appears

I'm new to WPF. My workmate created a ListView and its height scales with the number of items, even beyond the border of the window, so that the scrollbar doesn't ever appear and the items below are ...
Broda's user avatar
  • 3
-1 votes
1 answer
51 views

Top Dock in a DockPanel is taking all the space

My code looks something like this: <DockPanel> <Expander DockPanel.Dock="Top" Name="Expander1"> <local:ListView1 DataContext="{Binding Source1}"/>...
Jtastic's user avatar
-1 votes
1 answer
48 views

Prevent elements in the DockPanel from expanding

I have the following code where I want to prevent the first two buttons from expanding when the Expander is opened: <Grid> <DockPanel HorizontalAlignment="Left"> <...
OrLevi's user avatar
  • 62
1 vote
1 answer
431 views

WPF - How to give priority to the second element of DockPanel

If have a DockPanel with two Border elements, first with HorizontalAlignment="Left" and second with HorizontalAlignment="Right". The width of entire DockPanel is fixed but widthes ...
Ashot's user avatar
  • 11k
-1 votes
1 answer
301 views

DockPanel resize objects inside

I want to make my objects in DockPanel expand automatically when the window is resized, currently they only change their position. My XAML: <DockPanel HorizontalAlignment="Stretch" ...
Jorr1's user avatar
  • 11
0 votes
1 answer
328 views

How to add TextBox over PasswordBox?

I want to put a TextBox over the PasswordBox to make the encrypted password visible with a button. When I press the button I want to see the password from the PasswordBox in the TextBox, but my ...
Vladut's user avatar
  • 657
0 votes
1 answer
133 views

How to resize the window to size a DockPanel's fill control in WPF?

I've written up an emulator using WPF. The window itself is basic: <Window> <DockPanel> <Menu DockPanel.Doc="Top" .../> <StatusBar DockPanel.Doc="Bottom&...
Eric's user avatar
  • 2,285
-1 votes
2 answers
397 views

Add a Textblock inside a border with nested StackPanels, in code

I am trying to modify a TextBlock from a WPF code. I have the following MainWindow XAML : <Window x:Class="ChatServer.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/...
BOUHL R.'s user avatar
1 vote
2 answers
824 views

DockPanel is not visible even though it is set to visible

I have a DockPanel inside another DockPanel the first one is set to be docked on the whole form, but the second one is set on the top of the form and it has three buttons inside it, the background ...
ArterPP's user avatar
  • 41
0 votes
1 answer
826 views

How to have a Tab control fill the center of a DockPanel in WPF

I have a WPF Window with a DockPanel that contains a Menu, a TabControl, and a Status Bar. I can get the Menu to dock to the top and the Status Bar to dock to the bottom, but I can't get the Tab ...
JNickVA1's user avatar
  • 416
0 votes
3 answers
283 views

Two groupboxes in dockpanel, how to set resizing (strech & fixed) correctly?

I have a very basic layout, but still not able to get the behaviour I want. Stupid me... My grid has two columns, dynamic sized column left and fixed sized column right. This is working. Inside the ...
MikkoR's user avatar
  • 41
0 votes
1 answer
31 views

Nevron DockPanel - resize grip handles

Nevron's dock panel grip handles are only a few pixels wide when used on a 4k monitor. This makes resizing a panel tedious to get the mouse exactly over the panel border so the grip handles show. Is ...
jwilson314's user avatar
-1 votes
1 answer
665 views

How to get text-alignment and stretch in the dockpanel correct?

In a xaml DataTemplate I have <DockPanel > <StackPanel DockPanel.Dock="Right" Orientation="Vertical"> <Button /> <Button /> </...
Gerard's user avatar
  • 13.4k
0 votes
1 answer
274 views

Material design wpf icon button doesn't dock to right

So, I'm trying to create a list with 'delete' button on the right side I have this code: <ListBox.ItemTemplate> <DataTemplate> <DockPanel LastChildFill="False"> ...
Batangaming's user avatar
2 votes
0 answers
59 views

TextBox inside DockPanel - strange behavior with special characters

I have a TextBox inside a DockPanel whose FlowDirection is RightToLeft. <DockPanel Grid.Column="1" FlowDirection="RightToLeft"> <TextBox Text="Hello@"/> &...
Mr Anderson's user avatar
  • 2,233

15 30 50 per page
1
2 3 4 5
15