//Threading for speacific printer otherwise it will open default Faxman printer
Task.Factory.StartNew(() =>
{
Thread.Sleep(5000);
// Killing Process of default printer
Process[] processes = Process.GetProcessesByName("FaxManFMFFileCreator");
foreach (var process in processes)
{
process.Kill();
}
});
If you want to get the double click event on a listview item you can try with this code; <ListView Grid.Row="0" Grid.RowSpan="3" Grid.Column="0" Width="250" Height="200" HorizontalAlignment="Stretch" VerticalAlignment="Top" AlternationCount="2" BorderBrush="#FFA8CC7B" ItemContainerStyle="{StaticResource alternatingStyle}" ItemsSource="{Binding FromPayerNameList}" SelectedItem="{Binding SelectedFromPayer, Mode=TwoWay}"> <ListView.ItemTemplate> <DataTemplate> <TextBlock Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListView}}}" Text=...
Comments
Post a Comment