Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

単純なバインディング

アプリ実行

起動


スライダー移動


ソースコード

App.xaml
<Application x:Class="HelloWorld.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
</Application>
MainWindow.xaml
<Window x:Class="HelloWorld.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="150" Width="200">
    <StackPanel>
        <Slider Name="slider" />
        <TextBox Text="{Binding ElementName=slider, Path=Value}" />
    </StackPanel>
</Window>