private Firma _selectedFirma { get; set; }
public Firma SetlectedFirma
{
get { return _selectedFirma; }
set
{
if(_selectedFirma!=value)
{
_selectedFirma = value;
//Do whatewer
NotifyPropertyChanged("SetlectedFirma");
}
}
}
public Command resetCommand { get; set; }
public void reset(Object obj)
{
SetlectedFirma = null;
}
-----------------------------------------------------------
<combobox:SfComboBox
x:Name="CountryPicker"
DataSource="{Binding Firmalar}"
DisplayMemberPath="FirmaAdi"
SelectedValuePath="FirmaAdi"
MultiSelectMode="None"
SelectedIndex="{Binding SelectedIndex}"
SelectedItem="{Binding SetlectedFirma,Mode=TwoWay}"
Style="{StaticResource ComboBoxStyle}"
Watermark="Firma Adı">
<combobox:SfComboBox.DropDownButtonSettings>
<combobox:DropDownButtonSettings Width="30" Height="30">
<combobox:DropDownButtonSettings.View>
<Label
Margin="0"
FontFamily="{StaticResource FontIcons}"
FontSize="25"
HorizontalTextAlignment="Center"
Text="{StaticResource DropDownButtonIcon}"
TextColor="{DynamicResource Gray-600}"
VerticalTextAlignment="Center" />
</combobox:DropDownButtonSettings.View>
</combobox:DropDownButtonSettings>
</combobox:SfComboBox.DropDownButtonSettings>
</combobox:SfComboBox>
</border:SfBorder>
<buttons:SfButton
Command="{Binding resetCommand}"
Margin="0,8,0,24"
BorderWidth="0"
CornerRadius="20"
FontFamily="{StaticResource Montserrat-SemiBold}"
FontSize="16"
HeightRequest="40"
HorizontalOptions="{OnIdiom Default=EndAndExpand,
Phone=CenterAndExpand}"
Style="{StaticResource SubmitButtonStyle}"
Text="Kaydet"
WidthRequest="200" />