Úvod HTML CSS PHP MySQL JavaScript
WPdoWPF

Vložení kontrolky z WF do WPF

  1. Přidáme References->Add Reference
  2. Reference
  3. Do hlavičky přidáme kód
  4.              <Window
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            x:Class="Wpf_zaklad.MainWindow"
          xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"   
            Title="Pokus" Height="539.11" Width="525" Background="{x:Null}" Loaded="Window_Loaded_1">
              
  5. a dále
  6.   
              <Grid x:Name="GridWF" HorizontalAlignment="Left" Height="458.46" Margin="0,31,0,0" VerticalAlignment="Top" Width="486">
    			<Grid.Background>
    				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    					<GradientStop Color="#FF7996F9" Offset="0.004"/>
    					<GradientStop Color="#FF010613" Offset="1"/>
    				</LinearGradientBrush>
    			</Grid.Background>
                <WindowsFormsHost>
                    <wf:Label x:Name="label" Text="Label z wFormu" />
                  
                </WindowsFormsHost>
                <WindowsFormsHost>
                   
                    <wf:NumericUpDown x:Name="NumericUpDown" Value="50" Increment="10"  />
                </WindowsFormsHost>   
            </Grid>
            
pravy Ascii tabulka
Barvy
Klávesové zkratky


©2013-2021 Trojklik.8u.cz Autor: Vašek D.