All Questions
167
questions
0
votes
1
answer
739
views
How to bind a panel's data context to parent object in XAML?
Having this in XAML:
<UserControl x:Class="Example"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas....
0
votes
2
answers
242
views
Arranging controls inside a panel of WindowsFormHost - wpf
I have three controls inside a panel like below. I have to arrange one at center of the panel. and other two should place just left and right side of center one.
I have tried like below. But getting ...
0
votes
1
answer
69
views
How to make an ItemsControl that has only the special type?
My English skills are poor because I'm not a native English speaker.
I hope that you can understand.
I would like to construct a control that can receive only a special type.
I am thinking of ...
0
votes
0
answers
62
views
c# type of panels, want to be free at placing labels
I have a form that is getting too big for all functions.
I'd like a 2nd window, or form or panel or whatever to divide the functions.
The simplest way to do so, was create 2 panels and a button that ...
0
votes
0
answers
36
views
TwoWay-Binding of RadioButtons in a Template bugged if a Button is in the Parent Panel
My Problem is similar to the one described in here, but goes one step further.
Inside a StackPanel are a ListBox to select between Elements, and a ContentPresenter rendering two RadioButtons. These ...
0
votes
1
answer
647
views
How to change Grid.Row and Grid.Column attached property of content control in wpf
I am trying to build control similar as dock control. In my case,
I have Main Content, Side Content and Bottom Content.
Main content will be visible all the time which will be having data grid. on ...
0
votes
1
answer
254
views
How to make a control disappear that doesn't fit into the bounds of its parent
I'd like to create a control (Panel?) which can hold several child controls and arrange them. But my control should only show child controls that completely fit into the bounds of my parent control ...
0
votes
3
answers
233
views
WPF element to use for a a Bitmap BackgroundImage with the ability to add child Controls
So I'm using a WinForms application as a guideline for creating a WPF Application that displays nautical charts. The WinForms application is using a System.Windows.Forms.Panel and sets the ...
2
votes
1
answer
7k
views
How to use Border on StackPanel
So, I am trying to develop app in WPF (again). I wanted to have nice, black border with rounded corenrs around my StackPanel. In order to do this I have written:
<Border x:Name="debugPanel" ...
1
vote
1
answer
346
views
WPF: MeasureOverride with side effects?
The Situation:
I am trying to create a panel class StickyInfoPanel for two child items laid out vertically. The lower of the two items shall be 100px in height. The upper item shall consume the rest ...
-2
votes
1
answer
251
views
How to use a NineGrid background image for UWP Panel
One solution I found is to use an <Image> inside a <Grid>, as shown here
Another way to add background image to Panel is
<Grid.Background>
<ImageBrush ImageSource="/...
2
votes
1
answer
137
views
VirtualizingPanel stops ScrollViewer working within Viewbox
I have a simple custom panel that is hosted within the ItemsPanel of an ItemsControl. The Template of the ItemsControl is updated to surround the ItemsPresenter with a Viewbox and a ScrollViewer. Here ...
0
votes
1
answer
511
views
Space inside Wrap panel
I creating buttons from db list, that's my .xaml file
<Controls:MetroWindow
<ItemsControl x:Name="itemsList" Height="500" Width="550" >
<ItemsControl.ItemTemplate>
...
0
votes
2
answers
66
views
Similar WPF Windows
I have WPF Application and 2 Windows with similar structure (everything is same:menu, Title, Toolbar, only in the middle one stack panel is other, in one window has 10 TextFields,Button and other ...
0
votes
1
answer
839
views
Custom IScrollInfo panel loses scrolling ability when hosted in an ItemsControl
I'm trying to create a custom panel using the IScrollInfo interface, with little success. I can get it to work if I manually declare items within the custom panel in XAML, but when I put it into an ...