|
Net-Framework/WPF/Controls-Elements/Combobox
WPF Combobox: Dynamically adjust the color of rows
|
23.05.2019 1598
|
Task: How to
dynamically adjust the color of individual lines in a Dropdown List WPF
Combobox?
Solution:
You can put
within the WPF Combobox via Combox ItemContainerStyle-> Style
ComboboxItem-> with Setter the Foreground and Background Color
|
|
Net-Framework/WPF/Controls-Elements/Combobox
Linq Combobox: Download dropdown list of data from a table
|
23.05.2019 1251
|
Simple example of
how to load a small table into a WPF combobox as data
Code Example C #
public void
|
|
Net-Framework/WPF/Controls-Elements
WPF Datagrid: Set Color of Row when it has no Focus
|
22.05.2019 2080
|
WPF: Selected
line without focus
How to adjust the
color at a datagrid when it has no focus
Solution:
You have to set
the highlight colors instead of static colors
|
|
Net-Framework/WPF/Controls-Elements
WPF Datagrid: Change the Color of Selected Row
|
22.05.2019 3214
|
WPF: Customize
selected line
How to adjust the
color of the selected line and cells in WPF
Solution:
You have to set
the style properties for DataGridRow and DataGridCell in the DataGrid
|
|
Net-Framework/WPF/Controls-Elements
WPF: Change Selected Row Color in DataGrid
|
22.05.2019 6616
|
WPF: Change Selected Row Color
How to change the
Selected line of a data grid in color?
Solution
For this purpose,
you can customize the DataGridRow via a style
Then you select
the trigger on IsSelected and you can choose the background color o
|
|
Net-Framework/WPF/Controls-Elements
WPF: Read SelectedItem from DataGrid with Dynamic As Anonymous Type
|
31.12.2018 2680
|
WPF: Read SelectedItem
from DataGrid with Dynamic As Anonymous Type
How to
evaluate an Colo
|
|
Net-Framework/WPF/Controls-Elements
WPF: Elements too wide, edge Cut off
|
31.12.2018 1128
|
WPF: Elements
too wide, edge Cut off
Problem:
The input
fields are not displayed correctly
For at any
reason, the right edge is always cut off
|
|
Net-Framework/WPF/Controls-Elements
WPF: Combobox Selected Value
|
28.12.2018 4949
|
WPF: Combobox
Selected Value ID ermitteln
Task:
How to
determine the selected Wert in WPF at a Combobox
|
|
Net-Framework/WPF/Controls-Elements
WPF: Show video in preview
|
18.04.2017 2514
|
Code example in C #, WPF to load a
video, which is displayed as thumbnail
Subject:
MediaElement MediaPlayer, Image,Thumbnail, Preview, Video, mp4, mov
|
|
Net-Framework/WPF/Controls-Elements
WPF Webbrowser: Suppress Java Errors or Set WebBrowser to Silent
|
15.03.2017 5476
|
Under the
web browser Control in wpf Net you have no direct possibility to disable the
error display by script errors
Although
there is the property webBrowser Silent = false under Windows Forms, you can
not find it in WPF Webbrowser controls
Unfort
|
|
Net-Framework/WPF/Controls-Elements
WPF WebBrowser: Load HTML to Browser
|
15.03.2017 7330
|
How to load
a string like HTML into a browser control in WPF?
string
|
|
Net-Framework/WPF/Controls-Elements
WPF: Popup limit max Height
|
26.01.2017 2530
|
WPF: Popup limit
I load a popup with a list table, but the popup is often large
How the WPF popup is reduced in size
Solution:
You can set the Max-Height property
The maximum height is then restricted
WPF XAML Code with MaxHeight = 50
|
|
Net-Framework/WPF/Controls-Elements
WPF Popup: Position Bottom but Extend from Left to Right
|
23.01.2017 5957
|
WPF Popup Position: Down, Left to Right
How to place the popup below a UIElement, but from left to right
Problem:
If you arrange a WPF popup with the setting Placement = Bottom below a UIElement,
Then the popup itself is placed below the range, but the size ext
|
|
Net-Framework/WPF/Controls-Elements
WPF Popup: Placement Positionen in Examples
|
23.01.2017 2721
|
WPF Popup: Placement Positions
What effect does the placement have on a WPF popup control?
|
|
Net-Framework/WPF/Controls-Elements
WPF, XAML: Popup Overlay window, item on top
|
20.01.2017 7761
|
WPF: Popup Overlay window, item on top
How can you highlight an element in XAML over other elements?
Solution:
In XAML, the elements are drawn from top to bottom This means that all the display elements, which are located further down, overlay the other UI ele
|
|
Net-Framework/WPF/Controls-Elements
WPF, c #: Set Hover Effect for UIElements
|
19.01.2017 2474
|
WPF, c #: Change background color of an element with hover
How do you program a path element in WPF that is highlighted in color when the mouse moves over?
To do this, you have to assign the events: MouseEnter, MouseLeave to WPF XAML
|
|
Net-Framework/WPF/Controls-Elements
WPF,TextBox: Center text vertically in a text box
|
05.01.2017 19289
|
WPF: Center text vertically in a text box
How to center the text in a WPF textbox
In the default, the text in an input box always appears as Top-oriented
Solution 1:
VerticalAlignment = "Stretch" VerticalContentAlignment = "Center"
You ca
|
|
Net-Framework/WPF/Controls-Elements
WPF: Reset all children element
|
05.01.2017 4600
|
WPF: Reset all children element
How to delete all subelements in a panel?
How do you delete all the elements images into a panel or grid?
Solution:
Using Children Clear (); You can delete all child elements in WPF
Then you can make a UpdateLayout
|
|
Net-Framework/WPF/Controls-Elements
WPF: Change background color at runtime
|
04.01.2017 2782
|
WPF: Change background at runtime
How do I change the background color of a WPF element at runtime?
Solution:
You can fill the background of a WPF element with a brush
To do this you have to fill the FrameworkElement Background with a new SolidColorBrus
|
|