c# - WPF put a group box in the middle or inside a user control -


i got user control named palabok:

<usercontrol x:class="neocclinic.wpfsystem.templatas.palabok"              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"               xmlns:d="http://schemas.microsoft.com/expression/blend/2008"               mc:ignorable="d"               d:designheight="300" d:designwidth="300">     <grid>         <grid.columndefinitions>             <columndefinition/>             <columndefinition/>             <columndefinition/>         </grid.columndefinitions>          <button grid.column="0"></button>     </grid> </usercontrol> 

then implement wpf window:

<window x:class="neocclinic.wpfsystem.irritantdetailsform"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:windowscontrols="clr-namespace:neocclinic.wpfsystem.templatas"         title="irritantdetailsform" height="300" width="300">     <windowscontrols:palabok ></windowscontrols:palabok> </window> 

my problem want add group box (with personalized components/controls of irritants) window displayed in grid.column="2" of palabok user control. use same user control wpf window put image control grid.column="2" instead of group box, of palabok user control, can's seem put controls inside palabok user control.

i think control should inherit itemscontrol

please check : http://drwpf.com/blog/category/item-containers/


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -