Ignore:
Timestamp:
Aug 5, 2011, 5:00:07 PM (13 years ago)
Author:
bayral
Message:

WPF inprovement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoWpf/MainWindow.xaml

    r11904 r11911  
    33        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    44        xmlns:pwg="clr-namespace:Com.Piwigo.Wpf"
     5        xmlns:pwgui="clr-namespace:Com.Piwigo.Wpf.UI"
    56        xmlns:pwgdto="clr-namespace:Com.Piwigo.Wpf.DTO"
    67        xmlns:pwgcmd="clr-namespace:Com.Piwigo.Wpf.Command"
     
    2021                <Image ToolTip="{Binding File}" >
    2122                    <Image.Source>
    22                         <PriorityBinding FallbackValue="pack://application:,,,/Pictures/Globe.png">
     23                        <PriorityBinding>
    2324                            <Binding IsAsync="True" Converter="{x:Static pwgsrv:ImageCacheManager.ImageUrlCachedConverter}"/>
    24                            
     25                            <Binding Source="pack://application:,,,/Pictures/Globe.png" />
    2526                    </PriorityBinding>
    2627                    </Image.Source>
     
    204205                <TextBox Height="23" Name="BbUsr" Width="120" Text="{Binding Path=UserName, Mode=TwoWay}" />
    205206                <Label Content="Password" Name="LblPwd" />
    206                 <TextBox Height="23" Name="TbPwd" Width="120" Text="{Binding Path=Password, Mode=TwoWay}"/>
     207                <PasswordBox Height="23" Name="TbPwd" Width="120" PasswordChar="*"
     208                             pwgui:PasswordHelper.BindPassword="true" pwgui:PasswordHelper.BoundPassword="{Binding Path=Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
    207209                <Label Content="Url" Name="LblUrl" />
    208210                <TextBox Height="23" Name="TbUrl" Width="300" Text="{Binding Path=ServeurName, Mode=TwoWay}"/>
    209                 <CheckBox  VerticalAlignment="Center" IsChecked="{Binding Path=SaveSetting, Mode=TwoWay}">Save settings</CheckBox>
    210                 <Button Margin="2" Command="{x:Static pwgcmd:PwgCmdProvider.PwgCmdConnect}">Go</Button>
     211                <CheckBox Margin="2" VerticalAlignment="Center" IsChecked="{Binding Path=SaveSetting, Mode=TwoWay}">Save settings</CheckBox>
     212                <Button Margin="2" Command="{x:Static pwgcmd:PwgCmdProvider.PwgCmdConnect}" Visibility="{pwgui:SwitchBinding IsConnected, Hidden, Visible}">Conect</Button>
     213                <Button Margin="2" Command="{x:Static pwgcmd:PwgCmdProvider.PwgCmdDisconnect}" Visibility="{pwgui:SwitchBinding IsConnected, Visible, Hidden}">Disconect</Button>
    211214            </StackPanel>
    212215           <ProgressBar IsIndeterminate="True" />         
Note: See TracChangeset for help on using the changeset viewer.