File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
xmlns : vm =" clr-namespace:Flow.Launcher.ViewModel"
11
11
Name =" FlowMainWindow"
12
12
Title =" Flow Launcher"
13
- Width =" {Binding MainWindowWidth, Mode=OneWay }"
13
+ Width =" {Binding MainWindowWidth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }"
14
14
MinWidth =" 400"
15
15
MinHeight =" 30"
16
16
d : DataContext =" {d:DesignInstance Type=vm:MainViewModel}"
Original file line number Diff line number Diff line change @@ -584,22 +584,22 @@ public string QueryText
584
584
[ RelayCommand ]
585
585
private void IncreaseWidth ( )
586
586
{
587
- Settings . WindowSize += 100 ;
587
+ MainWindowWidth += 100 ;
588
588
Settings . WindowLeft -= 50 ;
589
589
OnPropertyChanged ( nameof ( MainWindowWidth ) ) ;
590
590
}
591
591
592
592
[ RelayCommand ]
593
593
private void DecreaseWidth ( )
594
594
{
595
- if ( MainWindowWidth - 100 < 400 || Settings . WindowSize == 400 )
595
+ if ( MainWindowWidth - 100 < 400 || MainWindowWidth == 400 )
596
596
{
597
- Settings . WindowSize = 400 ;
597
+ MainWindowWidth = 400 ;
598
598
}
599
599
else
600
600
{
601
+ MainWindowWidth -= 100 ;
601
602
Settings . WindowLeft += 50 ;
602
- Settings . WindowSize -= 100 ;
603
603
}
604
604
605
605
OnPropertyChanged ( nameof ( MainWindowWidth ) ) ;
You can’t perform that action at this time.
0 commit comments