Height
とWidth
ウィンドウをバインドしました。さて、Visual Studioのウィンドウは非常に小さいので、もう作業できません。デフォルト値をに設定するHeight
とWidth
、問題が解決します。それは可能Binding
ですか?
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Class="Sth.MainWindow"
x:Name="Window"
Width="{Binding Path=WidthOfImage, Mode=TwoWay}"
Height="{Binding Path=HeightOfImage, Mode=TwoWay}"
>
...
</Window>
WPFでデフォルト値を設定できますBinding
か?どのように?